From 61a2bc7559640739b134a42cbf5300a08a4f54aa Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 31 Jan 2022 17:51:50 +0000 Subject: [PATCH 1/2] feat: Checksums in Secret Manager Users can now use checksums for data integrity assurance when adding and accessing SecretVersions. PiperOrigin-RevId: 425369494 Source-Link: https://github.com/googleapis/googleapis/commit/70d389ce893cc2b817ff6aeef5763922c9a9a9aa Source-Link: https://github.com/googleapis/googleapis-gen/commit/cf9290568284d2f099b9a00cc82a2a133be6dfda Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2Y5MjkwNTY4Mjg0ZDJmMDk5YjlhMDBjYzgyYTJhMTMzYmU2ZGZkYSJ9 --- .../v1/SecretManagerServiceGrpc.java | 2129 --------------- .../v1/SecretManagerServiceClient.java | 38 +- .../v1/SecretManagerServiceSettings.java | 8 +- .../secretmanager/v1/gapic_metadata.json | 0 .../cloud/secretmanager/v1/package-info.java | 4 +- ...pcSecretManagerServiceCallableFactory.java | 0 .../v1/stub/GrpcSecretManagerServiceStub.java | 1 + .../v1/stub/SecretManagerServiceStub.java | 0 .../SecretManagerServiceStubSettings.java | 10 +- .../v1/MockSecretManagerService.java | 0 .../v1/MockSecretManagerServiceImpl.java | 0 .../v1/SecretManagerServiceClientTest.java | 10 + .../v1/SecretManagerServiceGrpc.java | 1615 +++++++++++ .../v1/AccessSecretVersionRequest.java | 349 +-- .../AccessSecretVersionRequestOrBuilder.java | 35 +- .../v1/AccessSecretVersionResponse.java | 420 ++- .../AccessSecretVersionResponseOrBuilder.java | 35 +- .../v1/AddSecretVersionRequest.java | 488 ++-- .../v1/AddSecretVersionRequestOrBuilder.java | 55 +- .../secretmanager/v1/CreateSecretRequest.java | 570 ++-- .../v1/CreateSecretRequestOrBuilder.java | 64 +- .../v1/CustomerManagedEncryption.java | 314 +-- .../CustomerManagedEncryptionOrBuilder.java | 27 +- .../v1/CustomerManagedEncryptionStatus.java | 346 +-- ...tomerManagedEncryptionStatusOrBuilder.java | 27 +- .../secretmanager/v1/DeleteSecretRequest.java | 421 ++- .../v1/DeleteSecretRequestOrBuilder.java | 44 +- .../v1/DestroySecretVersionRequest.java | 429 ++- .../DestroySecretVersionRequestOrBuilder.java | 44 +- .../v1/DisableSecretVersionRequest.java | 429 ++- .../DisableSecretVersionRequestOrBuilder.java | 44 +- .../v1/EnableSecretVersionRequest.java | 428 ++- .../EnableSecretVersionRequestOrBuilder.java | 44 +- .../secretmanager/v1/GetSecretRequest.java | 339 +-- .../v1/GetSecretRequestOrBuilder.java | 29 + .../v1/GetSecretVersionRequest.java | 342 +-- .../v1/GetSecretVersionRequestOrBuilder.java | 35 +- .../v1/ListSecretVersionsRequest.java | 536 ++-- .../ListSecretVersionsRequestOrBuilder.java | 56 +- .../v1/ListSecretVersionsResponse.java | 502 ++-- .../ListSecretVersionsResponseOrBuilder.java | 48 +- .../secretmanager/v1/ListSecretsRequest.java | 533 ++-- .../v1/ListSecretsRequestOrBuilder.java | 56 +- .../secretmanager/v1/ListSecretsResponse.java | 497 ++-- .../v1/ListSecretsResponseOrBuilder.java | 48 +- .../cloud/secretmanager/v1/ProjectName.java | 0 .../cloud/secretmanager/v1/Replication.java | 2022 +++++--------- .../v1/ReplicationOrBuilder.java | 34 +- .../secretmanager/v1/ReplicationStatus.java | 2402 ++++++----------- .../v1/ReplicationStatusOrBuilder.java | 52 +- .../secretmanager/v1/ResourcesProto.java | 307 +++ .../cloud/secretmanager/v1/Rotation.java | 523 ++-- .../secretmanager/v1/RotationOrBuilder.java | 58 +- .../google/cloud/secretmanager/v1/Secret.java | 1618 ++++------- .../cloud/secretmanager/v1/SecretName.java | 0 .../secretmanager/v1/SecretOrBuilder.java | 188 +- .../cloud/secretmanager/v1/SecretPayload.java | 680 +++++ .../v1/SecretPayloadOrBuilder.java | 54 + .../cloud/secretmanager/v1/SecretVersion.java | 1032 +++---- .../secretmanager/v1/SecretVersionName.java | 0 .../v1/SecretVersionOrBuilder.java | 104 +- .../cloud/secretmanager/v1/ServiceProto.java | 360 +++ .../google/cloud/secretmanager/v1/Topic.java | 298 +- .../secretmanager/v1/TopicOrBuilder.java | 27 +- .../secretmanager/v1/UpdateSecretRequest.java | 519 ++-- .../v1/UpdateSecretRequestOrBuilder.java | 55 +- .../cloud/secretmanager/v1/resources.proto | 19 +- .../cloud/secretmanager/v1/service.proto | 0 .../v1/GetSecretRequestOrBuilder.java | 54 - .../secretmanager/v1/ResourcesProto.java | 356 --- .../cloud/secretmanager/v1/SecretPayload.java | 552 ---- .../v1/SecretPayloadOrBuilder.java | 38 - .../cloud/secretmanager/v1/ServiceProto.java | 389 --- 73 files changed, 9166 insertions(+), 14024 deletions(-) delete mode 100644 grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java (98%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java (97%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json (100%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/package-info.java (92%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java (100%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java (99%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java (100%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java (98%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java (100%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java (100%) rename {google-cloud-secretmanager => owl-bot-staging/v1/google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java (98%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java (66%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java (53%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java (69%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java (67%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java (64%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java (52%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java (66%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java (60%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java (73%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java (71%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java (66%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java (60%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java (68%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java (58%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java (68%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java (60%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java (68%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java (60%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java (68%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java (60%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java (67%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java (53%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java (72%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java (69%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java (75%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java (76%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java (72%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java (69%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java (75%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java (74%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java (100%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Replication.java (69%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java (76%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java (62%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java (70%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java (72%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Secret.java (68%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java (100%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java (69%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java (100%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java (78%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Topic.java (71%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java (61%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java (64%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java (56%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/proto/google/cloud/secretmanager/v1/resources.proto (91%) rename {proto-google-cloud-secretmanager-v1 => owl-bot-staging/v1/proto-google-cloud-secretmanager-v1}/src/main/proto/google/cloud/secretmanager/v1/service.proto (100%) delete mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java delete mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java delete mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java delete mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java delete mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java diff --git a/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java b/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java deleted file mode 100644 index bead1fe1..00000000 --- a/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java +++ /dev/null @@ -1,2129 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.secretmanager.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Secret Manager Service
- * Manages secrets and operations using those secrets. Implements a REST
- * model with the following objects:
- * * [Secret][google.cloud.secretmanager.v1.Secret]
- * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/secretmanager/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecretManagerServiceGrpc { - - private SecretManagerServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.secretmanager.v1.SecretManagerService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretsRequest, - com.google.cloud.secretmanager.v1.ListSecretsResponse> - getListSecretsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecrets", - requestType = com.google.cloud.secretmanager.v1.ListSecretsRequest.class, - responseType = com.google.cloud.secretmanager.v1.ListSecretsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretsRequest, - com.google.cloud.secretmanager.v1.ListSecretsResponse> - getListSecretsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretsRequest, - com.google.cloud.secretmanager.v1.ListSecretsResponse> - getListSecretsMethod; - if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { - SecretManagerServiceGrpc.getListSecretsMethod = - getListSecretsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecrets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("ListSecrets")) - .build(); - } - } - } - return getListSecretsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.CreateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getCreateSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSecret", - requestType = com.google.cloud.secretmanager.v1.CreateSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.CreateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getCreateSecretMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.CreateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getCreateSecretMethod; - if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { - SecretManagerServiceGrpc.getCreateSecretMethod = - getCreateSecretMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.CreateSecretRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("CreateSecret")) - .build(); - } - } - } - return getCreateSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AddSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getAddSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AddSecretVersion", - requestType = com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AddSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getAddSecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AddSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getAddSecretVersionMethod; - if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getAddSecretVersionMethod = - getAddSecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("AddSecretVersion")) - .build(); - } - } - } - return getAddSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getGetSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecret", - requestType = com.google.cloud.secretmanager.v1.GetSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getGetSecretMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getGetSecretMethod; - if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { - SecretManagerServiceGrpc.getGetSecretMethod = - getGetSecretMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.GetSecretRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("GetSecret")) - .build(); - } - } - } - return getGetSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.UpdateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getUpdateSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecret", - requestType = com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.UpdateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getUpdateSecretMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.UpdateSecretRequest, - com.google.cloud.secretmanager.v1.Secret> - getUpdateSecretMethod; - if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { - SecretManagerServiceGrpc.getUpdateSecretMethod = - getUpdateSecretMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.UpdateSecretRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("UpdateSecret")) - .build(); - } - } - } - return getUpdateSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> - getDeleteSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSecret", - requestType = com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> - getDeleteSecretMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> - getDeleteSecretMethod; - if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { - SecretManagerServiceGrpc.getDeleteSecretMethod = - getDeleteSecretMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DeleteSecretRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("DeleteSecret")) - .build(); - } - } - } - return getDeleteSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> - getListSecretVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecretVersions", - requestType = com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, - responseType = com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> - getListSecretVersionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> - getListSecretVersionsMethod; - if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) - == null) { - SecretManagerServiceGrpc.getListSecretVersionsMethod = - getListSecretVersionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecretVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("ListSecretVersions")) - .build(); - } - } - } - return getListSecretVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getGetSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecretVersion", - requestType = com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getGetSecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.GetSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getGetSecretVersionMethod; - if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getGetSecretVersionMethod = - getGetSecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("GetSecretVersion")) - .build(); - } - } - } - return getGetSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> - getAccessSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AccessSecretVersion", - requestType = com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> - getAccessSecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> - getAccessSecretVersionMethod; - if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getAccessSecretVersionMethod = - getAccessSecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "AccessSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("AccessSecretVersion")) - .build(); - } - } - } - return getAccessSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDisableSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableSecretVersion", - requestType = com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDisableSecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDisableSecretVersionMethod; - if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getDisableSecretVersionMethod = - getDisableSecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DisableSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("DisableSecretVersion")) - .build(); - } - } - } - return getDisableSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getEnableSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableSecretVersion", - requestType = com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getEnableSecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getEnableSecretVersionMethod; - if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getEnableSecretVersionMethod = - getEnableSecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "EnableSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("EnableSecretVersion")) - .build(); - } - } - } - return getEnableSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDestroySecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DestroySecretVersion", - requestType = com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDestroySecretVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion> - getDestroySecretVersionMethod; - if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) - == null) { - SecretManagerServiceGrpc.getDestroySecretVersionMethod = - getDestroySecretVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DestroySecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("DestroySecretVersion")) - .build(); - } - } - } - return getDestroySecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { - SecretManagerServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { - SecretManagerServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) - == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) - == null) { - SecretManagerServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SecretManagerServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SecretManagerServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceStub(channel, callOptions); - } - }; - return SecretManagerServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecretManagerServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceBlockingStub(channel, callOptions); - } - }; - return SecretManagerServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SecretManagerServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceFutureStub(channel, callOptions); - } - }; - return SecretManagerServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public abstract static class SecretManagerServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void listSecrets( - com.google.cloud.secretmanager.v1.ListSecretsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSecretsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void createSecret( - com.google.cloud.secretmanager.v1.CreateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void addSecretVersion( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAddSecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void getSecret( - com.google.cloud.secretmanager.v1.GetSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void updateSecret( - com.google.cloud.secretmanager.v1.UpdateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void deleteSecret( - com.google.cloud.secretmanager.v1.DeleteSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public void listSecretVersions( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSecretVersionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void getSecretVersion( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void accessSecretVersion( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAccessSecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public void disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDisableSecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public void enableSecretVersion( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getEnableSecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public void destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDestroySecretVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListSecretsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.ListSecretsRequest, - com.google.cloud.secretmanager.v1.ListSecretsResponse>( - this, METHODID_LIST_SECRETS))) - .addMethod( - getCreateSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.CreateSecretRequest, - com.google.cloud.secretmanager.v1.Secret>(this, METHODID_CREATE_SECRET))) - .addMethod( - getAddSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.AddSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_ADD_SECRET_VERSION))) - .addMethod( - getGetSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.GetSecretRequest, - com.google.cloud.secretmanager.v1.Secret>(this, METHODID_GET_SECRET))) - .addMethod( - getUpdateSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.UpdateSecretRequest, - com.google.cloud.secretmanager.v1.Secret>(this, METHODID_UPDATE_SECRET))) - .addMethod( - getDeleteSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DeleteSecretRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SECRET))) - .addMethod( - getListSecretVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>( - this, METHODID_LIST_SECRET_VERSIONS))) - .addMethod( - getGetSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.GetSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_GET_SECRET_VERSION))) - .addMethod( - getAccessSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>( - this, METHODID_ACCESS_SECRET_VERSION))) - .addMethod( - getDisableSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_DISABLE_SECRET_VERSION))) - .addMethod( - getEnableSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_ENABLE_SECRET_VERSION))) - .addMethod( - getDestroySecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_DESTROY_SECRET_VERSION))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - * - * - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SecretManagerServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void listSecrets( - com.google.cloud.secretmanager.v1.ListSecretsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSecretsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void createSecret( - com.google.cloud.secretmanager.v1.CreateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSecretMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void addSecretVersion( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void getSecret( - com.google.cloud.secretmanager.v1.GetSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void updateSecret( - com.google.cloud.secretmanager.v1.UpdateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void deleteSecret( - com.google.cloud.secretmanager.v1.DeleteSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public void listSecretVersions( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void getSecretVersion( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void accessSecretVersion( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public void disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public void enableSecretVersion( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public void destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecretManagerServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets( - com.google.cloud.secretmanager.v1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSecretsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret createSecret( - com.google.cloud.secretmanager.v1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSecretMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret getSecret( - com.google.cloud.secretmanager.v1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSecretMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret updateSecret( - com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecretMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.protobuf.Empty deleteSecret( - com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSecretMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVersions( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecretVersion( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecretManagerServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.ListSecretsResponse> - listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSecretsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.Secret> - createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.SecretVersion> - addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.Secret> - getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecretMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.Secret> - updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> - listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.SecretVersion> - getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> - accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.SecretVersion> - disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.SecretVersion> - enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.secretmanager.v1.SecretVersion> - destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SECRETS = 0; - private static final int METHODID_CREATE_SECRET = 1; - private static final int METHODID_ADD_SECRET_VERSION = 2; - private static final int METHODID_GET_SECRET = 3; - private static final int METHODID_UPDATE_SECRET = 4; - private static final int METHODID_DELETE_SECRET = 5; - private static final int METHODID_LIST_SECRET_VERSIONS = 6; - private static final int METHODID_GET_SECRET_VERSION = 7; - private static final int METHODID_ACCESS_SECRET_VERSION = 8; - private static final int METHODID_DISABLE_SECRET_VERSION = 9; - private static final int METHODID_ENABLE_SECRET_VERSION = 10; - private static final int METHODID_DESTROY_SECRET_VERSION = 11; - private static final int METHODID_SET_IAM_POLICY = 12; - private static final int METHODID_GET_IAM_POLICY = 13; - private static final int METHODID_TEST_IAM_PERMISSIONS = 14; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecretManagerServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecretManagerServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SECRETS: - serviceImpl.listSecrets( - (com.google.cloud.secretmanager.v1.ListSecretsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SECRET: - serviceImpl.createSecret( - (com.google.cloud.secretmanager.v1.CreateSecretRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ADD_SECRET_VERSION: - serviceImpl.addSecretVersion( - (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SECRET: - serviceImpl.getSecret( - (com.google.cloud.secretmanager.v1.GetSecretRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SECRET: - serviceImpl.updateSecret( - (com.google.cloud.secretmanager.v1.UpdateSecretRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SECRET: - serviceImpl.deleteSecret( - (com.google.cloud.secretmanager.v1.DeleteSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SECRET_VERSIONS: - serviceImpl.listSecretVersions( - (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>) - responseObserver); - break; - case METHODID_GET_SECRET_VERSION: - serviceImpl.getSecretVersion( - (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ACCESS_SECRET_VERSION: - serviceImpl.accessSecretVersion( - (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>) - responseObserver); - break; - case METHODID_DISABLE_SECRET_VERSION: - serviceImpl.disableSecretVersion( - (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ENABLE_SECRET_VERSION: - serviceImpl.enableSecretVersion( - (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DESTROY_SECRET_VERSION: - serviceImpl.destroySecretVersion( - (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SecretManagerServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecretManagerServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecretManagerService"); - } - } - - private static final class SecretManagerServiceFileDescriptorSupplier - extends SecretManagerServiceBaseDescriptorSupplier { - SecretManagerServiceFileDescriptorSupplier() {} - } - - private static final class SecretManagerServiceMethodDescriptorSupplier - extends SecretManagerServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecretManagerServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecretManagerServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecretManagerServiceFileDescriptorSupplier()) - .addMethod(getListSecretsMethod()) - .addMethod(getCreateSecretMethod()) - .addMethod(getAddSecretVersionMethod()) - .addMethod(getGetSecretMethod()) - .addMethod(getUpdateSecretMethod()) - .addMethod(getDeleteSecretMethod()) - .addMethod(getListSecretVersionsMethod()) - .addMethod(getGetSecretVersionMethod()) - .addMethod(getAccessSecretVersionMethod()) - .addMethod(getDisableSecretVersionMethod()) - .addMethod(getEnableSecretVersionMethod()) - .addMethod(getDestroySecretVersionMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java similarity index 98% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 0fab76cb..919aea1a 100644 --- a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -48,8 +48,8 @@ * objects: * *
    - *
  • [Secret][google.cloud.secretmanager.v1.Secret] - *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + *
  • [Secret][google.cloud.secretmanager.v1.Secret] + *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] *
* *

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1781,10 +1781,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSecretsPagedResponse extends AbstractPagedListResponse< - ListSecretsRequest, - ListSecretsResponse, - Secret, - ListSecretsPage, + ListSecretsRequest, ListSecretsResponse, Secret, ListSecretsPage, ListSecretsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1831,10 +1828,7 @@ public ApiFuture createPageAsync( public static class ListSecretsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSecretsRequest, - ListSecretsResponse, - Secret, - ListSecretsPage, + ListSecretsRequest, ListSecretsResponse, Secret, ListSecretsPage, ListSecretsFixedSizeCollection> { private ListSecretsFixedSizeCollection(List pages, int collectionSize) { @@ -1854,11 +1848,8 @@ protected ListSecretsFixedSizeCollection createCollection( public static class ListSecretVersionsPagedResponse extends AbstractPagedListResponse< - ListSecretVersionsRequest, - ListSecretVersionsResponse, - SecretVersion, - ListSecretVersionsPage, - ListSecretVersionsFixedSizeCollection> { + ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, + ListSecretVersionsPage, ListSecretVersionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -1878,9 +1869,7 @@ private ListSecretVersionsPagedResponse(ListSecretVersionsPage page) { public static class ListSecretVersionsPage extends AbstractPage< - ListSecretVersionsRequest, - ListSecretVersionsResponse, - SecretVersion, + ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, ListSecretVersionsPage> { private ListSecretVersionsPage( @@ -1910,11 +1899,8 @@ public ApiFuture createPageAsync( public static class ListSecretVersionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSecretVersionsRequest, - ListSecretVersionsResponse, - SecretVersion, - ListSecretVersionsPage, - ListSecretVersionsFixedSizeCollection> { + ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, + ListSecretVersionsPage, ListSecretVersionsFixedSizeCollection> { private ListSecretVersionsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java similarity index 97% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java index b23f9839..626bb620 100644 --- a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.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.secretmanager.v1.stub.SecretManagerServiceStubSettings; @@ -48,9 +49,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json similarity index 100% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java similarity index 92% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java index ea358a41..db6bb5a7 100644 --- a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java @@ -25,8 +25,8 @@ * objects: * *

    - *
  • [Secret][google.cloud.secretmanager.v1.Secret] - *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + *
  • [Secret][google.cloud.secretmanager.v1.Secret] + *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] *
* *

Sample for SecretManagerServiceClient: diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java similarity index 100% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java similarity index 99% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java index ab48b40c..a0b38616 100644 --- a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java @@ -53,6 +53,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java similarity index 100% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java diff --git a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java similarity index 98% rename from google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java index 6d0e34a4..2a84d913 100644 --- a/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java @@ -80,9 +80,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -234,8 +235,7 @@ public ApiFuture getFuturePagedResponse( ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretVersionsPagedResponse> LIST_SECRET_VERSIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListSecretVersionsRequest, - ListSecretVersionsResponse, + ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretVersionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java similarity index 100% rename from google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java diff --git a/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java similarity index 100% rename from google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java diff --git a/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java b/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java similarity index 98% rename from google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java index 9943d3a9..a4079ce5 100644 --- a/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java +++ b/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java @@ -289,6 +289,7 @@ public void addSecretVersionTest() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -334,6 +335,7 @@ public void addSecretVersionTest2() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -670,6 +672,7 @@ public void getSecretVersionTest() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -712,6 +715,7 @@ public void getSecretVersionTest2() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -832,6 +836,7 @@ public void disableSecretVersionTest() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -875,6 +880,7 @@ public void disableSecretVersionTest2() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -918,6 +924,7 @@ public void enableSecretVersionTest() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -960,6 +967,7 @@ public void enableSecretVersionTest2() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -1002,6 +1010,7 @@ public void destroySecretVersionTest() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); @@ -1045,6 +1054,7 @@ public void destroySecretVersionTest2() throws Exception { .setDestroyTime(Timestamp.newBuilder().build()) .setReplicationStatus(ReplicationStatus.newBuilder().build()) .setEtag("etag3123477") + .setClientSpecifiedPayloadChecksum(true) .build(); mockSecretManagerService.addResponse(expectedResponse); diff --git a/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java new file mode 100644 index 00000000..85b27b0a --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java @@ -0,0 +1,1615 @@ +package com.google.cloud.secretmanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Secret Manager Service
+ * Manages secrets and operations using those secrets. Implements a REST
+ * model with the following objects:
+ * * [Secret][google.cloud.secretmanager.v1.Secret]
+ * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/secretmanager/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecretManagerServiceGrpc { + + private SecretManagerServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.secretmanager.v1.SecretManagerService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecrets", + requestType = com.google.cloud.secretmanager.v1.ListSecretsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSecretsMethod() { + io.grpc.MethodDescriptor getListSecretsMethod; + if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { + SecretManagerServiceGrpc.getListSecretsMethod = getListSecretsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("ListSecrets")) + .build(); + } + } + } + return getListSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecret", + requestType = com.google.cloud.secretmanager.v1.CreateSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSecretMethod() { + io.grpc.MethodDescriptor getCreateSecretMethod; + if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { + SecretManagerServiceGrpc.getCreateSecretMethod = getCreateSecretMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("CreateSecret")) + .build(); + } + } + } + return getCreateSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor getAddSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddSecretVersion", + requestType = com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAddSecretVersionMethod() { + io.grpc.MethodDescriptor getAddSecretVersionMethod; + if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { + SecretManagerServiceGrpc.getAddSecretVersionMethod = getAddSecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("AddSecretVersion")) + .build(); + } + } + } + return getAddSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecret", + requestType = com.google.cloud.secretmanager.v1.GetSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSecretMethod() { + io.grpc.MethodDescriptor getGetSecretMethod; + if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { + SecretManagerServiceGrpc.getGetSecretMethod = getGetSecretMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetSecret")) + .build(); + } + } + } + return getGetSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecret", + requestType = com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSecretMethod() { + io.grpc.MethodDescriptor getUpdateSecretMethod; + if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { + SecretManagerServiceGrpc.getUpdateSecretMethod = getUpdateSecretMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("UpdateSecret")) + .build(); + } + } + } + return getUpdateSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecret", + requestType = com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSecretMethod() { + io.grpc.MethodDescriptor getDeleteSecretMethod; + if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { + SecretManagerServiceGrpc.getDeleteSecretMethod = getDeleteSecretMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DeleteSecret")) + .build(); + } + } + } + return getDeleteSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSecretVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecretVersions", + requestType = com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSecretVersionsMethod() { + io.grpc.MethodDescriptor getListSecretVersionsMethod; + if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) == null) { + SecretManagerServiceGrpc.getListSecretVersionsMethod = getListSecretVersionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecretVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("ListSecretVersions")) + .build(); + } + } + } + return getListSecretVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecretVersion", + requestType = com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSecretVersionMethod() { + io.grpc.MethodDescriptor getGetSecretVersionMethod; + if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { + SecretManagerServiceGrpc.getGetSecretVersionMethod = getGetSecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetSecretVersion")) + .build(); + } + } + } + return getGetSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getAccessSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AccessSecretVersion", + requestType = com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAccessSecretVersionMethod() { + io.grpc.MethodDescriptor getAccessSecretVersionMethod; + if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) == null) { + SecretManagerServiceGrpc.getAccessSecretVersionMethod = getAccessSecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AccessSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("AccessSecretVersion")) + .build(); + } + } + } + return getAccessSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDisableSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableSecretVersion", + requestType = com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDisableSecretVersionMethod() { + io.grpc.MethodDescriptor getDisableSecretVersionMethod; + if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) == null) { + SecretManagerServiceGrpc.getDisableSecretVersionMethod = getDisableSecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DisableSecretVersion")) + .build(); + } + } + } + return getDisableSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getEnableSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableSecretVersion", + requestType = com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEnableSecretVersionMethod() { + io.grpc.MethodDescriptor getEnableSecretVersionMethod; + if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) == null) { + SecretManagerServiceGrpc.getEnableSecretVersionMethod = getEnableSecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("EnableSecretVersion")) + .build(); + } + } + } + return getEnableSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDestroySecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DestroySecretVersion", + requestType = com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDestroySecretVersionMethod() { + io.grpc.MethodDescriptor getDestroySecretVersionMethod; + if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) == null) { + SecretManagerServiceGrpc.getDestroySecretVersionMethod = getDestroySecretVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DestroySecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DestroySecretVersion")) + .build(); + } + } + } + return getDestroySecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { + SecretManagerServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { + SecretManagerServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) == null) { + SecretManagerServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecretManagerServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceStub(channel, callOptions); + } + }; + return SecretManagerServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecretManagerServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceBlockingStub(channel, callOptions); + } + }; + return SecretManagerServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecretManagerServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceFutureStub(channel, callOptions); + } + }; + return SecretManagerServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static abstract class SecretManagerServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecretsMethod(), responseObserver); + } + + /** + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSecretMethod(), responseObserver); + } + + /** + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddSecretVersionMethod(), responseObserver); + } + + /** + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretMethod(), responseObserver); + } + + /** + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecretMethod(), responseObserver); + } + + /** + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSecretMethod(), responseObserver); + } + + /** + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public void listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecretVersionsMethod(), responseObserver); + } + + /** + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretVersionMethod(), responseObserver); + } + + /** + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAccessSecretVersionMethod(), responseObserver); + } + + /** + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public void disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableSecretVersionMethod(), responseObserver); + } + + /** + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public void enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableSecretVersionMethod(), responseObserver); + } + + /** + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public void destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDestroySecretVersionMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListSecretsRequest, + com.google.cloud.secretmanager.v1.ListSecretsResponse>( + this, METHODID_LIST_SECRETS))) + .addMethod( + getCreateSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.CreateSecretRequest, + com.google.cloud.secretmanager.v1.Secret>( + this, METHODID_CREATE_SECRET))) + .addMethod( + getAddSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.AddSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_ADD_SECRET_VERSION))) + .addMethod( + getGetSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetSecretRequest, + com.google.cloud.secretmanager.v1.Secret>( + this, METHODID_GET_SECRET))) + .addMethod( + getUpdateSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.UpdateSecretRequest, + com.google.cloud.secretmanager.v1.Secret>( + this, METHODID_UPDATE_SECRET))) + .addMethod( + getDeleteSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DeleteSecretRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SECRET))) + .addMethod( + getListSecretVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>( + this, METHODID_LIST_SECRET_VERSIONS))) + .addMethod( + getGetSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_GET_SECRET_VERSION))) + .addMethod( + getAccessSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>( + this, METHODID_ACCESS_SECRET_VERSION))) + .addMethod( + getDisableSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_DISABLE_SECRET_VERSION))) + .addMethod( + getEnableSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_ENABLE_SECRET_VERSION))) + .addMethod( + getDestroySecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_DESTROY_SECRET_VERSION))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceStub extends io.grpc.stub.AbstractAsyncStub { + private SecretManagerServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceStub(channel, callOptions); + } + + /** + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecretsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecretMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public void listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public void disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public void enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public void destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SecretManagerServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecretsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSecretMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecretMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecretMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.protobuf.Empty deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSecretMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private SecretManagerServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSecrets( + com.google.cloud.secretmanager.v1.ListSecretsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecretsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSecret( + com.google.cloud.secretmanager.v1.CreateSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture addSecretVersion( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSecret( + com.google.cloud.secretmanager.v1.GetSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecretMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSecret( + com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSecret( + com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSecretVersions( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSecretVersion( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture accessSecretVersion( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture disableSecretVersion( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture enableSecretVersion( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture destroySecretVersion( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_SECRETS = 0; + private static final int METHODID_CREATE_SECRET = 1; + private static final int METHODID_ADD_SECRET_VERSION = 2; + private static final int METHODID_GET_SECRET = 3; + private static final int METHODID_UPDATE_SECRET = 4; + private static final int METHODID_DELETE_SECRET = 5; + private static final int METHODID_LIST_SECRET_VERSIONS = 6; + private static final int METHODID_GET_SECRET_VERSION = 7; + private static final int METHODID_ACCESS_SECRET_VERSION = 8; + private static final int METHODID_DISABLE_SECRET_VERSION = 9; + private static final int METHODID_ENABLE_SECRET_VERSION = 10; + private static final int METHODID_DESTROY_SECRET_VERSION = 11; + private static final int METHODID_SET_IAM_POLICY = 12; + private static final int METHODID_GET_IAM_POLICY = 13; + private static final int METHODID_TEST_IAM_PERMISSIONS = 14; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecretManagerServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecretManagerServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_SECRETS: + serviceImpl.listSecrets((com.google.cloud.secretmanager.v1.ListSecretsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SECRET: + serviceImpl.createSecret((com.google.cloud.secretmanager.v1.CreateSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_SECRET_VERSION: + serviceImpl.addSecretVersion((com.google.cloud.secretmanager.v1.AddSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SECRET: + serviceImpl.getSecret((com.google.cloud.secretmanager.v1.GetSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECRET: + serviceImpl.updateSecret((com.google.cloud.secretmanager.v1.UpdateSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SECRET: + serviceImpl.deleteSecret((com.google.cloud.secretmanager.v1.DeleteSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SECRET_VERSIONS: + serviceImpl.listSecretVersions((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SECRET_VERSION: + serviceImpl.getSecretVersion((com.google.cloud.secretmanager.v1.GetSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ACCESS_SECRET_VERSION: + serviceImpl.accessSecretVersion((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISABLE_SECRET_VERSION: + serviceImpl.disableSecretVersion((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_SECRET_VERSION: + serviceImpl.enableSecretVersion((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DESTROY_SECRET_VERSION: + serviceImpl.destroySecretVersion((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SecretManagerServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecretManagerServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecretManagerService"); + } + } + + private static final class SecretManagerServiceFileDescriptorSupplier + extends SecretManagerServiceBaseDescriptorSupplier { + SecretManagerServiceFileDescriptorSupplier() {} + } + + private static final class SecretManagerServiceMethodDescriptorSupplier + extends SecretManagerServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecretManagerServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecretManagerServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecretManagerServiceFileDescriptorSupplier()) + .addMethod(getListSecretsMethod()) + .addMethod(getCreateSecretMethod()) + .addMethod(getAddSecretVersionMethod()) + .addMethod(getGetSecretMethod()) + .addMethod(getUpdateSecretMethod()) + .addMethod(getDeleteSecretMethod()) + .addMethod(getListSecretVersionsMethod()) + .addMethod(getGetSecretVersionMethod()) + .addMethod(getAccessSecretVersionMethod()) + .addMethod(getDisableSecretVersionMethod()) + .addMethod(getEnableSecretVersionMethod()) + .addMethod(getDestroySecretVersionMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java similarity index 66% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java index 3e8c58fe..98bf92d3 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionRequest} */ -public final class AccessSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccessSecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AccessSecretVersionRequest) AccessSecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessSecretVersionRequest.newBuilder() to construct. private AccessSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessSecretVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private AccessSecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -123,10 +101,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,15 +110,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -151,18 +125,17 @@ public java.lang.String getName() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,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.secretmanager.v1.AccessSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other = - (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other = (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseFrom( 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.secretmanager.v1.AccessSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AccessSecretVersionRequest) com.google.cloud.secretmanager.v1.AccessSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest result = - new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest result = new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other) { - if (other - == com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -502,16 +458,14 @@ public Builder mergeFrom(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +474,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -529,17 +481,16 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +498,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -556,25 +505,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -582,21 +527,16 @@ public Builder setName(java.lang.String value) {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -604,26 +544,24 @@ public Builder clearName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,13 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AccessSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AccessSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.AccessSecretVersionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.AccessSecretVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(); } @@ -648,16 +585,16 @@ public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,4 +609,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java index 21674fa3..87435fac 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AccessSecretVersionRequestOrBuilder - extends +public interface AccessSecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AccessSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -33,16 +15,11 @@ public interface AccessSecretVersionRequestOrBuilder
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -50,11 +27,9 @@ public interface AccessSecretVersionRequestOrBuilder
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java similarity index 69% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java index b1f0b05e..79e4d74a 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionResponse} */ -public final class AccessSecretVersionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AccessSecretVersionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AccessSecretVersionResponse) AccessSecretVersionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AccessSecretVersionResponse.newBuilder() to construct. private AccessSecretVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessSecretVersionResponse() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessSecretVersionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessSecretVersionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,66 @@ private AccessSecretVersionResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; + payload_ = input.readMessage(com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -147,30 +121,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; } } /** - * - * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -181,14 +155,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.SecretPayload payload_; /** - * - * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return Whether the payload field is set. */ @java.lang.Override @@ -196,25 +167,18 @@ public boolean hasPayload() { return payload_ != null; } /** - * - * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return The payload. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } /** - * - * *
    * Secret payload
    * 
@@ -227,7 +191,6 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +202,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_); } @@ -259,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPayload()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,18 +234,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.secretmanager.v1.AccessSecretVersionResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other = - (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) obj; + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other = (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload().equals(other.getPayload())) return false; + if (!getPayload() + .equals(other.getPayload())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -305,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseFrom( 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.secretmanager.v1.AccessSecretVersionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.AccessSecretVersionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AccessSecretVersionResponse) com.google.cloud.secretmanager.v1.AccessSecretVersionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.newBuilder() @@ -433,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance(); } @@ -479,8 +435,7 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse buildPartial() { - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse result = - new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(this); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse result = new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(this); result.name_ = name_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -495,39 +450,38 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) other); + return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionResponse)other); } else { super.mergeFrom(other); return this; @@ -535,9 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other) { - if (other - == com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -564,9 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,21 +528,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -601,22 +549,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -624,64 +571,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -689,47 +629,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.secretmanager.v1.SecretPayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> - payloadBuilder_; + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Secret payload
      * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * - * *
      * Secret payload
      * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return The payload. */ public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** - * - * *
      * Secret payload
      * 
@@ -750,8 +677,6 @@ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) return this; } /** - * - * *
      * Secret payload
      * 
@@ -770,8 +695,6 @@ public Builder setPayload( return this; } /** - * - * *
      * Secret payload
      * 
@@ -782,9 +705,7 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -796,8 +717,6 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu return this; } /** - * - * *
      * Secret payload
      * 
@@ -816,8 +735,6 @@ public Builder clearPayload() { return this; } /** - * - * *
      * Secret payload
      * 
@@ -825,13 +742,11 @@ public Builder clearPayload() { * .google.cloud.secretmanager.v1.SecretPayload payload = 2; */ public com.google.cloud.secretmanager.v1.SecretPayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Secret payload
      * 
@@ -842,14 +757,11 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? + com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } } /** - * - * *
      * Secret payload
      * 
@@ -857,24 +769,21 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil * .google.cloud.secretmanager.v1.SecretPayload payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( - getPayload(), getParentForChildren(), isClean()); + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); payload_ = null; } return payloadBuilder_; } - @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); } @@ -884,13 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AccessSecretVersionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AccessSecretVersionResponse) - private static final com.google.cloud.secretmanager.v1.AccessSecretVersionResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.AccessSecretVersionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(); } @@ -899,16 +807,16 @@ public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSecretVersionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessSecretVersionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSecretVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessSecretVersionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +831,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java index 843c92e4..521b0192 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AccessSecretVersionResponseOrBuilder - extends +public interface AccessSecretVersionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AccessSecretVersionResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; - * * @return The payload. */ com.google.cloud.secretmanager.v1.SecretPayload getPayload(); /** - * - * *
    * Secret payload
    * 
diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java similarity index 64% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java index 9d291314..99ff1e09 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AddSecretVersionRequest} */ -public final class AddSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AddSecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AddSecretVersionRequest) AddSecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AddSecretVersionRequest.newBuilder() to construct. private AddSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddSecretVersionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AddSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AddSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,66 @@ private AddSecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; + payload_ = input.readMessage(com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,32 +121,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -185,16 +155,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.SecretPayload payload_; /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ @java.lang.Override @@ -202,34 +167,23 @@ public boolean hasPayload() { return payload_ != null; } /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder() { @@ -237,7 +191,6 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +202,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_); } @@ -269,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPayload()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +234,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.secretmanager.v1.AddSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AddSecretVersionRequest other = - (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.AddSecretVersionRequest other = (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload().equals(other.getPayload())) return false; + if (!getPayload() + .equals(other.getPayload())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseFrom( 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.secretmanager.v1.AddSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.AddSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AddSecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AddSecretVersionRequest) com.google.cloud.secretmanager.v1.AddSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AddSecretVersionRequest.newBuilder() @@ -443,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override @@ -488,8 +435,7 @@ public com.google.cloud.secretmanager.v1.AddSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AddSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.AddSecretVersionRequest result = - new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest result = new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(this); result.parent_ = parent_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -504,39 +450,38 @@ public com.google.cloud.secretmanager.v1.AddSecretVersionRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AddSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.AddSecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.AddSecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -544,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AddSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -572,8 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,23 +528,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -610,24 +549,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -635,70 +571,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -706,58 +629,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.secretmanager.v1.SecretPayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> - payloadBuilder_; + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) { if (payloadBuilder_ == null) { @@ -773,15 +677,11 @@ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) return this; } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPayload( com.google.cloud.secretmanager.v1.SecretPayload.Builder builderForValue) { @@ -795,23 +695,17 @@ public Builder setPayload( return this; } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -823,15 +717,11 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu return this; } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -845,71 +735,55 @@ public Builder clearPayload() { return this; } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.SecretPayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null - ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() - : payload_; + return payload_ == null ? + com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; } } /** - * - * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, - com.google.cloud.secretmanager.v1.SecretPayload.Builder, - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( - getPayload(), getParentForChildren(), isClean()); + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); payload_ = null; } return payloadBuilder_; } - @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); } @@ -919,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AddSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AddSecretVersionRequest) private static final com.google.cloud.secretmanager.v1.AddSecretVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(); } @@ -933,16 +807,16 @@ public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.AddSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java index 3cdf1e33..dd960356 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java @@ -1,97 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AddSecretVersionRequestOrBuilder - extends +public interface AddSecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AddSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The payload. */ com.google.cloud.secretmanager.v1.SecretPayload getPayload(); /** - * - * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java similarity index 66% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java index bf0e0f0b..2608884f 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1.SecretManagerService.CreateSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CreateSecretRequest} */ -public final class CreateSecretRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSecretRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CreateSecretRequest) CreateSecretRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSecretRequest.newBuilder() to construct. private CreateSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSecretRequest() { parent_ = ""; secretId_ = ""; @@ -44,15 +26,16 @@ private CreateSecretRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,72 @@ private CreateSecretRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - secretId_ = s; - break; + secretId_ = s; + break; + } + case 26: { + com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; + if (secret_ != null) { + subBuilder = secret_.toBuilder(); } - case 26: - { - com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; - if (secret_ != null) { - subBuilder = secret_.toBuilder(); - } - secret_ = - input.readMessage( - com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secret_); - secret_ = subBuilder.buildPartial(); - } - - break; + secret_ = input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secret_); + secret_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CreateSecretRequest.class, - com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.CreateSecretRequest.class, com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,32 +128,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SECRET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object secretId_; /** - * - * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -203,7 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secretId. */ @java.lang.Override @@ -212,15 +178,14 @@ public java.lang.String getSecretId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; } } /** - * - * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -229,15 +194,16 @@ public java.lang.String getSecretId() {
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for secretId. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretIdBytes() { + public com.google.protobuf.ByteString + getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretId_ = b; return b; } else { @@ -248,16 +214,11 @@ public com.google.protobuf.ByteString getSecretIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private com.google.cloud.secretmanager.v1.Secret secret_; /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ @java.lang.Override @@ -265,34 +226,23 @@ public boolean hasSecret() { return secret_ != null; } /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Secret getSecret() { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { @@ -300,7 +250,6 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretId_); } if (secret_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecret()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSecret()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -348,19 +299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.CreateSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CreateSecretRequest other = - (com.google.cloud.secretmanager.v1.CreateSecretRequest) obj; + com.google.cloud.secretmanager.v1.CreateSecretRequest other = (com.google.cloud.secretmanager.v1.CreateSecretRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSecretId().equals(other.getSecretId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSecretId() + .equals(other.getSecretId())) return false; if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { - if (!getSecret().equals(other.getSecret())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -387,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseFrom( 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.secretmanager.v1.CreateSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.CreateSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1.SecretManagerService.CreateSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CreateSecretRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CreateSecretRequest) com.google.cloud.secretmanager.v1.CreateSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CreateSecretRequest.class, - com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.CreateSecretRequest.class, com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.CreateSecretRequest.newBuilder() @@ -515,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -541,9 +485,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override @@ -562,8 +506,7 @@ public com.google.cloud.secretmanager.v1.CreateSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.CreateSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.CreateSecretRequest result = - new com.google.cloud.secretmanager.v1.CreateSecretRequest(this); + com.google.cloud.secretmanager.v1.CreateSecretRequest result = new com.google.cloud.secretmanager.v1.CreateSecretRequest(this); result.parent_ = parent_; result.secretId_ = secretId_; if (secretBuilder_ == null) { @@ -579,39 +522,38 @@ public com.google.cloud.secretmanager.v1.CreateSecretRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.CreateSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.CreateSecretRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.CreateSecretRequest)other); } else { super.mergeFrom(other); return this; @@ -619,8 +561,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.CreateSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -651,8 +592,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.CreateSecretRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.CreateSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -664,23 +604,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -689,24 +625,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -714,70 +647,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -785,8 +705,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object secretId_ = ""; /** - * - * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -795,13 +713,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secretId. */ public java.lang.String getSecretId() { java.lang.Object ref = secretId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; @@ -810,8 +728,6 @@ public java.lang.String getSecretId() { } } /** - * - * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -820,14 +736,15 @@ public java.lang.String getSecretId() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for secretId. */ - public com.google.protobuf.ByteString getSecretIdBytes() { + public com.google.protobuf.ByteString + getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretId_ = b; return b; } else { @@ -835,8 +752,6 @@ public com.google.protobuf.ByteString getSecretIdBytes() { } } /** - * - * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -845,22 +760,20 @@ public com.google.protobuf.ByteString getSecretIdBytes() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The secretId to set. * @return This builder for chaining. */ - public Builder setSecretId(java.lang.String value) { + public Builder setSecretId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretId_ = value; onChanged(); return this; } /** - * - * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -869,18 +782,15 @@ public Builder setSecretId(java.lang.String value) {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSecretId() { - + secretId_ = getDefaultInstance().getSecretId(); onChanged(); return this; } /** - * - * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -889,16 +799,16 @@ public Builder clearSecretId() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for secretId to set. * @return This builder for chaining. */ - public Builder setSecretIdBytes(com.google.protobuf.ByteString value) { + public Builder setSecretIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretId_ = value; onChanged(); return this; @@ -906,58 +816,39 @@ public Builder setSecretIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.secretmanager.v1.Secret secret_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder> - secretBuilder_; + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretBuilder_; /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ public boolean hasSecret() { return secretBuilder_ != null || secret_ != null; } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ public com.google.cloud.secretmanager.v1.Secret getSecret() { if (secretBuilder_ == null) { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { @@ -973,17 +864,14 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { + public Builder setSecret( + com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); @@ -994,23 +882,17 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builde return this; } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { if (secret_ != null) { secret_ = - com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); } else { secret_ = value; } @@ -1022,15 +904,11 @@ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecret() { if (secretBuilder_ == null) { @@ -1044,71 +922,55 @@ public Builder clearSecret() { return this; } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretBuilder() { - + onChanged(); return getSecretFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } } /** - * - * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder> + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { - secretBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder>( - getSecret(), getParentForChildren(), isClean()); + secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>( + getSecret(), + getParentForChildren(), + isClean()); secret_ = null; } return secretBuilder_; } - @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); } @@ -1118,12 +980,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CreateSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CreateSecretRequest) private static final com.google.cloud.secretmanager.v1.CreateSecretRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CreateSecretRequest(); } @@ -1132,16 +994,16 @@ public static com.google.cloud.secretmanager.v1.CreateSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,4 +1018,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.CreateSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java index 71ded326..36bb1482 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface CreateSecretRequestOrBuilder - extends +public interface CreateSecretRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CreateSecretRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -65,13 +38,10 @@ public interface CreateSecretRequestOrBuilder
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secretId. */ java.lang.String getSecretId(); /** - * - * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -80,49 +50,35 @@ public interface CreateSecretRequestOrBuilder
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for secretId. */ - com.google.protobuf.ByteString getSecretIdBytes(); + com.google.protobuf.ByteString + getSecretIdBytes(); /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ boolean hasSecret(); /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ com.google.cloud.secretmanager.v1.Secret getSecret(); /** - * - * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java similarity index 73% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java index 8855b155..5cbb2c48 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Configuration for encrypting secret payloads using customer-managed
  * encryption keys (CMEK).
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryption}
  */
-public final class CustomerManagedEncryption extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomerManagedEncryption extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CustomerManagedEncryption)
     CustomerManagedEncryptionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomerManagedEncryption.newBuilder() to construct.
   private CustomerManagedEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomerManagedEncryption() {
     kmsKeyName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomerManagedEncryption();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CustomerManagedEncryption(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,52 +54,47 @@ private CustomerManagedEncryption(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kmsKeyName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            kmsKeyName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class,
-            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
+            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
   }
 
   public static final int KMS_KEY_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object kmsKeyName_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -129,7 +107,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyName. */ @java.lang.Override @@ -138,15 +115,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -159,15 +135,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -176,7 +153,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_); } @@ -212,15 +189,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryption)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CustomerManagedEncryption other = - (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) obj; + com.google.cloud.secretmanager.v1.CustomerManagedEncryption other = (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) obj; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,104 +217,96 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseFrom( 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.secretmanager.v1.CustomerManagedEncryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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; } /** - * - * *
    * Configuration for encrypting secret payloads using customer-managed
    * encryption keys (CMEK).
@@ -345,23 +314,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryption}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CustomerManagedEncryption)
       com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class,
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder()
@@ -369,15 +336,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,9 +355,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
     }
 
     @java.lang.Override
@@ -408,8 +376,7 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.CustomerManagedEncryption buildPartial() {
-      com.google.cloud.secretmanager.v1.CustomerManagedEncryption result =
-          new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(this);
+      com.google.cloud.secretmanager.v1.CustomerManagedEncryption result = new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(this);
       result.kmsKeyName_ = kmsKeyName_;
       onBuilt();
       return result;
@@ -419,39 +386,38 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryption) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryption) other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryption)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -459,8 +425,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.secretmanager.v1.CustomerManagedEncryption other) {
-      if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance()) return this;
       if (!other.getKmsKeyName().isEmpty()) {
         kmsKeyName_ = other.kmsKeyName_;
         onChanged();
@@ -484,8 +449,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -497,8 +461,6 @@ public Builder mergeFrom(
 
     private java.lang.Object kmsKeyName_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -511,13 +473,13 @@ public Builder mergeFrom(
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -526,8 +488,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -540,14 +500,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -555,8 +516,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -569,22 +528,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -597,18 +554,15 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -621,23 +575,23 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -647,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CustomerManagedEncryption) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CustomerManagedEncryption) private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryption DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(); } @@ -661,16 +615,16 @@ public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerManagedEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomerManagedEncryption(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerManagedEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerManagedEncryption(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -685,4 +639,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java similarity index 71% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java index 726412bf..e80bec8d 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface CustomerManagedEncryptionOrBuilder - extends +public interface CustomerManagedEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CustomerManagedEncryption) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -38,13 +20,10 @@ public interface CustomerManagedEncryptionOrBuilder
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -57,8 +36,8 @@ public interface CustomerManagedEncryptionOrBuilder
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java similarity index 66% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java index df8702fc..40bb19be 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Describes the status of customer-managed encryption.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus} */ -public final class CustomerManagedEncryptionStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomerManagedEncryptionStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) CustomerManagedEncryptionStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomerManagedEncryptionStatus.newBuilder() to construct. - private CustomerManagedEncryptionStatus( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CustomerManagedEncryptionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomerManagedEncryptionStatus() { kmsKeyVersionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomerManagedEncryptionStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomerManagedEncryptionStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,52 +53,47 @@ private CustomerManagedEncryptionStatus( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyVersionName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kmsKeyVersionName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object kmsKeyVersionName_; /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -124,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -133,15 +109,14 @@ public java.lang.String getKmsKeyVersionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -149,15 +124,16 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -166,7 +142,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyVersionName_); } @@ -202,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other = - (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) obj; + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other = (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) obj; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - parseDelimitedFrom( - java.io.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.secretmanager.v1.CustomerManagedEncryptionStatus parseDelimitedFrom( + java.io.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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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; } /** - * - * *
    * Describes the status of customer-managed encryption.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); } - // Construct using - // com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder() + // Construct using com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance(); } @@ -400,8 +364,7 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus build() @java.lang.Override public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus buildPartial() { - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus result = - new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(this); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus result = new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(this); result.kmsKeyVersionName_ = kmsKeyVersionName_; onBuilt(); return result; @@ -411,50 +374,46 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) { - return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) other); + return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other) { - if (other - == com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other) { + if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance()) return this; if (!other.getKmsKeyVersionName().isEmpty()) { kmsKeyVersionName_ = other.kmsKeyVersionName_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,8 +449,6 @@ public Builder mergeFrom( private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -501,13 +456,13 @@ public Builder mergeFrom(
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; @@ -516,8 +471,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -525,14 +478,15 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -540,8 +494,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -549,22 +501,20 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { + public Builder setKmsKeyVersionName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyVersionName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -572,18 +522,15 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { - + kmsKeyVersionName_ = getDefaultInstance().getKmsKeyVersionName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -591,23 +538,23 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyVersionName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,32 +564,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) - private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerManagedEncryptionStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomerManagedEncryptionStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerManagedEncryptionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerManagedEncryptionStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,8 +599,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java similarity index 60% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java index 21b36579..afc88512 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface CustomerManagedEncryptionStatusOrBuilder - extends +public interface CustomerManagedEncryptionStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -33,13 +15,10 @@ public interface CustomerManagedEncryptionStatusOrBuilder
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -47,8 +26,8 @@ public interface CustomerManagedEncryptionStatusOrBuilder
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java similarity index 68% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java index 89ad165d..288444aa 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DeleteSecretRequest} */ -public final class DeleteSecretRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSecretRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DeleteSecretRequest) DeleteSecretRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSecretRequest.newBuilder() to construct. private DeleteSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSecretRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DeleteSecretRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private DeleteSecretRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, - com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -195,15 +164,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -211,15 +179,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,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_); } @@ -270,16 +239,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.secretmanager.v1.DeleteSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DeleteSecretRequest other = - (com.google.cloud.secretmanager.v1.DeleteSecretRequest) obj; + com.google.cloud.secretmanager.v1.DeleteSecretRequest other = (com.google.cloud.secretmanager.v1.DeleteSecretRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseFrom( 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.secretmanager.v1.DeleteSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.DeleteSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DeleteSecretRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DeleteSecretRequest) com.google.cloud.secretmanager.v1.DeleteSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, - com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DeleteSecretRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override @@ -470,8 +431,7 @@ public com.google.cloud.secretmanager.v1.DeleteSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DeleteSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.DeleteSecretRequest result = - new com.google.cloud.secretmanager.v1.DeleteSecretRequest(this); + com.google.cloud.secretmanager.v1.DeleteSecretRequest result = new com.google.cloud.secretmanager.v1.DeleteSecretRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -482,39 +442,38 @@ public com.google.cloud.secretmanager.v1.DeleteSecretRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DeleteSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DeleteSecretRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.DeleteSecretRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DeleteSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -551,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.DeleteSecretRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.DeleteSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -589,24 +542,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,70 +564,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -685,8 +622,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -694,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -709,8 +644,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -718,14 +651,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -733,8 +667,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -742,22 +674,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -765,18 +695,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -784,23 +711,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -810,12 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DeleteSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DeleteSecretRequest) private static final com.google.cloud.secretmanager.v1.DeleteSecretRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DeleteSecretRequest(); } @@ -824,16 +751,16 @@ public static com.google.cloud.secretmanager.v1.DeleteSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -848,4 +775,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.DeleteSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java index 77626ced..0fdeca68 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DeleteSecretRequestOrBuilder - extends +public interface DeleteSecretRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DeleteSecretRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -64,13 +37,10 @@ public interface DeleteSecretRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -78,8 +48,8 @@ public interface DeleteSecretRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java similarity index 68% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java index ef25c88c..cf77459b 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DestroySecretVersionRequest} */ -public final class DestroySecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DestroySecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DestroySecretVersionRequest) DestroySecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DestroySecretVersionRequest.newBuilder() to construct. private DestroySecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DestroySecretVersionRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DestroySecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DestroySecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DestroySecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private DestroySecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -195,15 +164,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -211,15 +179,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,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_); } @@ -270,16 +239,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.secretmanager.v1.DestroySecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other = - (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other = (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseFrom( 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.secretmanager.v1.DestroySecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DestroySecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DestroySecretVersionRequest) com.google.cloud.secretmanager.v1.DestroySecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance(); } @@ -471,8 +431,7 @@ public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest result = - new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(this); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest result = new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -483,39 +442,38 @@ public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -523,9 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other) { - if (other - == com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -553,9 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -592,24 +542,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -617,70 +564,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -688,8 +622,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -697,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -712,8 +644,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -721,14 +651,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -736,8 +667,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -745,22 +674,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -768,18 +695,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -787,23 +711,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -813,13 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DestroySecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DestroySecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.DestroySecretVersionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.DestroySecretVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(); } @@ -828,16 +751,16 @@ public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestroySecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestroySecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestroySecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestroySecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +775,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java index cd241994..13eca7e0 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DestroySecretVersionRequestOrBuilder - extends +public interface DestroySecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DestroySecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -64,13 +37,10 @@ public interface DestroySecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -78,8 +48,8 @@ public interface DestroySecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java similarity index 68% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java index 9fb8ad3c..c7acca74 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DisableSecretVersionRequest} */ -public final class DisableSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DisableSecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DisableSecretVersionRequest) DisableSecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DisableSecretVersionRequest.newBuilder() to construct. private DisableSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DisableSecretVersionRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private DisableSecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DisableSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DisableSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private DisableSecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -195,15 +164,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -211,15 +179,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,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_); } @@ -270,16 +239,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.secretmanager.v1.DisableSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other = - (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other = (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseFrom( 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.secretmanager.v1.DisableSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DisableSecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DisableSecretVersionRequest) com.google.cloud.secretmanager.v1.DisableSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance(); } @@ -471,8 +431,7 @@ public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest result = - new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest result = new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -483,39 +442,38 @@ public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -523,9 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other) { - if (other - == com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -553,9 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -592,24 +542,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -617,70 +564,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -688,8 +622,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -697,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -712,8 +644,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -721,14 +651,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -736,8 +667,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -745,22 +674,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -768,18 +695,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -787,23 +711,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -813,13 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DisableSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DisableSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.DisableSecretVersionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.DisableSecretVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(); } @@ -828,16 +751,16 @@ public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +775,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java index 4ee4043f..6426725f 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DisableSecretVersionRequestOrBuilder - extends +public interface DisableSecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DisableSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -64,13 +37,10 @@ public interface DisableSecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -78,8 +48,8 @@ public interface DisableSecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java similarity index 68% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java index 76b62146..c6745bf1 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.EnableSecretVersionRequest} */ -public final class EnableSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnableSecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.EnableSecretVersionRequest) EnableSecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnableSecretVersionRequest.newBuilder() to construct. private EnableSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnableSecretVersionRequest() { name_ = ""; etag_ = ""; @@ -44,15 +26,16 @@ private EnableSecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnableSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EnableSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private EnableSecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -186,7 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -195,15 +164,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -211,15 +179,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,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_); } @@ -270,16 +239,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.secretmanager.v1.EnableSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other = - (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other = (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseFrom( 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.secretmanager.v1.EnableSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.EnableSecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.EnableSecretVersionRequest) com.google.cloud.secretmanager.v1.EnableSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance(); } @@ -471,8 +431,7 @@ public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest result = - new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest result = new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -483,39 +442,38 @@ public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -523,9 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other) { - if (other - == com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -553,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,24 +542,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -616,70 +564,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -687,8 +622,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -696,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -711,8 +644,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -720,14 +651,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -735,8 +667,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -744,22 +674,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -767,18 +695,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -786,23 +711,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,13 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.EnableSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.EnableSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.EnableSecretVersionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.EnableSecretVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(); } @@ -827,16 +751,16 @@ public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,4 +775,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java index ec7ea4f8..13472d2e 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface EnableSecretVersionRequestOrBuilder - extends +public interface EnableSecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.EnableSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -64,13 +37,10 @@ public interface EnableSecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -78,8 +48,8 @@ public interface EnableSecretVersionRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java similarity index 65% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java index 69a85c67..ac3e58af 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.SecretManagerService.GetSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretRequest} */ -public final class GetSecretRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSecretRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetSecretRequest) GetSecretRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSecretRequest.newBuilder() to construct. private GetSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSecretRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetSecretRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretRequest.class, - com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretRequest.class, com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,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_); } @@ -201,15 +174,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.secretmanager.v1.GetSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.GetSecretRequest other = - (com.google.cloud.secretmanager.v1.GetSecretRequest) obj; + com.google.cloud.secretmanager.v1.GetSecretRequest other = (com.google.cloud.secretmanager.v1.GetSecretRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.GetSecretRequest parseFrom( 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.secretmanager.v1.GetSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.GetSecretRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.GetSecretRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.SecretManagerService.GetSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetSecretRequest) com.google.cloud.secretmanager.v1.GetSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretRequest.class, - com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretRequest.class, com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.GetSecretRequest.newBuilder() @@ -356,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.secretmanager.v1.GetSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.GetSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.GetSecretRequest result = - new com.google.cloud.secretmanager.v1.GetSecretRequest(this); + com.google.cloud.secretmanager.v1.GetSecretRequest result = new com.google.cloud.secretmanager.v1.GetSecretRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.secretmanager.v1.GetSecretRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.GetSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.GetSecretRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.GetSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.GetSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetSecretRequest) private static final com.google.cloud.secretmanager.v1.GetSecretRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetSecretRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.secretmanager.v1.GetSecretRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.GetSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java new file mode 100644 index 00000000..ce532edd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/service.proto + +package com.google.cloud.secretmanager.v1; + +public interface GetSecretRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java similarity index 67% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java index a9b0fa94..80595047 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretVersionRequest} */ -public final class GetSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSecretVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetSecretVersionRequest) GetSecretVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSecretVersionRequest.newBuilder() to construct. private GetSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSecretVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GetSecretVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -123,10 +101,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,15 +110,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -151,18 +125,17 @@ public java.lang.String getName() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,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.secretmanager.v1.GetSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.GetSecretVersionRequest other = - (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.GetSecretVersionRequest other = (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseFrom( 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.secretmanager.v1.GetSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.GetSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetSecretVersionRequest) com.google.cloud.secretmanager.v1.GetSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.GetSecretVersionRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.secretmanager.v1.GetSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.GetSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.GetSecretVersionRequest result = - new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest result = new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.secretmanager.v1.GetSecretVersionRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.GetSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretVersionRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -453,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -500,16 +458,14 @@ public Builder mergeFrom(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,8 +474,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -527,17 +481,16 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +498,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -554,25 +505,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -580,21 +527,16 @@ public Builder setName(java.lang.String value) {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -602,26 +544,24 @@ public Builder clearName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -631,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.GetSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetSecretVersionRequest) private static final com.google.cloud.secretmanager.v1.GetSecretVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(); } @@ -645,16 +585,16 @@ public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,4 +609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.GetSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java index 5af2f809..8dd6f2ed 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface GetSecretVersionRequestOrBuilder - extends +public interface GetSecretVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -33,16 +15,11 @@ public interface GetSecretVersionRequestOrBuilder
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -50,11 +27,9 @@ public interface GetSecretVersionRequestOrBuilder
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java similarity index 72% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java index 62f1075a..ff03b598 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsRequest} */ -public final class ListSecretVersionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecretVersionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretVersionsRequest) ListSecretVersionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecretVersionsRequest.newBuilder() to construct. private ListSecretVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecretVersionsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListSecretVersionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecretVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSecretVersionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,81 +55,71 @@ private ListSecretVersionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -155,33 +128,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -201,7 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -212,15 +180,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -229,30 +194,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; } } /** - * - * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,8 +228,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -274,7 +237,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -283,15 +245,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -301,15 +262,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -318,7 +280,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -356,7 +318,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_); @@ -372,18 +335,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other = - (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other = (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -409,127 +375,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseFrom( 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.secretmanager.v1.ListSecretVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretVersionsRequest) com.google.cloud.secretmanager.v1.ListSecretVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.newBuilder() @@ -537,15 +493,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -561,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override @@ -582,8 +539,7 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest result = - new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(this); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest result = new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -596,39 +552,38 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest)other); } else { super.mergeFrom(other); return this; @@ -636,8 +591,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -672,8 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,24 +638,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -711,25 +660,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -737,82 +683,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -820,7 +751,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -828,8 +758,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -837,19 +765,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -857,11 +782,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -869,21 +793,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -892,22 +814,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -915,64 +836,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -980,8 +894,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -991,13 +903,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1006,8 +918,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1017,14 +927,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1032,8 +943,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1043,22 +952,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1068,18 +975,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1089,23 +993,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1115,12 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretVersionsRequest) private static final com.google.cloud.secretmanager.v1.ListSecretVersionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(); } @@ -1129,16 +1033,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretVersionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretVersionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java index 65998a8a..e469515e 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretVersionsRequestOrBuilder - extends +public interface ListSecretVersionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretVersionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -66,41 +39,33 @@ public interface ListSecretVersionsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -110,13 +75,10 @@ public interface ListSecretVersionsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -126,8 +88,8 @@ public interface ListSecretVersionsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java similarity index 75% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java index 2f0350f0..4c1b0399 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsResponse} */ -public final class ListSecretVersionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecretVersionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretVersionsResponse) ListSecretVersionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecretVersionsResponse.newBuilder() to construct. private ListSecretVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecretVersionsResponse() { versions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSecretVersionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecretVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSecretVersionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,43 +55,40 @@ private ListSecretVersionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - versions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - versions_.add( - input.readMessage( - com.google.cloud.secretmanager.v1.SecretVersion.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + versions_.add( + input.readMessage(com.google.cloud.secretmanager.v1.SecretVersion.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 24: - { - totalSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + case 24: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); @@ -117,27 +97,22 @@ private ListSecretVersionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); } public static final int VERSIONS_FIELD_NUMBER = 1; private java.util.List versions_; /** - * - * *
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -150,8 +125,6 @@ public java.util.List getVersio
     return versions_;
   }
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -160,13 +133,11 @@ public java.util.List getVersio
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getVersionsOrBuilderList() {
     return versions_;
   }
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -179,8 +150,6 @@ public int getVersionsCount() {
     return versions_.size();
   }
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -193,8 +162,6 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
     return versions_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -203,22 +170,20 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(int index) {
+  public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
+      int index) {
     return versions_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -227,30 +192,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; } } /** - * - * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -261,14 +226,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -277,7 +239,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +250,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 < versions_.size(); i++) { output.writeMessage(1, versions_.get(i)); } @@ -309,13 +271,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < versions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, versions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, versions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -325,17 +289,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.secretmanager.v1.ListSecretVersionsResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other = - (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) obj; + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other = (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) obj; - if (!getVersionsList().equals(other.getVersionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getVersionsList() + .equals(other.getVersionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -361,127 +327,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseFrom( 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.secretmanager.v1.ListSecretVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ListSecretVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretVersionsResponse) com.google.cloud.secretmanager.v1.ListSecretVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.newBuilder() @@ -489,17 +445,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVersionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -517,14 +473,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance(); } @@ -539,8 +494,7 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse result = - new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(this); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse result = new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(this); int from_bitField0_ = bitField0_; if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -561,39 +515,38 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsResponse)other); } else { super.mergeFrom(other); return this; @@ -601,9 +554,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other) { - if (other - == com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance()) return this; if (versionsBuilder_ == null) { if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { @@ -622,10 +573,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsRes versionsBuilder_ = null; versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000001); - versionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVersionsFieldBuilder() - : null; + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVersionsFieldBuilder() : null; } else { versionsBuilder_.addAllMessages(other.versions_); } @@ -657,8 +607,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,29 +616,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List versions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = - new java.util.ArrayList(versions_); + versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretVersion, - com.google.cloud.secretmanager.v1.SecretVersion.Builder, - com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> - versionsBuilder_; + com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> versionsBuilder_; /** - * - * *
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -705,8 +646,6 @@ public java.util.List getVersio
       }
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -722,8 +661,6 @@ public int getVersionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -739,8 +676,6 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -748,7 +683,8 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public Builder setVersions(int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
+    public Builder setVersions(
+        int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
       if (versionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -762,8 +698,6 @@ public Builder setVersions(int index, com.google.cloud.secretmanager.v1.SecretVe
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -783,8 +717,6 @@ public Builder setVersions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -806,8 +738,6 @@ public Builder addVersions(com.google.cloud.secretmanager.v1.SecretVersion value
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -815,7 +745,8 @@ public Builder addVersions(com.google.cloud.secretmanager.v1.SecretVersion value
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public Builder addVersions(int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
+    public Builder addVersions(
+        int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
       if (versionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -829,8 +760,6 @@ public Builder addVersions(int index, com.google.cloud.secretmanager.v1.SecretVe
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -850,8 +779,6 @@ public Builder addVersions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -871,8 +798,6 @@ public Builder addVersions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -884,7 +809,8 @@ public Builder addAllVersions(
         java.lang.Iterable values) {
       if (versionsBuilder_ == null) {
         ensureVersionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, versions_);
         onChanged();
       } else {
         versionsBuilder_.addAllMessages(values);
@@ -892,8 +818,6 @@ public Builder addAllVersions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -912,8 +836,6 @@ public Builder clearVersions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -932,8 +854,6 @@ public Builder removeVersions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -941,12 +861,11 @@ public Builder removeVersions(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilder(int index) {
+    public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilder(
+        int index) {
       return getVersionsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -957,14 +876,11 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilde
     public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
         int index) {
       if (versionsBuilder_ == null) {
-        return versions_.get(index);
-      } else {
+        return versions_.get(index);  } else {
         return versionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -972,8 +888,8 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public java.util.List
-        getVersionsOrBuilderList() {
+    public java.util.List 
+         getVersionsOrBuilderList() {
       if (versionsBuilder_ != null) {
         return versionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -981,8 +897,6 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -991,12 +905,10 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
     public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder() {
-      return getVersionsFieldBuilder()
-          .addBuilder(com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
+      return getVersionsFieldBuilder().addBuilder(
+          com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -1004,13 +916,12 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder(int index) {
-      return getVersionsFieldBuilder()
-          .addBuilder(index, com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
+    public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder(
+        int index) {
+      return getVersionsFieldBuilder().addBuilder(
+          index, com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -1018,23 +929,20 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public java.util.List
-        getVersionsBuilderList() {
+    public java.util.List 
+         getVersionsBuilderList() {
       return getVersionsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.SecretVersion,
-            com.google.cloud.secretmanager.v1.SecretVersion.Builder,
-            com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>
+        com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> 
         getVersionsFieldBuilder() {
       if (versionsBuilder_ == null) {
-        versionsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.secretmanager.v1.SecretVersion,
-                com.google.cloud.secretmanager.v1.SecretVersion.Builder,
-                com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>(
-                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>(
+                versions_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         versions_ = null;
       }
       return versionsBuilder_;
@@ -1042,21 +950,19 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1065,22 +971,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1088,79 +993,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1168,43 +1063,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1214,13 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretVersionsResponse) - private static final com.google.cloud.secretmanager.v1.ListSecretVersionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.ListSecretVersionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(); } @@ -1229,16 +1117,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretVersionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretVersionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,4 +1141,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java similarity index 76% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java index 3983f6df..838efe81 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretVersionsResponseOrBuilder - extends +public interface ListSecretVersionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretVersionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -33,10 +15,9 @@ public interface ListSecretVersionsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  java.util.List getVersionsList();
+  java.util.List 
+      getVersionsList();
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -46,8 +27,6 @@ public interface ListSecretVersionsResponseOrBuilder
    */
   com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index);
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -57,8 +36,6 @@ public interface ListSecretVersionsResponseOrBuilder
    */
   int getVersionsCount();
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -66,11 +43,9 @@ public interface ListSecretVersionsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  java.util.List
+  java.util.List 
       getVersionsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -78,44 +53,37 @@ public interface ListSecretVersionsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(int index);
+  com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java similarity index 72% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java index e02abe20..68ac57eb 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsRequest} */ -public final class ListSecretsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecretsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretsRequest) ListSecretsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecretsRequest.newBuilder() to construct. private ListSecretsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecretsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListSecretsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecretsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSecretsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,80 +55,70 @@ private ListSecretsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsRequest.class, - com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsRequest.class, com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,32 +127,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -190,8 +161,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -199,7 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -210,15 +178,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -227,30 +192,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; } } /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -261,8 +226,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -272,7 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -281,15 +243,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -299,15 +260,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -316,7 +278,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +289,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_); } @@ -354,7 +316,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_); @@ -370,18 +333,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ListSecretsRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretsRequest other = - (com.google.cloud.secretmanager.v1.ListSecretsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.secretmanager.v1.ListSecretsRequest other = (com.google.cloud.secretmanager.v1.ListSecretsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,126 +373,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseFrom( 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.secretmanager.v1.ListSecretsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretsRequest) com.google.cloud.secretmanager.v1.ListSecretsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsRequest.class, - com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsRequest.class, com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretsRequest.newBuilder() @@ -534,15 +491,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override @@ -579,8 +537,7 @@ public com.google.cloud.secretmanager.v1.ListSecretsRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretsRequest buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretsRequest result = - new com.google.cloud.secretmanager.v1.ListSecretsRequest(this); + com.google.cloud.secretmanager.v1.ListSecretsRequest result = new com.google.cloud.secretmanager.v1.ListSecretsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -593,39 +550,38 @@ public com.google.cloud.secretmanager.v1.ListSecretsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretsRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsRequest other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -669,8 +624,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ListSecretsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +636,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,24 +657,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -732,79 +679,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -812,7 +744,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -820,8 +751,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -829,19 +758,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -849,11 +775,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -861,21 +786,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -884,22 +807,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -907,64 +829,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -972,8 +887,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -983,13 +896,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -998,8 +911,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1009,14 +920,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1024,8 +936,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1035,22 +945,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1060,18 +968,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -1081,23 +986,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1107,12 +1012,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretsRequest) private static final com.google.cloud.secretmanager.v1.ListSecretsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretsRequest(); } @@ -1121,16 +1026,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +1050,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ListSecretsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java index 2f85d05b..5f8ca336 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretsRequestOrBuilder - extends +public interface ListSecretsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -64,41 +37,33 @@ public interface ListSecretsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -108,13 +73,10 @@ public interface ListSecretsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -124,8 +86,8 @@ public interface ListSecretsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java similarity index 75% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java index 98ab80a8..35139d6d 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsResponse} */ -public final class ListSecretsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSecretsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretsResponse) ListSecretsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSecretsResponse.newBuilder() to construct. private ListSecretsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSecretsResponse() { secrets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSecretsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSecretsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSecretsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,42 +55,40 @@ private ListSecretsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - secrets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - secrets_.add( - input.readMessage( - com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secrets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + secrets_.add( + input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 24: - { - totalSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + case 24: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); @@ -116,27 +97,22 @@ private ListSecretsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsResponse.class, - com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsResponse.class, com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); } public static final int SECRETS_FIELD_NUMBER = 1; private java.util.List secrets_; /** - * - * *
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -149,8 +125,6 @@ public java.util.List getSecretsList()
     return secrets_;
   }
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -159,13 +133,11 @@ public java.util.List getSecretsList()
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSecretsOrBuilderList() {
     return secrets_;
   }
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -178,8 +150,6 @@ public int getSecretsCount() {
     return secrets_.size();
   }
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -192,8 +162,6 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
     return secrets_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -202,22 +170,20 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
+  public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
+      int index) {
     return secrets_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -226,30 +192,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; } } /** - * - * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -260,14 +226,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -276,7 +239,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +250,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 < secrets_.size(); i++) { output.writeMessage(1, secrets_.get(i)); } @@ -308,13 +271,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < secrets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, secrets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, secrets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -324,17 +289,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.secretmanager.v1.ListSecretsResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretsResponse other = - (com.google.cloud.secretmanager.v1.ListSecretsResponse) obj; + com.google.cloud.secretmanager.v1.ListSecretsResponse other = (com.google.cloud.secretmanager.v1.ListSecretsResponse) obj; - if (!getSecretsList().equals(other.getSecretsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getSecretsList() + .equals(other.getSecretsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -360,127 +327,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseFrom( 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.secretmanager.v1.ListSecretsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ListSecretsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretsResponse) com.google.cloud.secretmanager.v1.ListSecretsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsResponse.class, - com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsResponse.class, com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretsResponse.newBuilder() @@ -488,17 +445,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSecretsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override @@ -537,8 +494,7 @@ public com.google.cloud.secretmanager.v1.ListSecretsResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretsResponse buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretsResponse result = - new com.google.cloud.secretmanager.v1.ListSecretsResponse(this); + com.google.cloud.secretmanager.v1.ListSecretsResponse result = new com.google.cloud.secretmanager.v1.ListSecretsResponse(this); int from_bitField0_ = bitField0_; if (secretsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -559,39 +515,38 @@ public com.google.cloud.secretmanager.v1.ListSecretsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretsResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsResponse) other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsResponse)other); } else { super.mergeFrom(other); return this; @@ -599,8 +554,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsResponse other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance()) return this; if (secretsBuilder_ == null) { if (!other.secrets_.isEmpty()) { if (secrets_.isEmpty()) { @@ -619,10 +573,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsResponse o secretsBuilder_ = null; secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000001); - secretsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecretsFieldBuilder() - : null; + secretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretsFieldBuilder() : null; } else { secretsBuilder_.addAllMessages(other.secrets_); } @@ -654,8 +607,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ListSecretsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -664,28 +616,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List secrets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSecretsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { secrets_ = new java.util.ArrayList(secrets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder> - secretsBuilder_; + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretsBuilder_; /** - * - * *
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -701,8 +646,6 @@ public java.util.List getSecretsList()
       }
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -718,8 +661,6 @@ public int getSecretsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -735,8 +676,6 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -744,7 +683,8 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder setSecrets(int index, com.google.cloud.secretmanager.v1.Secret value) {
+    public Builder setSecrets(
+        int index, com.google.cloud.secretmanager.v1.Secret value) {
       if (secretsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -758,8 +698,6 @@ public Builder setSecrets(int index, com.google.cloud.secretmanager.v1.Secret va
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -779,8 +717,6 @@ public Builder setSecrets(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -802,8 +738,6 @@ public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -811,7 +745,8 @@ public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret value) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder addSecrets(int index, com.google.cloud.secretmanager.v1.Secret value) {
+    public Builder addSecrets(
+        int index, com.google.cloud.secretmanager.v1.Secret value) {
       if (secretsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -825,8 +760,6 @@ public Builder addSecrets(int index, com.google.cloud.secretmanager.v1.Secret va
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -834,7 +767,8 @@ public Builder addSecrets(int index, com.google.cloud.secretmanager.v1.Secret va
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) {
+    public Builder addSecrets(
+        com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) {
       if (secretsBuilder_ == null) {
         ensureSecretsIsMutable();
         secrets_.add(builderForValue.build());
@@ -845,8 +779,6 @@ public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -866,8 +798,6 @@ public Builder addSecrets(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -879,7 +809,8 @@ public Builder addAllSecrets(
         java.lang.Iterable values) {
       if (secretsBuilder_ == null) {
         ensureSecretsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secrets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, secrets_);
         onChanged();
       } else {
         secretsBuilder_.addAllMessages(values);
@@ -887,8 +818,6 @@ public Builder addAllSecrets(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -907,8 +836,6 @@ public Builder clearSecrets() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -927,8 +854,6 @@ public Builder removeSecrets(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -936,12 +861,11 @@ public Builder removeSecrets(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(int index) {
+    public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(
+        int index) {
       return getSecretsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -949,16 +873,14 @@ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(int in
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
+    public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
+        int index) {
       if (secretsBuilder_ == null) {
-        return secrets_.get(index);
-      } else {
+        return secrets_.get(index);  } else {
         return secretsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -966,8 +888,8 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public java.util.List
-        getSecretsOrBuilderList() {
+    public java.util.List 
+         getSecretsOrBuilderList() {
       if (secretsBuilder_ != null) {
         return secretsBuilder_.getMessageOrBuilderList();
       } else {
@@ -975,8 +897,6 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -985,12 +905,10 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
     public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder() {
-      return getSecretsFieldBuilder()
-          .addBuilder(com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
+      return getSecretsFieldBuilder().addBuilder(
+          com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -998,13 +916,12 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder() {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(int index) {
-      return getSecretsFieldBuilder()
-          .addBuilder(index, com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
+    public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(
+        int index) {
+      return getSecretsFieldBuilder().addBuilder(
+          index, com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -1012,23 +929,20 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(int in
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public java.util.List
-        getSecretsBuilderList() {
+    public java.util.List 
+         getSecretsBuilderList() {
       return getSecretsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.Secret,
-            com.google.cloud.secretmanager.v1.Secret.Builder,
-            com.google.cloud.secretmanager.v1.SecretOrBuilder>
+        com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> 
         getSecretsFieldBuilder() {
       if (secretsBuilder_ == null) {
-        secretsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.secretmanager.v1.Secret,
-                com.google.cloud.secretmanager.v1.Secret.Builder,
-                com.google.cloud.secretmanager.v1.SecretOrBuilder>(
-                secrets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>(
+                secrets_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         secrets_ = null;
       }
       return secretsBuilder_;
@@ -1036,21 +950,19 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(int in
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1059,22 +971,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1082,79 +993,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1162,43 +1063,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1208,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretsResponse) private static final com.google.cloud.secretmanager.v1.ListSecretsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretsResponse(); } @@ -1222,16 +1117,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1246,4 +1141,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ListSecretsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java index 5642399c..b4112f0b 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretsResponseOrBuilder - extends +public interface ListSecretsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -33,10 +15,9 @@ public interface ListSecretsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  java.util.List getSecretsList();
+  java.util.List 
+      getSecretsList();
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -46,8 +27,6 @@ public interface ListSecretsResponseOrBuilder
    */
   com.google.cloud.secretmanager.v1.Secret getSecrets(int index);
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -57,8 +36,6 @@ public interface ListSecretsResponseOrBuilder
    */
   int getSecretsCount();
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -66,11 +43,9 @@ public interface ListSecretsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  java.util.List
+  java.util.List 
       getSecretsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -78,44 +53,37 @@ public interface ListSecretsResponseOrBuilder
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index);
+  com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java similarity index 69% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java index 3b281acb..c31dc28a 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * A policy that defines the replication and encryption configuration of data.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication} */ -public final class Replication extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Replication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication) ReplicationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Replication.newBuilder() to construct. private Replication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Replication() {} + private Replication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Replication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Replication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,88 +52,71 @@ private Replication( case 0: done = true; break; - case 10: - { - com.google.cloud.secretmanager.v1.Replication.Automatic.Builder subBuilder = null; - if (replicationCase_ == 1) { - subBuilder = - ((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) - .toBuilder(); - } - replication_ = - input.readMessage( - com.google.cloud.secretmanager.v1.Replication.Automatic.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); - replication_ = subBuilder.buildPartial(); - } - replicationCase_ = 1; - break; + case 10: { + com.google.cloud.secretmanager.v1.Replication.Automatic.Builder subBuilder = null; + if (replicationCase_ == 1) { + subBuilder = ((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_).toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder subBuilder = null; - if (replicationCase_ == 2) { - subBuilder = - ((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) - .toBuilder(); - } - replication_ = - input.readMessage( - com.google.cloud.secretmanager.v1.Replication.UserManaged.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); - replication_ = subBuilder.buildPartial(); - } - replicationCase_ = 2; - break; + replication_ = + input.readMessage(com.google.cloud.secretmanager.v1.Replication.Automatic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + replication_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + replicationCase_ = 1; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder subBuilder = null; + if (replicationCase_ == 2) { + subBuilder = ((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_).toBuilder(); + } + replication_ = + input.readMessage(com.google.cloud.secretmanager.v1.Replication.UserManaged.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + replication_ = subBuilder.buildPartial(); + } + replicationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.class, - com.google.cloud.secretmanager.v1.Replication.Builder.class); + com.google.cloud.secretmanager.v1.Replication.class, com.google.cloud.secretmanager.v1.Replication.Builder.class); } - public interface AutomaticOrBuilder - extends + public interface AutomaticOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.Automatic) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -158,16 +125,11 @@ public interface AutomaticOrBuilder
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** - * - * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -176,16 +138,11 @@ public interface AutomaticOrBuilder
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption(); /** - * - * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -194,16 +151,11 @@ public interface AutomaticOrBuilder
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder(); } /** - * - * *
    * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload without any
    * restrictions.
@@ -211,29 +163,30 @@ public interface AutomaticOrBuilder
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Replication.Automatic}
    */
-  public static final class Automatic extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Automatic extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.Automatic)
       AutomaticOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Automatic.newBuilder() to construct.
     private Automatic(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Automatic() {}
+    private Automatic() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Automatic();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Automatic(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -252,63 +205,54 @@ private Automatic(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder =
-                    null;
-                if (customerManagedEncryption_ != null) {
-                  subBuilder = customerManagedEncryption_.toBuilder();
-                }
-                customerManagedEncryption_ =
-                    input.readMessage(
-                        com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(customerManagedEncryption_);
-                  customerManagedEncryption_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = null;
+              if (customerManagedEncryption_ != null) {
+                subBuilder = customerManagedEncryption_.toBuilder();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(customerManagedEncryption_);
+                customerManagedEncryption_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Replication.Automatic.class,
-              com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
+              com.google.cloud.secretmanager.v1.Replication.Automatic.class, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
     }
 
     public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 1;
     private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_;
     /**
-     *
-     *
      * 
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -317,10 +261,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -328,8 +269,6 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** - * - * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -338,22 +277,14 @@ public boolean hasCustomerManagedEncryption() {
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption - getCustomerManagedEncryption() { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } /** - * - * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -362,18 +293,14 @@ public boolean hasCustomerManagedEncryption() {
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,7 +312,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 (customerManagedEncryption_ != null) { output.writeMessage(1, getCustomerManagedEncryption()); } @@ -399,9 +327,8 @@ public int getSerializedSize() { size = 0; if (customerManagedEncryption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getCustomerManagedEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -411,18 +338,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.secretmanager.v1.Replication.Automatic)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.Automatic other = - (com.google.cloud.secretmanager.v1.Replication.Automatic) obj; + com.google.cloud.secretmanager.v1.Replication.Automatic other = (com.google.cloud.secretmanager.v1.Replication.Automatic) obj; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) - return false; + if (!getCustomerManagedEncryption() + .equals(other.getCustomerManagedEncryption())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -445,94 +371,87 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.Automatic parseFrom( 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.secretmanager.v1.Replication.Automatic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.Automatic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.Automatic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.Replication.Automatic 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 @@ -542,8 +461,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload without any
      * restrictions.
@@ -551,24 +468,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.Replication.Automatic}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.Automatic)
         com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.Replication.Automatic.class,
-                com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
+                com.google.cloud.secretmanager.v1.Replication.Automatic.class, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
       }
 
       // Construct using com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder()
@@ -576,15 +490,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -598,9 +513,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
       }
 
       @java.lang.Override
@@ -619,8 +534,7 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic build() {
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.Replication.Automatic buildPartial() {
-        com.google.cloud.secretmanager.v1.Replication.Automatic result =
-            new com.google.cloud.secretmanager.v1.Replication.Automatic(this);
+        com.google.cloud.secretmanager.v1.Replication.Automatic result = new com.google.cloud.secretmanager.v1.Replication.Automatic(this);
         if (customerManagedEncryptionBuilder_ == null) {
           result.customerManagedEncryption_ = customerManagedEncryption_;
         } else {
@@ -634,41 +548,38 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.Replication.Automatic) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic) other);
+          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -676,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.Automatic other) {
-        if (other == com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) return this;
         if (other.hasCustomerManagedEncryption()) {
           mergeCustomerManagedEncryption(other.getCustomerManagedEncryption());
         }
@@ -700,8 +610,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.secretmanager.v1.Replication.Automatic) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.secretmanager.v1.Replication.Automatic) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -711,16 +620,10 @@ public Builder mergeFrom(
         return this;
       }
 
-      private com.google.cloud.secretmanager.v1.CustomerManagedEncryption
-          customerManagedEncryption_;
+      private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption,
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder,
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>
-          customerManagedEncryptionBuilder_;
+          com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> customerManagedEncryptionBuilder_;
       /**
-       *
-       *
        * 
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -729,18 +632,13 @@ public Builder mergeFrom(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -749,25 +647,17 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption - getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -776,12 +666,9 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -795,8 +682,6 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -805,9 +690,7 @@ public Builder setCustomerManagedEncryption(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomerManagedEncryption( com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder builderForValue) { @@ -821,8 +704,6 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -831,19 +712,13 @@ public Builder setCustomerManagedEncryption(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder( - customerManagedEncryption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); } else { customerManagedEncryption_ = value; } @@ -855,8 +730,6 @@ public Builder mergeCustomerManagedEncryption( return this; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -865,9 +738,7 @@ public Builder mergeCustomerManagedEncryption(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -881,8 +752,6 @@ public Builder clearCustomerManagedEncryption() { return this; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -891,19 +760,14 @@ public Builder clearCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder - getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -912,23 +776,17 @@ public Builder clearCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -937,27 +795,21 @@ public Builder clearCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( - getCustomerManagedEncryption(), getParentForChildren(), isClean()); + customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( + getCustomerManagedEncryption(), + getParentForChildren(), + isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -970,12 +822,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.Automatic) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.Automatic) private static final com.google.cloud.secretmanager.v1.Replication.Automatic DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.Automatic(); } @@ -984,16 +836,16 @@ public static com.google.cloud.secretmanager.v1.Replication.Automatic getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Automatic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Automatic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Automatic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Automatic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1008,86 +860,63 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication.Automatic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UserManagedOrBuilder - extends + public interface UserManagedOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.UserManaged) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getReplicasList(); /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index); /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getReplicasCount(); /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> + java.util.List getReplicasOrBuilderList(); /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( int index); } /** - * - * *
    * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload into the
    * locations specified in [Secret.replication.user_managed.replicas][]
@@ -1095,31 +924,31 @@ com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getRe
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged}
    */
-  public static final class UserManaged extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class UserManaged extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.UserManaged)
       UserManagedOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use UserManaged.newBuilder() to construct.
     private UserManaged(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private UserManaged() {
       replicas_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new UserManaged();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private UserManaged(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1139,33 +968,29 @@ private UserManaged(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  replicas_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                replicas_.add(
-                    input.readMessage(
-                        com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.parser(),
-                        extensionRegistry));
-                break;
+            case 10: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                replicas_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              replicas_.add(
+                  input.readMessage(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           replicas_ = java.util.Collections.unmodifiableList(replicas_);
@@ -1174,57 +999,46 @@ private UserManaged(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.class,
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
     }
 
-    public interface ReplicaOrBuilder
-        extends
+    public interface ReplicaOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.UserManaged.Replica)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1234,16 +1048,11 @@ public interface ReplicaOrBuilder
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1253,16 +1062,11 @@ public interface ReplicaOrBuilder
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption(); /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1272,47 +1076,42 @@ public interface ReplicaOrBuilder
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder(); } /** - * - * *
      * Represents a Replica for this [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged.Replica} */ - public static final class Replica extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Replica extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) ReplicaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Replica.newBuilder() to construct. private Replica(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Replica() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Replica(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Replica( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1331,78 +1130,66 @@ private Replica( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; + location_ = s; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = null; + if (customerManagedEncryption_ != null) { + subBuilder = customerManagedEncryption_.toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = - null; - if (customerManagedEncryption_ != null) { - subBuilder = customerManagedEncryption_.toBuilder(); - } - customerManagedEncryption_ = - input.readMessage( - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customerManagedEncryption_); - customerManagedEncryption_ = subBuilder.buildPartial(); - } - - break; + customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customerManagedEncryption_); + customerManagedEncryption_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; - * * @return The location. */ @java.lang.Override @@ -1411,30 +1198,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; } } /** - * - * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; - * * @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 { @@ -1443,11 +1230,8 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 2; - private com.google.cloud.secretmanager.v1.CustomerManagedEncryption - customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_; /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1457,10 +1241,7 @@ public com.google.protobuf.ByteString getLocationBytes() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -1468,8 +1249,6 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1479,22 +1258,14 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption - getCustomerManagedEncryption() { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } /** - * - * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1504,18 +1275,14 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1527,7 +1294,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1547,9 +1315,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (customerManagedEncryption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getCustomerManagedEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1559,19 +1326,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.secretmanager.v1.Replication.UserManaged.Replica)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other = - (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) obj; + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other = (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) - return false; + if (!getCustomerManagedEncryption() + .equals(other.getCustomerManagedEncryption())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1596,96 +1363,87 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom( 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - parseDelimitedFrom( - java.io.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.secretmanager.v1.Replication.UserManaged.Replica parseDelimitedFrom( + java.io.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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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 @@ -1695,49 +1453,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Represents a Replica for this [Secret][google.cloud.secretmanager.v1.Secret].
        * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged.Replica} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); } - // Construct using - // com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.newBuilder() + // Construct using com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1753,16 +1506,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - .getDefaultInstance(); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance(); } @java.lang.Override @@ -1776,8 +1527,7 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica build() @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica buildPartial() { - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica result = - new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(this); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica result = new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(this); result.location_ = location_; if (customerManagedEncryptionBuilder_ == null) { result.customerManagedEncryption_ = customerManagedEncryption_; @@ -1792,53 +1542,46 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.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.secretmanager.v1.Replication.UserManaged.Replica) { - return mergeFrom( - (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) other); + return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other) { - if (other - == com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other) { + if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -1865,9 +1608,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1879,21 +1620,19 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; - * * @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; @@ -1902,22 +1641,21 @@ public java.lang.String getLocation() { } } /** - * - * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; - * * @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 { @@ -1925,79 +1663,66 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.cloud.secretmanager.v1.CustomerManagedEncryption - customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> - customerManagedEncryptionBuilder_; + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> customerManagedEncryptionBuilder_; /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2007,18 +1732,13 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2028,25 +1748,17 @@ public boolean hasCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption - getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2056,12 +1768,9 @@ public boolean hasCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2075,8 +1784,6 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2086,9 +1793,7 @@ public Builder setCustomerManagedEncryption(
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomerManagedEncryption( com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder builderForValue) { @@ -2102,8 +1807,6 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2113,19 +1816,13 @@ public Builder setCustomerManagedEncryption(
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder( - customerManagedEncryption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); } else { customerManagedEncryption_ = value; } @@ -2137,8 +1834,6 @@ public Builder mergeCustomerManagedEncryption( return this; } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2148,9 +1843,7 @@ public Builder mergeCustomerManagedEncryption(
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -2164,8 +1857,6 @@ public Builder clearCustomerManagedEncryption() { return this; } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2175,19 +1866,14 @@ public Builder clearCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder - getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } - /** - * - * + /** *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2197,23 +1883,17 @@ public Builder clearCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; } } /** - * - * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -2223,27 +1903,21 @@ public Builder clearCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( - getCustomerManagedEncryption(), getParentForChildren(), isClean()); + customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( + getCustomerManagedEncryption(), + getParentForChildren(), + isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2256,32 +1930,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) - private static final com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Replica parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Replica(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Replica parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Replica(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2293,103 +1965,78 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int REPLICAS_FIELD_NUMBER = 1; - private java.util.List - replicas_; + private java.util.List replicas_; /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getReplicasList() { + public java.util.List getReplicasList() { return replicas_; } /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> + public java.util.List getReplicasOrBuilderList() { return replicas_; } /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getReplicasCount() { return replicas_.size(); } /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas( - int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index) { return replicas_.get(index); } /** - * - * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder - getReplicasOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( + int index) { return replicas_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2401,7 +2048,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 < replicas_.size(); i++) { output.writeMessage(1, replicas_.get(i)); } @@ -2415,7 +2063,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < replicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, replicas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, replicas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2425,15 +2074,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.secretmanager.v1.Replication.UserManaged)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.UserManaged other = - (com.google.cloud.secretmanager.v1.Replication.UserManaged) obj; + com.google.cloud.secretmanager.v1.Replication.UserManaged other = (com.google.cloud.secretmanager.v1.Replication.UserManaged) obj; - if (!getReplicasList().equals(other.getReplicasList())) return false; + if (!getReplicasList() + .equals(other.getReplicasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2455,94 +2104,87 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseFrom( 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.secretmanager.v1.Replication.UserManaged parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.Replication.UserManaged 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 @@ -2552,8 +2194,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload into the
      * locations specified in [Secret.replication.user_managed.replicas][]
@@ -2561,24 +2201,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.UserManaged)
         com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.Replication.UserManaged.class,
-                com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
+                com.google.cloud.secretmanager.v1.Replication.UserManaged.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
       }
 
       // Construct using com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder()
@@ -2586,17 +2223,17 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getReplicasFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2610,9 +2247,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
       }
 
       @java.lang.Override
@@ -2631,8 +2268,7 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged build() {
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.Replication.UserManaged buildPartial() {
-        com.google.cloud.secretmanager.v1.Replication.UserManaged result =
-            new com.google.cloud.secretmanager.v1.Replication.UserManaged(this);
+        com.google.cloud.secretmanager.v1.Replication.UserManaged result = new com.google.cloud.secretmanager.v1.Replication.UserManaged(this);
         int from_bitField0_ = bitField0_;
         if (replicasBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
@@ -2651,41 +2287,38 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged buildPartial()
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.Replication.UserManaged) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged) other);
+          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2693,8 +2326,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManaged other) {
-        if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) return this;
         if (replicasBuilder_ == null) {
           if (!other.replicas_.isEmpty()) {
             if (replicas_.isEmpty()) {
@@ -2713,10 +2345,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManag
               replicasBuilder_ = null;
               replicas_ = other.replicas_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              replicasBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getReplicasFieldBuilder()
-                      : null;
+              replicasBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getReplicasFieldBuilder() : null;
             } else {
               replicasBuilder_.addAllMessages(other.replicas_);
             }
@@ -2741,8 +2372,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.secretmanager.v1.Replication.UserManaged) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.secretmanager.v1.Replication.UserManaged) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2751,41 +2381,29 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List
-          replicas_ = java.util.Collections.emptyList();
-
+      private java.util.List replicas_ =
+        java.util.Collections.emptyList();
       private void ensureReplicasIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          replicas_ =
-              new java.util.ArrayList<
-                  com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica>(replicas_);
+          replicas_ = new java.util.ArrayList(replicas_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica,
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder,
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>
-          replicasBuilder_;
+          com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> replicasBuilder_;
 
       /**
-       *
-       *
        * 
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getReplicasList() { + public java.util.List getReplicasList() { if (replicasBuilder_ == null) { return java.util.Collections.unmodifiableList(replicas_); } else { @@ -2793,16 +2411,12 @@ private void ensureReplicasIsMutable() { } } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getReplicasCount() { if (replicasBuilder_ == null) { @@ -2812,19 +2426,14 @@ public int getReplicasCount() { } } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas( - int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index) { if (replicasBuilder_ == null) { return replicas_.get(index); } else { @@ -2832,16 +2441,12 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getRepl } } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReplicas( int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { @@ -2858,21 +2463,15 @@ public Builder setReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReplicas( - int index, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - builderForValue) { + int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.set(index, builderForValue.build()); @@ -2883,19 +2482,14 @@ public Builder setReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addReplicas( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { + public Builder addReplicas(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2909,16 +2503,12 @@ public Builder addReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addReplicas( int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { @@ -2935,20 +2525,15 @@ public Builder addReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addReplicas( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - builderForValue) { + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(builderForValue.build()); @@ -2959,21 +2544,15 @@ public Builder addReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addReplicas( - int index, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - builderForValue) { + int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(index, builderForValue.build()); @@ -2984,24 +2563,19 @@ public Builder addReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllReplicas( - java.lang.Iterable< - ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica> - values) { + java.lang.Iterable values) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -3009,16 +2583,12 @@ public Builder addAllReplicas( return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReplicas() { if (replicasBuilder_ == null) { @@ -3031,16 +2601,12 @@ public Builder clearReplicas() { return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeReplicas(int index) { if (replicasBuilder_ == null) { @@ -3053,56 +2619,42 @@ public Builder removeReplicas(int index) { return this; } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - getReplicasBuilder(int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder getReplicasBuilder( + int index) { return getReplicasFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder - getReplicasOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( + int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); - } else { + return replicas_.get(index); } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> - getReplicasOrBuilderList() { + public java.util.List + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -3110,79 +2662,56 @@ public Builder removeReplicas(int index) { } } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - addReplicasBuilder() { - return getReplicasFieldBuilder() - .addBuilder( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - .getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder addReplicasBuilder() { + return getReplicasFieldBuilder().addBuilder( + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()); } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder - addReplicasBuilder(int index) { - return getReplicasFieldBuilder() - .addBuilder( - index, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica - .getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder addReplicasBuilder( + int index) { + return getReplicasFieldBuilder().addBuilder( + index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()); } /** - * - * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder> - getReplicasBuilderList() { + public java.util.List + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, - com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, - com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>( - replicas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>( + replicas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); replicas_ = null; } return replicasBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3195,12 +2724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.UserManaged) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.UserManaged) private static final com.google.cloud.secretmanager.v1.Replication.UserManaged DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.UserManaged(); } @@ -3209,16 +2738,16 @@ public static com.google.cloud.secretmanager.v1.Replication.UserManaged getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserManaged parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserManaged(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserManaged(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3233,20 +2762,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication.UserManaged getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int replicationCase_ = 0; private java.lang.Object replication_; - public enum ReplicationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTOMATIC(1), USER_MANAGED(2), REPLICATION_NOT_SET(0); private final int value; - private ReplicationCase(int value) { this.value = value; } @@ -3262,36 +2789,30 @@ public static ReplicationCase valueOf(int value) { public static ReplicationCase forNumber(int value) { switch (value) { - case 1: - return AUTOMATIC; - case 2: - return USER_MANAGED; - case 0: - return REPLICATION_NOT_SET; - default: - return null; + case 1: return AUTOMATIC; + case 2: return USER_MANAGED; + case 0: return REPLICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ReplicationCase getReplicationCase() { - return ReplicationCase.forNumber(replicationCase_); + public ReplicationCase + getReplicationCase() { + return ReplicationCase.forNumber( + replicationCase_); } public static final int AUTOMATIC_FIELD_NUMBER = 1; /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3299,26 +2820,21 @@ public boolean hasAutomatic() { return replicationCase_ == 1; } /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { if (replicationCase_ == 1) { - return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; + return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; } return com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
@@ -3328,21 +2844,18 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder() { if (replicationCase_ == 1) { - return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; + return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; } return com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } public static final int USER_MANAGED_FIELD_NUMBER = 2; /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -3350,26 +2863,21 @@ public boolean hasUserManaged() { return replicationCase_ == 2; } /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged() { if (replicationCase_ == 2) { - return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; + return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; } return com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
@@ -3377,16 +2885,14 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged( * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder - getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUserManagedOrBuilder() { if (replicationCase_ == 2) { - return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; + return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; } return com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3398,14 +2904,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (replicationCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + output.writeMessage(1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); } if (replicationCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + output.writeMessage(2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); } unknownFields.writeTo(output); } @@ -3417,14 +2922,12 @@ public int getSerializedSize() { size = 0; if (replicationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); } if (replicationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3434,21 +2937,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Replication)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication other = - (com.google.cloud.secretmanager.v1.Replication) obj; + com.google.cloud.secretmanager.v1.Replication other = (com.google.cloud.secretmanager.v1.Replication) obj; if (!getReplicationCase().equals(other.getReplicationCase())) return false; switch (replicationCase_) { case 1: - if (!getAutomatic().equals(other.getAutomatic())) return false; + if (!getAutomatic() + .equals(other.getAutomatic())) return false; break; case 2: - if (!getUserManaged().equals(other.getUserManaged())) return false; + if (!getUserManaged() + .equals(other.getUserManaged())) return false; break; case 0: default: @@ -3481,127 +2985,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Replication parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Replication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication parseFrom( 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.secretmanager.v1.Replication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Replication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication 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.secretmanager.v1.Replication 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.secretmanager.v1.Replication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A policy that defines the replication and encryption configuration of data.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication) com.google.cloud.secretmanager.v1.ReplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.class, - com.google.cloud.secretmanager.v1.Replication.Builder.class); + com.google.cloud.secretmanager.v1.Replication.class, com.google.cloud.secretmanager.v1.Replication.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.Replication.newBuilder() @@ -3609,15 +3104,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3627,9 +3123,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override @@ -3648,8 +3144,7 @@ public com.google.cloud.secretmanager.v1.Replication build() { @java.lang.Override public com.google.cloud.secretmanager.v1.Replication buildPartial() { - com.google.cloud.secretmanager.v1.Replication result = - new com.google.cloud.secretmanager.v1.Replication(this); + com.google.cloud.secretmanager.v1.Replication result = new com.google.cloud.secretmanager.v1.Replication(this); if (replicationCase_ == 1) { if (automaticBuilder_ == null) { result.replication_ = replication_; @@ -3673,39 +3168,38 @@ public com.google.cloud.secretmanager.v1.Replication buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.Replication) { - return mergeFrom((com.google.cloud.secretmanager.v1.Replication) other); + return mergeFrom((com.google.cloud.secretmanager.v1.Replication)other); } else { super.mergeFrom(other); return this; @@ -3715,20 +3209,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication other) { if (other == com.google.cloud.secretmanager.v1.Replication.getDefaultInstance()) return this; switch (other.getReplicationCase()) { - case AUTOMATIC: - { - mergeAutomatic(other.getAutomatic()); - break; - } - case USER_MANAGED: - { - mergeUserManaged(other.getUserManaged()); - break; - } - case REPLICATION_NOT_SET: - { - break; - } + case AUTOMATIC: { + mergeAutomatic(other.getAutomatic()); + break; + } + case USER_MANAGED: { + mergeUserManaged(other.getUserManaged()); + break; + } + case REPLICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3758,12 +3249,12 @@ public Builder mergeFrom( } return this; } - private int replicationCase_ = 0; private java.lang.Object replication_; - - public ReplicationCase getReplicationCase() { - return ReplicationCase.forNumber(replicationCase_); + public ReplicationCase + getReplicationCase() { + return ReplicationCase.forNumber( + replicationCase_); } public Builder clearReplication() { @@ -3773,20 +3264,15 @@ public Builder clearReplication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, - com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, - com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> - automaticBuilder_; + com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> automaticBuilder_; /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3794,14 +3280,11 @@ public boolean hasAutomatic() { return replicationCase_ == 1; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return The automatic. */ @java.lang.Override @@ -3819,8 +3302,6 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { } } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3841,8 +3322,6 @@ public Builder setAutomatic(com.google.cloud.secretmanager.v1.Replication.Automa return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3861,8 +3340,6 @@ public Builder setAutomatic( return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3871,14 +3348,10 @@ public Builder setAutomatic( */ public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.Replication.Automatic value) { if (automaticBuilder_ == null) { - if (replicationCase_ == 1 - && replication_ - != com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) { - replication_ = - com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder( - (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) - .mergeFrom(value) - .buildPartial(); + if (replicationCase_ == 1 && + replication_ != com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) { + replication_ = com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) + .mergeFrom(value).buildPartial(); } else { replication_ = value; } @@ -3893,8 +3366,6 @@ public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.Replication.Auto return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3918,8 +3389,6 @@ public Builder clearAutomatic() { return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3930,8 +3399,6 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma return getAutomaticFieldBuilder().getBuilder(); } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3939,8 +3406,7 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder - getAutomaticOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder() { if ((replicationCase_ == 1) && (automaticBuilder_ != null)) { return automaticBuilder_.getMessageOrBuilder(); } else { @@ -3951,8 +3417,6 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma } } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3960,45 +3424,32 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, - com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, - com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> + com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> getAutomaticFieldBuilder() { if (automaticBuilder_ == null) { if (!(replicationCase_ == 1)) { - replication_ = - com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); + replication_ = com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } - automaticBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, - com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, - com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder>( + automaticBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder>( (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_, getParentForChildren(), isClean()); replication_ = null; } replicationCase_ = 1; - onChanged(); - ; + onChanged();; return automaticBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, - com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> - userManagedBuilder_; + com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> userManagedBuilder_; /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -4006,14 +3457,11 @@ public boolean hasUserManaged() { return replicationCase_ == 2; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return The userManaged. */ @java.lang.Override @@ -4031,8 +3479,6 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged( } } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -4053,8 +3499,6 @@ public Builder setUserManaged(com.google.cloud.secretmanager.v1.Replication.User return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -4073,25 +3517,18 @@ public Builder setUserManaged( return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ - public Builder mergeUserManaged( - com.google.cloud.secretmanager.v1.Replication.UserManaged value) { + public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.Replication.UserManaged value) { if (userManagedBuilder_ == null) { - if (replicationCase_ == 2 - && replication_ - != com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) { - replication_ = - com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder( - (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) - .mergeFrom(value) - .buildPartial(); + if (replicationCase_ == 2 && + replication_ != com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) { + replication_ = com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) + .mergeFrom(value).buildPartial(); } else { replication_ = value; } @@ -4106,8 +3543,6 @@ public Builder mergeUserManaged( return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -4131,21 +3566,16 @@ public Builder clearUserManaged() { return this; } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder - getUserManagedBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder getUserManagedBuilder() { return getUserManagedFieldBuilder().getBuilder(); } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -4153,8 +3583,7 @@ public Builder clearUserManaged() { * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder - getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUserManagedOrBuilder() { if ((replicationCase_ == 2) && (userManagedBuilder_ != null)) { return userManagedBuilder_.getMessageOrBuilder(); } else { @@ -4165,8 +3594,6 @@ public Builder clearUserManaged() { } } /** - * - * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -4174,33 +3601,26 @@ public Builder clearUserManaged() { * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, - com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> + com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> getUserManagedFieldBuilder() { if (userManagedBuilder_ == null) { if (!(replicationCase_ == 2)) { - replication_ = - com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); + replication_ = com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } - userManagedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, - com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, - com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder>( + userManagedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder>( (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_, getParentForChildren(), isClean()); replication_ = null; } replicationCase_ = 2; - onChanged(); - ; + onChanged();; return userManagedBuilder_; } - @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); } @@ -4210,12 +3630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication) private static final com.google.cloud.secretmanager.v1.Replication DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication(); } @@ -4224,16 +3644,16 @@ public static com.google.cloud.secretmanager.v1.Replication getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Replication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Replication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Replication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Replication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4248,4 +3668,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java similarity index 76% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java index 0c4c002d..206a5029 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface ReplicationOrBuilder - extends +public interface ReplicationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return Whether the automatic field is set. */ boolean hasAutomatic(); /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; - * * @return The automatic. */ com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic(); /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
@@ -59,32 +35,24 @@ public interface ReplicationOrBuilder com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder(); /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return Whether the userManaged field is set. */ boolean hasUserManaged(); /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; - * * @return The userManaged. */ com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged(); /** - * - * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java similarity index 62% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java index dc99e043..f60bc987 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus} */ -public final class ReplicationStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReplicationStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus) ReplicationStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReplicationStatus.newBuilder() to construct. private ReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReplicationStatus() {} + private ReplicationStatus() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReplicationStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReplicationStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,141 +52,101 @@ private ReplicationStatus( case 0: done = true; break; - case 10: - { - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder - subBuilder = null; - if (replicationStatusCase_ == 1) { - subBuilder = - ((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - replicationStatus_) - .toBuilder(); - } - replicationStatus_ = - input.readMessage( - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); - } - replicationStatusCase_ = 1; - break; + case 10: { + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder subBuilder = null; + if (replicationStatusCase_ == 1) { + subBuilder = ((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_).toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder - subBuilder = null; - if (replicationStatusCase_ == 2) { - subBuilder = - ((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_) - .toBuilder(); - } - replicationStatus_ = - input.readMessage( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); - } - replicationStatusCase_ = 2; - break; + replicationStatus_ = + input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + replicationStatusCase_ = 1; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder subBuilder = null; + if (replicationStatusCase_ == 2) { + subBuilder = ((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_).toBuilder(); + } + replicationStatus_ = + input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); } + replicationStatusCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.class, - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); } - public interface AutomaticStatusOrBuilder - extends + public interface AutomaticStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** - * - * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption(); /** - * - * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder(); } /** - * - * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using automatic replication.
    * Only populated if the parent [Secret][google.cloud.secretmanager.v1.Secret] has an automatic replication
@@ -211,29 +155,30 @@ public interface AutomaticStatusOrBuilder
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus}
    */
-  public static final class AutomaticStatus extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AutomaticStatus extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
       AutomaticStatusOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AutomaticStatus.newBuilder() to construct.
     private AutomaticStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private AutomaticStatus() {}
+    private AutomaticStatus() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AutomaticStatus();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private AutomaticStatus(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -252,73 +197,60 @@ private AutomaticStatus(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder
-                    subBuilder = null;
-                if (customerManagedEncryption_ != null) {
-                  subBuilder = customerManagedEncryption_.toBuilder();
-                }
-                customerManagedEncryption_ =
-                    input.readMessage(
-                        com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(customerManagedEncryption_);
-                  customerManagedEncryption_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder subBuilder = null;
+              if (customerManagedEncryption_ != null) {
+                subBuilder = customerManagedEncryption_.toBuilder();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(customerManagedEncryption_);
+                customerManagedEncryption_ = subBuilder.buildPartial();
               }
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class,
-              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
+              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
     }
 
     public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 1;
-    private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus
-        customerManagedEncryption_;
+    private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_;
     /**
-     *
-     *
      * 
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -326,46 +258,32 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** - * - * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption() { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() - : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } /** - * - * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +295,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 (customerManagedEncryption_ != null) { output.writeMessage(1, getCustomerManagedEncryption()); } @@ -391,9 +310,8 @@ public int getSerializedSize() { size = 0; if (customerManagedEncryption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getCustomerManagedEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -403,18 +321,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.secretmanager.v1.ReplicationStatus.AutomaticStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other = - (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) obj; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) - return false; + if (!getCustomerManagedEncryption() + .equals(other.getCustomerManagedEncryption())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -437,95 +354,87 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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 @@ -535,8 +444,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using automatic replication.
      * Only populated if the parent [Secret][google.cloud.secretmanager.v1.Secret] has an automatic replication
@@ -545,41 +452,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
         com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class,
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder()
+      // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -593,16 +497,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-          getDefaultInstanceForType() {
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-            .getDefaultInstance();
+      public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstanceForType() {
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -616,8 +518,7 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus build
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus buildPartial() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus result =
-            new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(this);
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(this);
         if (customerManagedEncryptionBuilder_ == null) {
           result.customerManagedEncryption_ = customerManagedEncryption_;
         } else {
@@ -631,53 +532,46 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus build
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) {
-          return mergeFrom(
-              (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) other);
+          return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other) {
-        if (other
-            == com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other) {
+        if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance()) return this;
         if (other.hasCustomerManagedEncryption()) {
           mergeCustomerManagedEncryption(other.getCustomerManagedEncryption());
         }
@@ -700,9 +594,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -712,69 +604,46 @@ public Builder mergeFrom(
         return this;
       }
 
-      private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus
-          customerManagedEncryption_;
+      private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus,
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder,
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>
-          customerManagedEncryptionBuilder_;
+          com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> customerManagedEncryptionBuilder_;
       /**
-       *
-       *
        * 
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - .getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -788,20 +657,15 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder - builderForValue) { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder builderForValue) { if (customerManagedEncryptionBuilder_ == null) { customerManagedEncryption_ = builderForValue.build(); onChanged(); @@ -812,26 +676,18 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder( - customerManagedEncryption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); } else { customerManagedEncryption_ = value; } @@ -843,16 +699,12 @@ public Builder mergeCustomerManagedEncryption( return this; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -866,75 +718,55 @@ public Builder clearCustomerManagedEncryption() { return this; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder - getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - .getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( - getCustomerManagedEncryption(), getParentForChildren(), isClean()); + customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( + getCustomerManagedEncryption(), + getParentForChildren(), + isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -947,32 +779,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutomaticStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutomaticStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomaticStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutomaticStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,89 +814,61 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UserManagedStatusOrBuilder - extends + public interface UserManagedStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> + java.util.List getReplicasList(); /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas( - int index); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index); /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getReplicasCount(); /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder> + java.util.List getReplicasOrBuilderList(); /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder - getReplicasOrBuilder(int index); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( + int index); } /** - * - * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using user-managed
    * replication.
@@ -1076,31 +878,31 @@ com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaSta
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus}
    */
-  public static final class UserManagedStatus extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class UserManagedStatus extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
       UserManagedStatusOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use UserManagedStatus.newBuilder() to construct.
     private UserManagedStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private UserManagedStatus() {
       replicas_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new UserManagedStatus();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private UserManagedStatus(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1120,35 +922,29 @@ private UserManagedStatus(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  replicas_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-                              .ReplicaStatus>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                replicas_.add(
-                    input.readMessage(
-                        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-                            .ReplicaStatus.parser(),
-                        extensionRegistry));
-                break;
+            case 10: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                replicas_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              replicas_.add(
+                  input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           replicas_ = java.util.Collections.unmodifiableList(replicas_);
@@ -1157,135 +953,107 @@ private UserManagedStatus(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class,
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
     }
 
-    public interface ReplicaStatusOrBuilder
-        extends
+    public interface ReplicaStatusOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption(); /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder(); } /** - * - * *
      * Describes the status of a user-managed replica for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * Protobuf type {@code - * google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} + * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} */ - public static final class ReplicaStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReplicaStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) ReplicaStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReplicaStatus.newBuilder() to construct. private ReplicaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReplicaStatus() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReplicaStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReplicaStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1304,81 +1072,66 @@ private ReplicaStatus( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; + location_ = s; + break; + } + case 18: { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder subBuilder = null; + if (customerManagedEncryption_ != null) { + subBuilder = customerManagedEncryption_.toBuilder(); } - case 18: - { - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder - subBuilder = null; - if (customerManagedEncryption_ != null) { - subBuilder = customerManagedEncryption_.toBuilder(); - } - customerManagedEncryption_ = - input.readMessage( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customerManagedEncryption_); - customerManagedEncryption_ = subBuilder.buildPartial(); - } - - break; + customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customerManagedEncryption_); + customerManagedEncryption_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .class, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ @java.lang.Override @@ -1387,30 +1140,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; } } /** - * - * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1419,20 +1172,14 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 2; - private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_; /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -1440,46 +1187,32 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption() { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() - : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } /** - * - * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1491,7 +1224,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1511,9 +1245,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (customerManagedEncryption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getCustomerManagedEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1523,22 +1256,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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)) { + if (!(obj instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other = - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) - obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) - return false; + if (!getCustomerManagedEncryption() + .equals(other.getCustomerManagedEncryption())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1562,116 +1292,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + 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.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - 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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus 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 @@ -1681,53 +1383,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes the status of a user-managed replica for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * Protobuf type {@code - * google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} + * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus.class, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder.class); } - // Construct using - // com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.newBuilder() + // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1743,23 +1436,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .getDefaultInstance(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - build() { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - result = buildPartial(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus build() { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1767,12 +1456,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - buildPartial() { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - result = - new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus(this); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus buildPartial() { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus(this); result.location_ = location_; if (customerManagedEncryptionBuilder_ == null) { result.customerManagedEncryption_ = customerManagedEncryption_; @@ -1787,58 +1472,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) { - return mergeFrom( - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus) - other); + if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) { + return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - other) { - if (other - == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other) { + if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -1861,15 +1534,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - parsedMessage = null; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1881,21 +1550,19 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1904,22 +1571,21 @@ public java.lang.String getLocation() { } } /** - * - * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1927,132 +1593,102 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> - customerManagedEncryptionBuilder_; + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> customerManagedEncryptionBuilder_; /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - .getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2066,20 +1702,15 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder - builderForValue) { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder builderForValue) { if (customerManagedEncryptionBuilder_ == null) { customerManagedEncryption_ = builderForValue.build(); onChanged(); @@ -2090,26 +1721,18 @@ public Builder setCustomerManagedEncryption( return this; } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder( - customerManagedEncryption_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); } else { customerManagedEncryption_ = value; } @@ -2121,16 +1744,12 @@ public Builder mergeCustomerManagedEncryption( return this; } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -2144,75 +1763,55 @@ public Builder clearCustomerManagedEncryption() { return this; } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder - getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** - * - * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder - getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null - ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus - .getDefaultInstance() - : customerManagedEncryption_; + return customerManagedEncryption_ == null ? + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; } } - /** - * - * + /** *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( - getCustomerManagedEncryption(), getParentForChildren(), isClean()); + customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( + getCustomerManagedEncryption(), + getParentForChildren(), + isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2225,36 +1824,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus(); + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus - getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplicaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplicaStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplicaStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2266,103 +1859,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int REPLICAS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> - replicas_; + private java.util.List replicas_; /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> - getReplicasList() { + public java.util.List getReplicasList() { return replicas_; } /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder> + public java.util.List getReplicasOrBuilderList() { return replicas_; } /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getReplicasCount() { return replicas_.size(); } /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - getReplicas(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index) { return replicas_.get(index); } /** - * - * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder - getReplicasOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( + int index) { return replicas_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2374,7 +1937,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 < replicas_.size(); i++) { output.writeMessage(1, replicas_.get(i)); } @@ -2388,7 +1952,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < replicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, replicas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, replicas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2398,15 +1963,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.secretmanager.v1.ReplicationStatus.UserManagedStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other = - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) obj; - if (!getReplicasList().equals(other.getReplicasList())) return false; + if (!getReplicasList() + .equals(other.getReplicasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2428,95 +1993,87 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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 @@ -2526,8 +2083,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using user-managed
      * replication.
@@ -2537,44 +2092,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
         com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class,
-                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder
-                    .class);
+                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder()
+      // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getReplicasFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2588,22 +2138,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto
-            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-          getDefaultInstanceForType() {
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-            .getDefaultInstance();
+      public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstanceForType() {
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus build() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result =
-            buildPartial();
+        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2612,8 +2159,7 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus bui
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus buildPartial() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result =
-            new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(this);
+        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(this);
         int from_bitField0_ = bitField0_;
         if (replicasBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
@@ -2632,54 +2178,46 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus bui
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) {
-          return mergeFrom(
-              (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) other);
+        if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) {
+          return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other) {
-        if (other
-            == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other) {
+        if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance()) return this;
         if (replicasBuilder_ == null) {
           if (!other.replicas_.isEmpty()) {
             if (replicas_.isEmpty()) {
@@ -2698,10 +2236,9 @@ public Builder mergeFrom(
               replicasBuilder_ = null;
               replicas_ = other.replicas_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              replicasBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getReplicasFieldBuilder()
-                      : null;
+              replicasBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getReplicasFieldBuilder() : null;
             } else {
               replicasBuilder_.addAllMessages(other.replicas_);
             }
@@ -2726,9 +2263,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2737,45 +2272,28 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List<
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus>
-          replicas_ = java.util.Collections.emptyList();
-
+      private java.util.List replicas_ =
+        java.util.Collections.emptyList();
       private void ensureReplicasIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          replicas_ =
-              new java.util.ArrayList<
-                  com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-                      .ReplicaStatus>(replicas_);
+          replicas_ = new java.util.ArrayList(replicas_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus,
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus
-                  .Builder,
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
-                  .ReplicaStatusOrBuilder>
-          replicasBuilder_;
+          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder> replicasBuilder_;
 
       /**
-       *
-       *
        * 
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> - getReplicasList() { + public java.util.List getReplicasList() { if (replicasBuilder_ == null) { return java.util.Collections.unmodifiableList(replicas_); } else { @@ -2783,15 +2301,11 @@ private void ensureReplicasIsMutable() { } } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getReplicasCount() { if (replicasBuilder_ == null) { @@ -2801,18 +2315,13 @@ public int getReplicasCount() { } } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - getReplicas(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index) { if (replicasBuilder_ == null) { return replicas_.get(index); } else { @@ -2820,20 +2329,14 @@ public int getReplicasCount() { } } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setReplicas( - int index, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - value) { + int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2847,21 +2350,14 @@ public Builder setReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setReplicas( - int index, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - builderForValue) { + int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.set(index, builderForValue.build()); @@ -2872,19 +2368,13 @@ public Builder setReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addReplicas( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - value) { + public Builder addReplicas(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2898,20 +2388,14 @@ public Builder addReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addReplicas( - int index, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - value) { + int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2925,20 +2409,14 @@ public Builder addReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addReplicas( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - builderForValue) { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(builderForValue.build()); @@ -2949,21 +2427,14 @@ public Builder addReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addReplicas( - int index, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - builderForValue) { + int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(index, builderForValue.build()); @@ -2974,25 +2445,18 @@ public Builder addReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllReplicas( - java.lang.Iterable< - ? extends - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus> - values) { + java.lang.Iterable values) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -3000,15 +2464,11 @@ public Builder addAllReplicas( return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearReplicas() { if (replicasBuilder_ == null) { @@ -3021,15 +2481,11 @@ public Builder clearReplicas() { return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeReplicas(int index) { if (replicasBuilder_ == null) { @@ -3042,57 +2498,39 @@ public Builder removeReplicas(int index) { return this; } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - getReplicasBuilder(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder getReplicasBuilder( + int index) { return getReplicasFieldBuilder().getBuilder(index); } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder - getReplicasOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( + int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); - } else { + return replicas_.get(index); } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder> - getReplicasOrBuilderList() { + public java.util.List + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -3100,84 +2538,53 @@ public Builder removeReplicas(int index) { } } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - addReplicasBuilder() { - return getReplicasFieldBuilder() - .addBuilder( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .getDefaultInstance()); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder addReplicasBuilder() { + return getReplicasFieldBuilder().addBuilder( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()); } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder - addReplicasBuilder(int index) { - return getReplicasFieldBuilder() - .addBuilder( - index, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .getDefaultInstance()); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder addReplicasBuilder( + int index) { + return getReplicasFieldBuilder().addBuilder( + index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()); } /** - * - * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder> - getReplicasBuilderList() { + public java.util.List + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus - .Builder, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .ReplicaStatusOrBuilder>( - replicas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder>( + replicas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); replicas_ = null; } return replicasBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3190,33 +2597,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(); + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserManagedStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserManagedStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserManagedStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserManagedStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3228,24 +2632,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int replicationStatusCase_ = 0; private java.lang.Object replicationStatus_; - public enum ReplicationStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTOMATIC(1), USER_MANAGED(2), REPLICATIONSTATUS_NOT_SET(0); private final int value; - private ReplicationStatusCase(int value) { this.value = value; } @@ -3261,30 +2662,25 @@ public static ReplicationStatusCase valueOf(int value) { public static ReplicationStatusCase forNumber(int value) { switch (value) { - case 1: - return AUTOMATIC; - case 2: - return USER_MANAGED; - case 0: - return REPLICATIONSTATUS_NOT_SET; - default: - return null; + case 1: return AUTOMATIC; + case 2: return USER_MANAGED; + case 0: return REPLICATIONSTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ReplicationStatusCase getReplicationStatusCase() { - return ReplicationStatusCase.forNumber(replicationStatusCase_); + public ReplicationStatusCase + getReplicationStatusCase() { + return ReplicationStatusCase.forNumber( + replicationStatusCase_); } public static final int AUTOMATIC_FIELD_NUMBER = 1; /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -3293,7 +2689,6 @@ public ReplicationStatusCase getReplicationStatusCase() {
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3301,8 +2696,6 @@ public boolean hasAutomatic() { return replicationStatusCase_ == 1; } /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -3311,20 +2704,16 @@ public boolean hasAutomatic() {
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic() { if (replicationStatusCase_ == 1) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_; } return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); } /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -3335,19 +2724,15 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAu
    * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
-      getAutomaticOrBuilder() {
+  public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder() {
     if (replicationStatusCase_ == 1) {
-      return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
-          replicationStatus_;
+       return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_;
     }
     return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
   }
 
   public static final int USER_MANAGED_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -3355,9 +2740,7 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAu
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return Whether the userManaged field is set. */ @java.lang.Override @@ -3365,8 +2748,6 @@ public boolean hasUserManaged() { return replicationStatusCase_ == 2; } /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -3374,23 +2755,17 @@ public boolean hasUserManaged() {
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged() { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -3398,22 +2773,17 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus get
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder - getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder() { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3425,17 +2795,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (replicationStatusCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); + output.writeMessage(1, (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); } if (replicationStatusCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_); + output.writeMessage(2, (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); } unknownFields.writeTo(output); } @@ -3447,18 +2813,12 @@ public int getSerializedSize() { size = 0; if (replicationStatusCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - replicationStatus_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); } if (replicationStatusCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3468,21 +2828,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ReplicationStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus other = - (com.google.cloud.secretmanager.v1.ReplicationStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus) obj; if (!getReplicationStatusCase().equals(other.getReplicationStatusCase())) return false; switch (replicationStatusCase_) { case 1: - if (!getAutomatic().equals(other.getAutomatic())) return false; + if (!getAutomatic() + .equals(other.getAutomatic())) return false; break; case 2: - if (!getUserManaged().equals(other.getUserManaged())) return false; + if (!getUserManaged() + .equals(other.getUserManaged())) return false; break; case 0: default: @@ -3516,126 +2877,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus parseFrom( 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.secretmanager.v1.ReplicationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.ReplicationStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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; } /** - * - * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus) com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.class, - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder() @@ -3643,15 +2995,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3661,9 +3014,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override @@ -3682,8 +3035,7 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus buildPartial() { - com.google.cloud.secretmanager.v1.ReplicationStatus result = - new com.google.cloud.secretmanager.v1.ReplicationStatus(this); + com.google.cloud.secretmanager.v1.ReplicationStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus(this); if (replicationStatusCase_ == 1) { if (automaticBuilder_ == null) { result.replicationStatus_ = replicationStatus_; @@ -3707,39 +3059,38 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus) { - return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus) other); + return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus)other); } else { super.mergeFrom(other); return this; @@ -3747,23 +3098,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus other) { - if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance()) return this; switch (other.getReplicationStatusCase()) { - case AUTOMATIC: - { - mergeAutomatic(other.getAutomatic()); - break; - } - case USER_MANAGED: - { - mergeUserManaged(other.getUserManaged()); - break; - } - case REPLICATIONSTATUS_NOT_SET: - { - break; - } + case AUTOMATIC: { + mergeAutomatic(other.getAutomatic()); + break; + } + case USER_MANAGED: { + mergeUserManaged(other.getUserManaged()); + break; + } + case REPLICATIONSTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3784,8 +3131,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.ReplicationStatus) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3794,12 +3140,12 @@ public Builder mergeFrom( } return this; } - private int replicationStatusCase_ = 0; private java.lang.Object replicationStatus_; - - public ReplicationStatusCase getReplicationStatusCase() { - return ReplicationStatusCase.forNumber(replicationStatusCase_); + public ReplicationStatusCase + getReplicationStatusCase() { + return ReplicationStatusCase.forNumber( + replicationStatusCase_); } public Builder clearReplicationStatus() { @@ -3809,14 +3155,10 @@ public Builder clearReplicationStatus() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> - automaticBuilder_; + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> automaticBuilder_; /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3825,7 +3167,6 @@ public Builder clearReplicationStatus() {
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3833,8 +3174,6 @@ public boolean hasAutomatic() { return replicationStatusCase_ == 1; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3843,29 +3182,23 @@ public boolean hasAutomatic() {
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic() { if (automaticBuilder_ == null) { if (replicationStatusCase_ == 1) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); } else { if (replicationStatusCase_ == 1) { return automaticBuilder_.getMessage(); } - return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); } } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3875,8 +3208,7 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAu
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public Builder setAutomatic(
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
+    public Builder setAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
       if (automaticBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3890,8 +3222,6 @@ public Builder setAutomatic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3902,8 +3232,7 @@ public Builder setAutomatic(
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     public Builder setAutomatic(
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder
-            builderForValue) {
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder builderForValue) {
       if (automaticBuilder_ == null) {
         replicationStatus_ = builderForValue.build();
         onChanged();
@@ -3914,8 +3243,6 @@ public Builder setAutomatic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3925,19 +3252,12 @@ public Builder setAutomatic(
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public Builder mergeAutomatic(
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
+    public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
       if (automaticBuilder_ == null) {
-        if (replicationStatusCase_ == 1
-            && replicationStatus_
-                != com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-                    .getDefaultInstance()) {
-          replicationStatus_ =
-              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder(
-                      (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
-                          replicationStatus_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (replicationStatusCase_ == 1 &&
+            replicationStatus_ != com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance()) {
+          replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_)
+              .mergeFrom(value).buildPartial();
         } else {
           replicationStatus_ = value;
         }
@@ -3952,8 +3272,6 @@ public Builder mergeAutomatic(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3980,8 +3298,6 @@ public Builder clearAutomatic() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3991,13 +3307,10 @@ public Builder clearAutomatic() {
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder
-        getAutomaticBuilder() {
+    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder getAutomaticBuilder() {
       return getAutomaticFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -4008,22 +3321,17 @@ public Builder clearAutomatic() {
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     @java.lang.Override
-    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
-        getAutomaticOrBuilder() {
+    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder() {
       if ((replicationStatusCase_ == 1) && (automaticBuilder_ != null)) {
         return automaticBuilder_.getMessageOrBuilder();
       } else {
         if (replicationStatusCase_ == 1) {
-          return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
-              replicationStatus_;
+          return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_;
         }
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-            .getDefaultInstance();
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -4034,41 +3342,27 @@ public Builder clearAutomatic() {
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus,
-            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder,
-            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> 
         getAutomaticFieldBuilder() {
       if (automaticBuilder_ == null) {
         if (!(replicationStatusCase_ == 1)) {
-          replicationStatus_ =
-              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
-                  .getDefaultInstance();
+          replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
         }
-        automaticBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus,
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder,
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>(
-                (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
-                    replicationStatus_,
+        automaticBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>(
+                (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_,
                 getParentForChildren(),
                 isClean());
         replicationStatus_ = null;
       }
       replicationStatusCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return automaticBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus,
-            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder,
-            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>
-        userManagedBuilder_;
+        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> userManagedBuilder_;
     /**
-     *
-     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4076,9 +3370,7 @@ public Builder clearAutomatic() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return Whether the userManaged field is set. */ @java.lang.Override @@ -4086,8 +3378,6 @@ public boolean hasUserManaged() { return replicationStatusCase_ == 2; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4095,31 +3385,24 @@ public boolean hasUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged() { if (userManagedBuilder_ == null) { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } else { if (replicationStatusCase_ == 2) { return userManagedBuilder_.getMessage(); } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4127,11 +3410,9 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus get
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ - public Builder setUserManaged( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { + public Builder setUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { if (userManagedBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4145,8 +3426,6 @@ public Builder setUserManaged( return this; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4154,12 +3433,10 @@ public Builder setUserManaged(
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ public Builder setUserManaged( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder - builderForValue) { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder builderForValue) { if (userManagedBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); @@ -4170,8 +3447,6 @@ public Builder setUserManaged( return this; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4179,22 +3454,14 @@ public Builder setUserManaged(
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ - public Builder mergeUserManaged( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { + public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { if (userManagedBuilder_ == null) { - if (replicationStatusCase_ == 2 - && replicationStatus_ - != com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance()) { - replicationStatus_ = - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder( - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_) - .mergeFrom(value) - .buildPartial(); + if (replicationStatusCase_ == 2 && + replicationStatus_ != com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance()) { + replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_) + .mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } @@ -4209,8 +3476,6 @@ public Builder mergeUserManaged( return this; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4218,8 +3483,7 @@ public Builder mergeUserManaged(
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ public Builder clearUserManaged() { if (userManagedBuilder_ == null) { @@ -4238,8 +3502,6 @@ public Builder clearUserManaged() { return this; } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4247,16 +3509,12 @@ public Builder clearUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder - getUserManagedBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder getUserManagedBuilder() { return getUserManagedFieldBuilder().getBuilder(); } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4264,26 +3522,20 @@ public Builder clearUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder - getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder() { if ((replicationStatusCase_ == 2) && (userManagedBuilder_ != null)) { return userManagedBuilder_.getMessageOrBuilder(); } else { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } } /** - * - * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -4291,39 +3543,29 @@ public Builder clearUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> getUserManagedFieldBuilder() { if (userManagedBuilder_ == null) { if (!(replicationStatusCase_ == 2)) { - replicationStatus_ = - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus - .getDefaultInstance(); + replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); } - userManagedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>( - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - replicationStatus_, + userManagedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>( + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_, getParentForChildren(), isClean()); replicationStatus_ = null; } replicationStatusCase_ = 2; - onChanged(); - ; + onChanged();; return userManagedBuilder_; } - @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); } @@ -4333,12 +3575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus) private static final com.google.cloud.secretmanager.v1.ReplicationStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus(); } @@ -4347,16 +3589,16 @@ public static com.google.cloud.secretmanager.v1.ReplicationStatus getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplicationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplicationStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplicationStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4371,4 +3613,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ReplicationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java similarity index 75% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java index 4cc51dbd..184e390a 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface ReplicationStatusOrBuilder - extends +public interface ReplicationStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -34,13 +16,10 @@ public interface ReplicationStatusOrBuilder
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return Whether the automatic field is set. */ boolean hasAutomatic(); /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -49,13 +28,10 @@ public interface ReplicationStatusOrBuilder
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; - * * @return The automatic. */ com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic(); /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -65,12 +41,9 @@ public interface ReplicationStatusOrBuilder
    *
    * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
    */
-  com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
-      getAutomaticOrBuilder();
+  com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder();
 
   /**
-   *
-   *
    * 
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -78,15 +51,11 @@ public interface ReplicationStatusOrBuilder
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return Whether the userManaged field is set. */ boolean hasUserManaged(); /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -94,15 +63,11 @@ public interface ReplicationStatusOrBuilder
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; * @return The userManaged. */ com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged(); /** - * - * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -110,12 +75,9 @@ public interface ReplicationStatusOrBuilder
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; - * + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder - getUserManagedOrBuilder(); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder(); - public com.google.cloud.secretmanager.v1.ReplicationStatus.ReplicationStatusCase - getReplicationStatusCase(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.ReplicationStatusCase getReplicationStatusCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java new file mode 100644 index 00000000..23f6236e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -0,0 +1,307 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/resources.proto + +package com.google.cloud.secretmanager.v1; + +public final class ResourcesProto { + private ResourcesProto() {} + 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_secretmanager_v1_Secret_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Topic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/secretmanager/v1/resource" + + "s.proto\022\035google.cloud.secretmanager.v1\032\034" + + "google/api/annotations.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\"\336\004\n\006Se" + + "cret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\013replication\030\002" + + " \001(\0132*.google.cloud.secretmanager.v1.Rep" + + "licationB\006\340A\005\340A\002\0224\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022A\n\006labels" + + "\030\004 \003(\01321.google.cloud.secretmanager.v1.S" + + "ecret.LabelsEntry\0229\n\006topics\030\005 \003(\0132$.goog" + + "le.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n\013" + + "expire_time\030\006 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\001H\000\022-\n\003ttl\030\007 \001(\0132\031.google.proto" + + "buf.DurationB\003\340A\004H\000\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022>" + + "\n\010rotation\030\t \001(\0132\'.google.cloud.secretma" + + "nager.v1.RotationB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:M\352AJ\n#secr" + + "etmanager.googleapis.com/Secret\022#project" + + "s/{project}/secrets/{secret}B\014\n\nexpirati" + + "on\"\242\004\n\rSecretVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0225\n\014destroy_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022F\n\005state\030\004 " + + "\001(\01622.google.cloud.secretmanager.v1.Secr" + + "etVersion.StateB\003\340A\003\022L\n\022replication_stat" + + "us\030\005 \001(\01320.google.cloud.secretmanager.v1" + + ".ReplicationStatus\022\021\n\004etag\030\006 \001(\tB\003\340A\003\022.\n" + + "!client_specified_payload_checksum\030\007 \001(\010" + + "B\003\340A\003\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003:" + + "n\352Ak\n*secretmanager.googleapis.com/Secre" + + "tVersion\022=projects/{project}/secrets/{se" + + "cret}/versions/{secret_version}\"\220\004\n\013Repl" + + "ication\022I\n\tautomatic\030\001 \001(\01324.google.clou" + + "d.secretmanager.v1.Replication.Automatic" + + "H\000\022N\n\014user_managed\030\002 \001(\01326.google.cloud." + + "secretmanager.v1.Replication.UserManaged" + + "H\000\032o\n\tAutomatic\022b\n\033customer_managed_encr" + + "yption\030\001 \001(\01328.google.cloud.secretmanage" + + "r.v1.CustomerManagedEncryptionB\003\340A\001\032\345\001\n\013" + + "UserManaged\022U\n\010replicas\030\001 \003(\0132>.google.c" + + "loud.secretmanager.v1.Replication.UserMa" + + "naged.ReplicaB\003\340A\002\032\177\n\007Replica\022\020\n\010locatio" + + "n\030\001 \001(\t\022b\n\033customer_managed_encryption\030\002" + + " \001(\01328.google.cloud.secretmanager.v1.Cus" + + "tomerManagedEncryptionB\003\340A\001B\r\n\013replicati" + + "on\"6\n\031CustomerManagedEncryption\022\031\n\014kms_k" + + "ey_name\030\001 \001(\tB\003\340A\002\"\353\004\n\021ReplicationStatus" + + "\022U\n\tautomatic\030\001 \001(\0132@.google.cloud.secre" + + "tmanager.v1.ReplicationStatus.AutomaticS" + + "tatusH\000\022Z\n\014user_managed\030\002 \001(\0132B.google.c" + + "loud.secretmanager.v1.ReplicationStatus." + + "UserManagedStatusH\000\032{\n\017AutomaticStatus\022h" + + "\n\033customer_managed_encryption\030\001 \001(\0132>.go" + + "ogle.cloud.secretmanager.v1.CustomerMana" + + "gedEncryptionStatusB\003\340A\003\032\217\002\n\021UserManaged" + + "Status\022g\n\010replicas\030\001 \003(\0132P.google.cloud." + + "secretmanager.v1.ReplicationStatus.UserM" + + "anagedStatus.ReplicaStatusB\003\340A\003\032\220\001\n\rRepl" + + "icaStatus\022\025\n\010location\030\001 \001(\tB\003\340A\003\022h\n\033cust" + + "omer_managed_encryption\030\002 \001(\0132>.google.c" + + "loud.secretmanager.v1.CustomerManagedEnc" + + "ryptionStatusB\003\340A\003B\024\n\022replication_status" + + "\"D\n\037CustomerManagedEncryptionStatus\022!\n\024k" + + "ms_key_version_name\030\001 \001(\tB\003\340A\002\"_\n\005Topic\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002:C\352A@\n\033pubsub.googleap" + + "is.com/Topic\022!projects/{project}/topics/" + + "{topic}\"\200\001\n\010Rotation\022;\n\022next_rotation_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001\0227\n\017rotation_period\030\002 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\004\"L\n\rSecretPayload\022\014\n\004d" + + "ata\030\001 \001(\014\022\035\n\013data_crc32c\030\002 \001(\003B\003\340A\001H\000\210\001\001" + + "B\016\n\014_data_crc32cB\355\001\n!com.google.cloud.se" + + "cretmanager.v1B\016ResourcesProtoP\001ZJgoogle" + + ".golang.org/genproto/googleapis/cloud/se" + + "cretmanager/v1;secretmanager\370\001\001\242\002\003GSM\252\002\035" + + "Google.Cloud.SecretManager.V1\312\002\035Google\\C" + + "loud\\SecretManager\\V1\352\002 Google::Cloud::S" + + "ecretManager::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_Secret_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Secret_descriptor, + new java.lang.String[] { "Name", "Replication", "CreateTime", "Labels", "Topics", "ExpireTime", "Ttl", "Etag", "Rotation", "Expiration", }); + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = + internal_static_google_cloud_secretmanager_v1_Secret_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor, + new java.lang.String[] { "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum", }); + internal_static_google_cloud_secretmanager_v1_Replication_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_descriptor, + new java.lang.String[] { "Automatic", "UserManaged", "Replication", }); + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor, + new java.lang.String[] { "CustomerManagedEncryption", }); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor, + new java.lang.String[] { "Replicas", }); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor, + new java.lang.String[] { "Location", "CustomerManagedEncryption", }); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor, + new java.lang.String[] { "KmsKeyName", }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor, + new java.lang.String[] { "Automatic", "UserManaged", "ReplicationStatus", }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor, + new java.lang.String[] { "CustomerManagedEncryption", }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor, + new java.lang.String[] { "Replicas", }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor, + new java.lang.String[] { "Location", "CustomerManagedEncryption", }); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor, + new java.lang.String[] { "KmsKeyVersionName", }); + internal_static_google_cloud_secretmanager_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Topic_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor, + new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor, + new java.lang.String[] { "Data", "DataCrc32C", "DataCrc32C", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java similarity index 70% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java index c0b64574..000a1b0b 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * The rotation time and period for a [Secret][google.cloud.secretmanager.v1.Secret]. At next_rotation_time, Secret
  * Manager will send a Pub/Sub notification to the topics configured on the
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Rotation}
  */
-public final class Rotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Rotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Rotation)
     RotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Rotation.newBuilder() to construct.
   private Rotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Rotation() {}
+  private Rotation() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Rotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Rotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,75 +54,67 @@ private Rotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (nextRotationTime_ != null) {
-                subBuilder = nextRotationTime_.toBuilder();
-              }
-              nextRotationTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(nextRotationTime_);
-                nextRotationTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (nextRotationTime_ != null) {
+              subBuilder = nextRotationTime_.toBuilder();
+            }
+            nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(nextRotationTime_);
+              nextRotationTime_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (rotationPeriod_ != null) {
-                subBuilder = rotationPeriod_.toBuilder();
-              }
-              rotationPeriod_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(rotationPeriod_);
-                rotationPeriod_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (rotationPeriod_ != null) {
+              subBuilder = rotationPeriod_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(rotationPeriod_);
+              rotationPeriod_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Rotation.class,
-            com.google.cloud.secretmanager.v1.Rotation.Builder.class);
+            com.google.cloud.secretmanager.v1.Rotation.class, com.google.cloud.secretmanager.v1.Rotation.Builder.class);
   }
 
   public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp nextRotationTime_;
   /**
-   *
-   *
    * 
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -146,10 +122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -157,8 +130,6 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** - * - * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -166,21 +137,14 @@ public boolean hasNextRotationTime() {
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } /** - * - * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -188,9 +152,7 @@ public com.google.protobuf.Timestamp getNextRotationTime() {
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -200,8 +162,6 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -210,10 +170,7 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -221,8 +178,6 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -231,21 +186,14 @@ public boolean hasRotationPeriod() {
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -254,9 +202,7 @@ public com.google.protobuf.Duration getRotationPeriod() {
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -264,7 +210,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +221,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -293,10 +239,12 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -306,21 +254,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Rotation)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Rotation other = - (com.google.cloud.secretmanager.v1.Rotation) obj; + com.google.cloud.secretmanager.v1.Rotation other = (com.google.cloud.secretmanager.v1.Rotation) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime() + .equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod() + .equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -346,104 +295,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Rotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Rotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Rotation parseFrom( 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.secretmanager.v1.Rotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Rotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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; } /** - * - * *
    * The rotation time and period for a [Secret][google.cloud.secretmanager.v1.Secret]. At next_rotation_time, Secret
    * Manager will send a Pub/Sub notification to the topics configured on the
@@ -452,23 +394,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Rotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Rotation)
       com.google.cloud.secretmanager.v1.RotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Rotation.class,
-              com.google.cloud.secretmanager.v1.Rotation.Builder.class);
+              com.google.cloud.secretmanager.v1.Rotation.class, com.google.cloud.secretmanager.v1.Rotation.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Rotation.newBuilder()
@@ -476,15 +416,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -504,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
     }
 
     @java.lang.Override
@@ -525,8 +466,7 @@ public com.google.cloud.secretmanager.v1.Rotation build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Rotation buildPartial() {
-      com.google.cloud.secretmanager.v1.Rotation result =
-          new com.google.cloud.secretmanager.v1.Rotation(this);
+      com.google.cloud.secretmanager.v1.Rotation result = new com.google.cloud.secretmanager.v1.Rotation(this);
       if (nextRotationTimeBuilder_ == null) {
         result.nextRotationTime_ = nextRotationTime_;
       } else {
@@ -545,39 +485,38 @@ public com.google.cloud.secretmanager.v1.Rotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Rotation) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Rotation) other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Rotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -623,13 +562,8 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp nextRotationTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        nextRotationTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -637,18 +571,13 @@ public Builder mergeFrom(
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -656,24 +585,17 @@ public boolean hasNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -681,9 +603,7 @@ public com.google.protobuf.Timestamp getNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -699,8 +619,6 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -708,11 +626,10 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -723,8 +640,6 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -732,17 +647,13 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builder
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); } else { nextRotationTime_ = value; } @@ -754,8 +665,6 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -763,9 +672,7 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -779,8 +686,6 @@ public Builder clearNextRotationTime() { return this; } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -788,18 +693,14 @@ public Builder clearNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -807,22 +708,17 @@ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } } /** - * - * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -830,22 +726,17 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), getParentForChildren(), isClean()); + nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), + getParentForChildren(), + isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -853,13 +744,8 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - rotationPeriodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -868,18 +754,13 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -888,24 +769,17 @@ public boolean hasRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -914,9 +788,7 @@ public com.google.protobuf.Duration getRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -932,8 +804,6 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -942,11 +812,10 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod( + com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -957,8 +826,6 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -967,17 +834,13 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); } else { rotationPeriod_ = value; } @@ -989,8 +852,6 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -999,9 +860,7 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -1015,8 +874,6 @@ public Builder clearRotationPeriod() { return this; } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -1025,18 +882,14 @@ public Builder clearRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -1045,22 +898,17 @@ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : rotationPeriod_; + return rotationPeriod_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; } } /** - * - * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -1069,29 +917,24 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
      * automatically sends rotation notifications.
      * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), getParentForChildren(), isClean()); + rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), + getParentForChildren(), + isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Rotation) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Rotation) private static final com.google.cloud.secretmanager.v1.Rotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Rotation(); } @@ -1115,16 +958,16 @@ public static com.google.cloud.secretmanager.v1.Rotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Rotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +982,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Rotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java similarity index 72% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java index 0b95542b..a43b5b6f 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface RotationOrBuilder - extends +public interface RotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Rotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -33,16 +15,11 @@ public interface RotationOrBuilder
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** - * - * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -50,16 +27,11 @@ public interface RotationOrBuilder
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** - * - * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -67,15 +39,11 @@ public interface RotationOrBuilder
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -84,16 +52,11 @@ public interface RotationOrBuilder
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -102,16 +65,11 @@ public interface RotationOrBuilder
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** - * - * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -120,9 +78,7 @@ public interface RotationOrBuilder
    * automatically sends rotation notifications.
    * 
* - * - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java similarity index 68% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java index c2084b9a..733a333e 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose value and versions can
  * be accessed.
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Secret}
  */
-public final class Secret extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Secret extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Secret)
     SecretOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Secret.newBuilder() to construct.
   private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Secret() {
     name_ = "";
     topics_ = java.util.Collections.emptyList();
@@ -48,15 +30,16 @@ private Secret() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Secret();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Secret(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,134 +59,121 @@ private Secret(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.secretmanager.v1.Replication.Builder subBuilder = null;
+            if (replication_ != null) {
+              subBuilder = replication_.toBuilder();
+            }
+            replication_ = input.readMessage(com.google.cloud.secretmanager.v1.Replication.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(replication_);
+              replication_ = subBuilder.buildPartial();
+            }
 
-              name_ = s;
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.secretmanager.v1.Replication.Builder subBuilder = null;
-              if (replication_ != null) {
-                subBuilder = replication_.toBuilder();
-              }
-              replication_ =
-                  input.readMessage(
-                      com.google.cloud.secretmanager.v1.Replication.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(replication_);
-                replication_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              topics_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                topics_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              topics_.add(
-                  input.readMessage(
-                      com.google.cloud.secretmanager.v1.Topic.parser(), extensionRegistry));
-              break;
+            topics_.add(
+                input.readMessage(com.google.cloud.secretmanager.v1.Topic.parser(), extensionRegistry));
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expirationCase_ == 6) {
+              subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder();
+            }
+            expiration_ =
+                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_);
+              expiration_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expirationCase_ == 6) {
-                subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder();
-              }
-              expiration_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_);
-                expiration_ = subBuilder.buildPartial();
-              }
-              expirationCase_ = 6;
-              break;
+            expirationCase_ = 6;
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (expirationCase_ == 7) {
+              subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder();
             }
-          case 58:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (expirationCase_ == 7) {
-                subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder();
-              }
-              expiration_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_);
-                expiration_ = subBuilder.buildPartial();
-              }
-              expirationCase_ = 7;
-              break;
+            expiration_ =
+                input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_);
+              expiration_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            expirationCase_ = 7;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              etag_ = s;
-              break;
+            etag_ = s;
+            break;
+          }
+          case 74: {
+            com.google.cloud.secretmanager.v1.Rotation.Builder subBuilder = null;
+            if (rotation_ != null) {
+              subBuilder = rotation_.toBuilder();
             }
-          case 74:
-            {
-              com.google.cloud.secretmanager.v1.Rotation.Builder subBuilder = null;
-              if (rotation_ != null) {
-                subBuilder = rotation_.toBuilder();
-              }
-              rotation_ =
-                  input.readMessage(
-                      com.google.cloud.secretmanager.v1.Rotation.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(rotation_);
-                rotation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            rotation_ = input.readMessage(com.google.cloud.secretmanager.v1.Rotation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(rotation_);
+              rotation_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         topics_ = java.util.Collections.unmodifiableList(topics_);
@@ -212,45 +182,40 @@ private Secret(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_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 4:
         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.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Secret.class,
-            com.google.cloud.secretmanager.v1.Secret.Builder.class);
+            com.google.cloud.secretmanager.v1.Secret.class, com.google.cloud.secretmanager.v1.Secret.Builder.class);
   }
 
   private int expirationCase_ = 0;
   private java.lang.Object expiration_;
-
   public enum ExpirationCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     EXPIRE_TIME(6),
     TTL(7),
     EXPIRATION_NOT_SET(0);
     private final int value;
-
     private ExpirationCase(int value) {
       this.value = value;
     }
@@ -266,37 +231,31 @@ public static ExpirationCase valueOf(int value) {
 
     public static ExpirationCase forNumber(int value) {
       switch (value) {
-        case 6:
-          return EXPIRE_TIME;
-        case 7:
-          return TTL;
-        case 0:
-          return EXPIRATION_NOT_SET;
-        default:
-          return null;
+        case 6: return EXPIRE_TIME;
+        case 7: return TTL;
+        case 0: return EXPIRATION_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ExpirationCase getExpirationCase() {
-    return ExpirationCase.forNumber(expirationCase_);
+  public ExpirationCase
+  getExpirationCase() {
+    return ExpirationCase.forNumber(
+        expirationCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -305,29 +264,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -338,17 +297,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REPLICATION_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.Replication replication_; /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return Whether the replication field is set. */ @java.lang.Override @@ -356,36 +310,25 @@ public boolean hasReplication() { return replication_ != null; } /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The replication. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication getReplication() { - return replication_ == null - ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() - : replication_; + return replication_ == null ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; } /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder() { @@ -395,15 +338,11 @@ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBu public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -411,15 +350,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -427,14 +362,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -442,23 +374,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -467,8 +400,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -482,22 +413,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -512,12 +443,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -532,16 +462,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -556,11 +486,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -570,99 +501,76 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int TOPICS_FIELD_NUMBER = 5;
   private java.util.List topics_;
   /**
-   *
-   *
    * 
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getTopicsList() { return topics_; } /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getTopicsOrBuilderList() { return topics_; } /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getTopicsCount() { return topics_.size(); } /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { return topics_.get(index); } /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { return topics_.get(index); } public static final int EXPIRE_TIME_FIELD_NUMBER = 6; /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -670,54 +578,44 @@ public boolean hasExpireTime() { return expirationCase_ == 6; } /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 6) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expirationCase_ == 6) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TTL_FIELD_NUMBER = 7; /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -725,26 +623,21 @@ public boolean hasTtl() { return expirationCase_ == 7; } /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 7) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
@@ -754,7 +647,7 @@ public com.google.protobuf.Duration getTtl() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (expirationCase_ == 7) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -762,14 +655,11 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { public static final int ETAG_FIELD_NUMBER = 8; private volatile java.lang.Object etag_; /** - * - * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -778,29 +668,29 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -811,17 +701,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int ROTATION_FIELD_NUMBER = 9; private com.google.cloud.secretmanager.v1.Rotation rotation_; /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rotation field is set. */ @java.lang.Override @@ -829,36 +714,25 @@ public boolean hasRotation() { return rotation_ != null; } /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The rotation. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Rotation getRotation() { - return rotation_ == null - ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() - : rotation_; + return rotation_ == null ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; } /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder() { @@ -866,7 +740,6 @@ public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -878,7 +751,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_); } @@ -888,8 +762,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(3, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); for (int i = 0; i < topics_.size(); i++) { output.writeMessage(5, topics_.get(i)); } @@ -918,39 +796,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (replication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReplication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReplication()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } for (int i = 0; i < topics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, topics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, topics_.get(i)); } if (expirationCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.protobuf.Timestamp) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.protobuf.Duration) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.protobuf.Duration) expiration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } if (rotation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRotation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getRotation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -960,36 +840,45 @@ 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.secretmanager.v1.Secret)) { return super.equals(obj); } com.google.cloud.secretmanager.v1.Secret other = (com.google.cloud.secretmanager.v1.Secret) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasReplication() != other.hasReplication()) return false; if (hasReplication()) { - if (!getReplication().equals(other.getReplication())) return false; + if (!getReplication() + .equals(other.getReplication())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getTopicsList().equals(other.getTopicsList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getTopicsList() + .equals(other.getTopicsList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasRotation() != other.hasRotation()) return false; if (hasRotation()) { - if (!getRotation().equals(other.getRotation())) return false; + if (!getRotation() + .equals(other.getRotation())) return false; } if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 6: - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; break; case 7: - if (!getTtl().equals(other.getTtl())) return false; + if (!getTtl() + .equals(other.getTtl())) return false; break; case 0: default: @@ -1046,104 +935,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Secret parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Secret parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Secret parseFrom( 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.secretmanager.v1.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Secret parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret 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.secretmanager.v1.Secret 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.secretmanager.v1.Secret prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose value and versions can
    * be accessed.
@@ -1153,43 +1035,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Secret}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Secret)
       com.google.cloud.secretmanager.v1.SecretOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           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 4:
           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.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Secret.class,
-              com.google.cloud.secretmanager.v1.Secret.Builder.class);
+              com.google.cloud.secretmanager.v1.Secret.class, com.google.cloud.secretmanager.v1.Secret.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Secret.newBuilder()
@@ -1197,17 +1079,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTopicsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1246,9 +1128,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
     }
 
     @java.lang.Override
@@ -1267,8 +1149,7 @@ public com.google.cloud.secretmanager.v1.Secret build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Secret buildPartial() {
-      com.google.cloud.secretmanager.v1.Secret result =
-          new com.google.cloud.secretmanager.v1.Secret(this);
+      com.google.cloud.secretmanager.v1.Secret result = new com.google.cloud.secretmanager.v1.Secret(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (replicationBuilder_ == null) {
@@ -1321,39 +1202,38 @@ public com.google.cloud.secretmanager.v1.Secret buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Secret) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Secret) other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Secret)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1372,7 +1252,8 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (topicsBuilder_ == null) {
         if (!other.topics_.isEmpty()) {
           if (topics_.isEmpty()) {
@@ -1391,10 +1272,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
             topicsBuilder_ = null;
             topics_ = other.topics_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            topicsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTopicsFieldBuilder()
-                    : null;
+            topicsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTopicsFieldBuilder() : null;
           } else {
             topicsBuilder_.addAllMessages(other.topics_);
           }
@@ -1408,20 +1288,17 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
         mergeRotation(other.getRotation());
       }
       switch (other.getExpirationCase()) {
-        case EXPIRE_TIME:
-          {
-            mergeExpireTime(other.getExpireTime());
-            break;
-          }
-        case TTL:
-          {
-            mergeTtl(other.getTtl());
-            break;
-          }
-        case EXPIRATION_NOT_SET:
-          {
-            break;
-          }
+        case EXPIRE_TIME: {
+          mergeExpireTime(other.getExpireTime());
+          break;
+        }
+        case TTL: {
+          mergeTtl(other.getTtl());
+          break;
+        }
+        case EXPIRATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1451,12 +1328,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int expirationCase_ = 0;
     private java.lang.Object expiration_;
-
-    public ExpirationCase getExpirationCase() {
-      return ExpirationCase.forNumber(expirationCase_);
+    public ExpirationCase
+        getExpirationCase() {
+      return ExpirationCase.forNumber(
+          expirationCase_);
     }
 
     public Builder clearExpiration() {
@@ -1470,20 +1347,18 @@ public Builder clearExpiration() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1492,21 +1367,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1514,61 +1388,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1576,61 +1443,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.secretmanager.v1.Replication replication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, - com.google.cloud.secretmanager.v1.Replication.Builder, - com.google.cloud.secretmanager.v1.ReplicationOrBuilder> - replicationBuilder_; + com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder> replicationBuilder_; /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return Whether the replication field is set. */ public boolean hasReplication() { return replicationBuilder_ != null || replication_ != null; } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The replication. */ public com.google.cloud.secretmanager.v1.Replication getReplication() { if (replicationBuilder_ == null) { - return replication_ == null - ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() - : replication_; + return replication_ == null ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; } else { return replicationBuilder_.getMessage(); } } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public Builder setReplication(com.google.cloud.secretmanager.v1.Replication value) { if (replicationBuilder_ == null) { @@ -1646,16 +1494,12 @@ public Builder setReplication(com.google.cloud.secretmanager.v1.Replication valu return this; } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public Builder setReplication( com.google.cloud.secretmanager.v1.Replication.Builder builderForValue) { @@ -1669,24 +1513,18 @@ public Builder setReplication( return this; } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReplication(com.google.cloud.secretmanager.v1.Replication value) { if (replicationBuilder_ == null) { if (replication_ != null) { replication_ = - com.google.cloud.secretmanager.v1.Replication.newBuilder(replication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.Replication.newBuilder(replication_).mergeFrom(value).buildPartial(); } else { replication_ = value; } @@ -1698,16 +1536,12 @@ public Builder mergeReplication(com.google.cloud.secretmanager.v1.Replication va return this; } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public Builder clearReplication() { if (replicationBuilder_ == null) { @@ -1721,67 +1555,51 @@ public Builder clearReplication() { return this; } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.Replication.Builder getReplicationBuilder() { - + onChanged(); return getReplicationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder() { if (replicationBuilder_ != null) { return replicationBuilder_.getMessageOrBuilder(); } else { - return replication_ == null - ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() - : replication_; + return replication_ == null ? + com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; } } /** - * - * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, - com.google.cloud.secretmanager.v1.Replication.Builder, - com.google.cloud.secretmanager.v1.ReplicationOrBuilder> + com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder> getReplicationFieldBuilder() { if (replicationBuilder_ == null) { - replicationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, - com.google.cloud.secretmanager.v1.Replication.Builder, - com.google.cloud.secretmanager.v1.ReplicationOrBuilder>( - getReplication(), getParentForChildren(), isClean()); + replicationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder>( + getReplication(), + getParentForChildren(), + isClean()); replication_ = null; } return replicationBuilder_; @@ -1789,58 +1607,39 @@ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBu private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1856,17 +1655,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1877,21 +1673,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1903,15 +1695,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1925,84 +1713,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2014,8 +1787,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2029,22 +1800,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2059,12 +1830,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2079,17 +1849,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2104,11 +1873,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2116,12 +1886,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2135,21 +1904,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2163,19 +1934,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -2189,38 +1957,33 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.util.List topics_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTopicsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         topics_ = new java.util.ArrayList(topics_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.Topic,
-            com.google.cloud.secretmanager.v1.Topic.Builder,
-            com.google.cloud.secretmanager.v1.TopicOrBuilder>
-        topicsBuilder_;
+        com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder> topicsBuilder_;
 
     /**
-     *
-     *
      * 
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { @@ -2230,16 +1993,12 @@ public java.util.List getTopicsList() { } } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getTopicsCount() { if (topicsBuilder_ == null) { @@ -2249,16 +2008,12 @@ public int getTopicsCount() { } } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { if (topicsBuilder_ == null) { @@ -2268,18 +2023,15 @@ public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { } } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTopics(int index, com.google.cloud.secretmanager.v1.Topic value) { + public Builder setTopics( + int index, com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2293,16 +2045,12 @@ public Builder setTopics(int index, com.google.cloud.secretmanager.v1.Topic valu return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTopics( int index, com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { @@ -2316,16 +2064,12 @@ public Builder setTopics( return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addTopics(com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { @@ -2341,18 +2085,15 @@ public Builder addTopics(com.google.cloud.secretmanager.v1.Topic value) { return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addTopics(int index, com.google.cloud.secretmanager.v1.Topic value) { + public Builder addTopics( + int index, com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2366,18 +2107,15 @@ public Builder addTopics(int index, com.google.cloud.secretmanager.v1.Topic valu return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addTopics(com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { + public Builder addTopics( + com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); @@ -2388,16 +2126,12 @@ public Builder addTopics(com.google.cloud.secretmanager.v1.Topic.Builder builder return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addTopics( int index, com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { @@ -2411,22 +2145,19 @@ public Builder addTopics( return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllTopics( java.lang.Iterable values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); @@ -2434,16 +2165,12 @@ public Builder addAllTopics( return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTopics() { if (topicsBuilder_ == null) { @@ -2456,16 +2183,12 @@ public Builder clearTopics() { return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { @@ -2478,53 +2201,42 @@ public Builder removeTopics(int index) { return this; } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.Topic.Builder getTopicsBuilder(int index) { + public com.google.cloud.secretmanager.v1.Topic.Builder getTopicsBuilder( + int index) { return getTopicsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index) { + public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { if (topicsBuilder_ == null) { - return topics_.get(index); - } else { + return topics_.get(index); } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -2532,86 +2244,66 @@ public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int i } } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder() - .addBuilder(com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); + return getTopicsFieldBuilder().addBuilder( + com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder(int index) { - return getTopicsFieldBuilder() - .addBuilder(index, com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder( + int index) { + return getTopicsFieldBuilder().addBuilder( + index, com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); } /** - * - * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List getTopicsBuilderList() { + public java.util.List + getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Topic, - com.google.cloud.secretmanager.v1.Topic.Builder, - com.google.cloud.secretmanager.v1.TopicOrBuilder> + com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { - topicsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Topic, - com.google.cloud.secretmanager.v1.Topic.Builder, - com.google.cloud.secretmanager.v1.TopicOrBuilder>( - topics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder>( + topics_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); topics_ = null; } return topicsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2619,16 +2311,12 @@ public boolean hasExpireTime() { return expirationCase_ == 6; } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The expireTime. */ @java.lang.Override @@ -2646,15 +2334,12 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -2670,17 +2355,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -2691,24 +2374,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (expirationCase_ == 6 - && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - expiration_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) - .mergeFrom(value) - .buildPartial(); + if (expirationCase_ == 6 && + expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value).buildPartial(); } else { expiration_ = value; } @@ -2723,15 +2401,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -2750,29 +2425,23 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -2786,53 +2455,40 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } } /** - * - * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { if (!(expirationCase_ == 6)) { expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, + getParentForChildren(), + isClean()); expiration_ = null; } expirationCase_ = 6; - onChanged(); - ; + onChanged();; return expireTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - ttlBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -2840,14 +2496,11 @@ public boolean hasTtl() { return expirationCase_ == 7; } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ @java.lang.Override @@ -2865,8 +2518,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2887,15 +2538,14 @@ public Builder setTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -2906,8 +2556,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { return this; } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2916,12 +2564,10 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (expirationCase_ == 7 - && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { - expiration_ = - com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) - .mergeFrom(value) - .buildPartial(); + if (expirationCase_ == 7 && + expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value).buildPartial(); } else { expiration_ = value; } @@ -2936,8 +2582,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2961,8 +2605,6 @@ public Builder clearTtl() { return this; } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2973,8 +2615,6 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { return getTtlFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2993,8 +2633,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } } /** - * - * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -3002,44 +2640,38 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTtlFieldBuilder() { if (ttlBuilder_ == null) { if (!(expirationCase_ == 7)) { expiration_ = com.google.protobuf.Duration.getDefaultInstance(); } - ttlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, + getParentForChildren(), + isClean()); expiration_ = null; } expirationCase_ = 7; - onChanged(); - ; + onChanged();; return ttlBuilder_; } private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3048,21 +2680,20 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3070,61 +2701,54 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -3132,61 +2756,42 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.cloud.secretmanager.v1.Rotation rotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, - com.google.cloud.secretmanager.v1.Rotation.Builder, - com.google.cloud.secretmanager.v1.RotationOrBuilder> - rotationBuilder_; + com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder> rotationBuilder_; /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rotation field is set. */ public boolean hasRotation() { return rotationBuilder_ != null || rotation_ != null; } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The rotation. */ public com.google.cloud.secretmanager.v1.Rotation getRotation() { if (rotationBuilder_ == null) { - return rotation_ == null - ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() - : rotation_; + return rotation_ == null ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; } else { return rotationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation value) { if (rotationBuilder_ == null) { @@ -3202,18 +2807,15 @@ public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation value) { return this; } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation.Builder builderForValue) { + public Builder setRotation( + com.google.cloud.secretmanager.v1.Rotation.Builder builderForValue) { if (rotationBuilder_ == null) { rotation_ = builderForValue.build(); onChanged(); @@ -3224,24 +2826,18 @@ public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation.Builder bu return this; } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRotation(com.google.cloud.secretmanager.v1.Rotation value) { if (rotationBuilder_ == null) { if (rotation_ != null) { rotation_ = - com.google.cloud.secretmanager.v1.Rotation.newBuilder(rotation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.Rotation.newBuilder(rotation_).mergeFrom(value).buildPartial(); } else { rotation_ = value; } @@ -3253,16 +2849,12 @@ public Builder mergeRotation(com.google.cloud.secretmanager.v1.Rotation value) { return this; } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRotation() { if (rotationBuilder_ == null) { @@ -3276,74 +2868,58 @@ public Builder clearRotation() { return this; } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.secretmanager.v1.Rotation.Builder getRotationBuilder() { - + onChanged(); return getRotationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder() { if (rotationBuilder_ != null) { return rotationBuilder_.getMessageOrBuilder(); } else { - return rotation_ == null - ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() - : rotation_; + return rotation_ == null ? + com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; } } /** - * - * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, - com.google.cloud.secretmanager.v1.Rotation.Builder, - com.google.cloud.secretmanager.v1.RotationOrBuilder> + com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder> getRotationFieldBuilder() { if (rotationBuilder_ == null) { - rotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, - com.google.cloud.secretmanager.v1.Rotation.Builder, - com.google.cloud.secretmanager.v1.RotationOrBuilder>( - getRotation(), getParentForChildren(), isClean()); + rotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder>( + getRotation(), + getParentForChildren(), + isClean()); rotation_ = null; } return rotationBuilder_; } - @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); } @@ -3353,12 +2929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Secret) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Secret) private static final com.google.cloud.secretmanager.v1.Secret DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Secret(); } @@ -3367,16 +2943,16 @@ public static com.google.cloud.secretmanager.v1.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Secret parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Secret(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Secret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Secret(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3391,4 +2967,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java similarity index 100% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java similarity index 75% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java index a5007b8b..202820b0 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java @@ -1,138 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface SecretOrBuilder - extends +public interface SecretOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Secret) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return Whether the replication field is set. */ boolean hasReplication(); /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; * @return The replication. */ com.google.cloud.secretmanager.v1.Replication getReplication(); /** - * - * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder(); /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -148,8 +100,6 @@ public interface SecretOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -163,13 +113,15 @@ public interface SecretOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -183,10 +135,9 @@ public interface SecretOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -200,10 +151,11 @@ public interface SecretOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -217,143 +169,108 @@ public interface SecretOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getTopicsList(); + java.util.List + getTopicsList(); /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.secretmanager.v1.Topic getTopics(int index); /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getTopicsCount(); /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getTopicsOrBuilderList(); /** - * - * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index); + com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( + int index); /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
@@ -363,71 +280,52 @@ public interface SecretOrBuilder com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); /** - * - * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the rotation field is set. */ boolean hasRotation(); /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The rotation. */ com.google.cloud.secretmanager.v1.Rotation getRotation(); /** - * - * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java new file mode 100644 index 00000000..e4526720 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java @@ -0,0 +1,680 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/resources.proto + +package com.google.cloud.secretmanager.v1; + +/** + *
+ * A secret payload resource in the Secret Manager API. This contains the
+ * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload} + */ +public final class SecretPayload extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.SecretPayload) + SecretPayloadOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecretPayload.newBuilder() to construct. + private SecretPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretPayload() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretPayload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretPayload( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + data_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000001; + dataCrc32C_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.SecretPayload.class, com.google.cloud.secretmanager.v1.SecretPayload.Builder.class); + } + + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + *
+   * The secret data. Must be no larger than 64KiB.
+   * 
+ * + * bytes data = 1; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int DATA_CRC32C_FIELD_NUMBER = 2; + private long dataCrc32C_; + /** + *
+   * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+   * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+   * the crc32c checksum and store it to include in future
+   * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+   * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+   * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+   * The CRC32C value is encoded as a Int64 for compatibility, and can be
+   * safely downconverted to uint32 in languages that support this type.
+   * https://cloud.google.com/apis/design/design_patterns#integer_types
+   * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the dataCrc32c field is set. + */ + @java.lang.Override + public boolean hasDataCrc32C() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+   * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+   * the crc32c checksum and store it to include in future
+   * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+   * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+   * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+   * The CRC32C value is encoded as a Int64 for compatibility, and can be
+   * safely downconverted to uint32 in languages that support this type.
+   * https://cloud.google.com/apis/design/design_patterns#integer_types
+   * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The dataCrc32c. + */ + @java.lang.Override + public long getDataCrc32C() { + return dataCrc32C_; + } + + 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 (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, dataCrc32C_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, dataCrc32C_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.SecretPayload)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.SecretPayload other = (com.google.cloud.secretmanager.v1.SecretPayload) obj; + + if (!getData() + .equals(other.getData())) return false; + if (hasDataCrc32C() != other.hasDataCrc32C()) return false; + if (hasDataCrc32C()) { + if (getDataCrc32C() + != other.getDataCrc32C()) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (hasDataCrc32C()) { + hash = (37 * hash) + DATA_CRC32C_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDataCrc32C()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( + 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.secretmanager.v1.SecretPayload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.secretmanager.v1.SecretPayload parseDelimitedFrom( + java.io.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.secretmanager.v1.SecretPayload parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A secret payload resource in the Secret Manager API. This contains the
+   * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.SecretPayload) + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.SecretPayload.class, com.google.cloud.secretmanager.v1.SecretPayload.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.SecretPayload.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + dataCrc32C_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.SecretPayload build() { + com.google.cloud.secretmanager.v1.SecretPayload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.SecretPayload buildPartial() { + com.google.cloud.secretmanager.v1.SecretPayload result = new com.google.cloud.secretmanager.v1.SecretPayload(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.data_ = data_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataCrc32C_ = dataCrc32C_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.SecretPayload) { + return mergeFrom((com.google.cloud.secretmanager.v1.SecretPayload)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretPayload other) { + if (other == com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.hasDataCrc32C()) { + setDataCrc32C(other.getDataCrc32C()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.secretmanager.v1.SecretPayload parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.secretmanager.v1.SecretPayload) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The secret data. Must be no larger than 64KiB.
+     * 
+ * + * bytes data = 1; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + *
+     * The secret data. Must be no larger than 64KiB.
+     * 
+ * + * bytes data = 1; + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + *
+     * The secret data. Must be no larger than 64KiB.
+     * 
+ * + * bytes data = 1; + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private long dataCrc32C_ ; + /** + *
+     * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+     * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+     * the crc32c checksum and store it to include in future
+     * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+     * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+     * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+     * The CRC32C value is encoded as a Int64 for compatibility, and can be
+     * safely downconverted to uint32 in languages that support this type.
+     * https://cloud.google.com/apis/design/design_patterns#integer_types
+     * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the dataCrc32c field is set. + */ + @java.lang.Override + public boolean hasDataCrc32C() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+     * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+     * the crc32c checksum and store it to include in future
+     * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+     * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+     * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+     * The CRC32C value is encoded as a Int64 for compatibility, and can be
+     * safely downconverted to uint32 in languages that support this type.
+     * https://cloud.google.com/apis/design/design_patterns#integer_types
+     * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The dataCrc32c. + */ + @java.lang.Override + public long getDataCrc32C() { + return dataCrc32C_; + } + /** + *
+     * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+     * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+     * the crc32c checksum and store it to include in future
+     * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+     * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+     * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+     * The CRC32C value is encoded as a Int64 for compatibility, and can be
+     * safely downconverted to uint32 in languages that support this type.
+     * https://cloud.google.com/apis/design/design_patterns#integer_types
+     * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The dataCrc32c to set. + * @return This builder for chaining. + */ + public Builder setDataCrc32C(long value) { + bitField0_ |= 0x00000001; + dataCrc32C_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+     * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+     * the crc32c checksum and store it to include in future
+     * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+     * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+     * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+     * The CRC32C value is encoded as a Int64 for compatibility, and can be
+     * safely downconverted to uint32 in languages that support this type.
+     * https://cloud.google.com/apis/design/design_patterns#integer_types
+     * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDataCrc32C() { + bitField0_ = (bitField0_ & ~0x00000001); + dataCrc32C_ = 0L; + 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.secretmanager.v1.SecretPayload) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.SecretPayload) + private static final com.google.cloud.secretmanager.v1.SecretPayload DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.SecretPayload(); + } + + public static com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretPayload(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java new file mode 100644 index 00000000..fb174dad --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/resources.proto + +package com.google.cloud.secretmanager.v1; + +public interface SecretPayloadOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.SecretPayload) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The secret data. Must be no larger than 64KiB.
+   * 
+ * + * bytes data = 1; + * @return The data. + */ + com.google.protobuf.ByteString getData(); + + /** + *
+   * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+   * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+   * the crc32c checksum and store it to include in future
+   * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+   * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+   * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+   * The CRC32C value is encoded as a Int64 for compatibility, and can be
+   * safely downconverted to uint32 in languages that support this type.
+   * https://cloud.google.com/apis/design/design_patterns#integer_types
+   * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the dataCrc32c field is set. + */ + boolean hasDataCrc32C(); + /** + *
+   * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
+   * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
+   * the crc32c checksum and store it to include in future
+   * [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
+   * not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
+   * [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
+   * The CRC32C value is encoded as a Int64 for compatibility, and can be
+   * safely downconverted to uint32 in languages that support this type.
+   * https://cloud.google.com/apis/design/design_patterns#integer_types
+   * 
+ * + * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The dataCrc32c. + */ + long getDataCrc32C(); +} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java similarity index 69% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java index 3fca8469..0ae7a00c 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * A secret version resource in the Secret Manager API.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.SecretVersion} */ -public final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SecretVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecretVersion() { name_ = ""; state_ = 0; @@ -45,15 +27,16 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,121 +55,110 @@ private SecretVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (destroyTime_ != null) { - subBuilder = destroyTime_.toBuilder(); - } - destroyTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destroyTime_); - destroyTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (destroyTime_ != null) { + subBuilder = destroyTime_.toBuilder(); } - case 42: - { - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder subBuilder = null; - if (replicationStatus_ != null) { - subBuilder = replicationStatus_.toBuilder(); - } - replicationStatus_ = - input.readMessage( - com.google.cloud.secretmanager.v1.ReplicationStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); - } - - break; + destroyTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destroyTime_); + destroyTime_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; + break; + } + case 32: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 42: { + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder subBuilder = null; + if (replicationStatus_ != null) { + subBuilder = replicationStatus_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + replicationStatus_ = input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 56: { + + clientSpecifiedPayloadChecksum_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretVersion.class, - com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); + com.google.cloud.secretmanager.v1.SecretVersion.class, com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); } /** - * - * *
    * The state of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion], indicating if it can be accessed.
    * 
* * Protobuf enum {@code google.cloud.secretmanager.v1.SecretVersion.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified. This value is unused and invalid.
      * 
@@ -195,8 +167,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
      * 
@@ -205,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ENABLED(1), /** - * - * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
      * is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
@@ -217,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLED(2),
     /**
-     *
-     *
      * 
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
      * stored. A version may not leave this state once entered.
@@ -231,8 +197,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified. This value is unused and invalid.
      * 
@@ -241,8 +205,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
      * 
@@ -251,8 +213,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
      * is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
@@ -263,8 +223,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLED_VALUE = 2;
     /**
-     *
-     *
      * 
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
      * stored. A version may not leave this state once entered.
@@ -274,6 +232,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DESTROYED_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -298,51 +257,50 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ENABLED;
-        case 2:
-          return DISABLED;
-        case 3:
-          return DESTROYED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ENABLED;
+        case 2: return DISABLED;
+        case 3: return DESTROYED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.secretmanager.v1.SecretVersion.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -362,8 +320,6 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -372,7 +328,6 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -381,15 +336,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; } } /** - * - * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -398,15 +352,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -417,15 +372,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -433,15 +384,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -449,14 +396,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -466,17 +410,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DESTROY_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp destroyTime_; /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ @java.lang.Override @@ -484,17 +424,13 @@ public boolean hasDestroyTime() { return destroyTime_ != null; } /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ @java.lang.Override @@ -502,16 +438,13 @@ public com.google.protobuf.Timestamp getDestroyTime() { return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { @@ -521,56 +454,38 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { + @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.secretmanager.v1.SecretVersion.State result = - com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); - return result == null - ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED - : result; + com.google.cloud.secretmanager.v1.SecretVersion.State result = com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); + return result == null ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED : result; } public static final int REPLICATION_STATUS_FIELD_NUMBER = 5; private com.google.cloud.secretmanager.v1.ReplicationStatus replicationStatus_; /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return Whether the replicationStatus field is set. */ @java.lang.Override @@ -578,25 +493,18 @@ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return The replicationStatus. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus() { - return replicationStatus_ == null - ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() - : replicationStatus_; + return replicationStatus_ == null ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; } /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
@@ -604,22 +512,18 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus( * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder - getReplicationStatusOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { return getReplicationStatus(); } public static final int ETAG_FIELD_NUMBER = 6; private volatile java.lang.Object etag_; /** - * - * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -628,29 +532,29 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -658,8 +562,24 @@ public com.google.protobuf.ByteString getEtagBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER = 7; + private boolean clientSpecifiedPayloadChecksum_; + /** + *
+   * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
+   * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
+   * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
+   * 
+ * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clientSpecifiedPayloadChecksum. + */ + @java.lang.Override + public boolean getClientSpecifiedPayloadChecksum() { + return clientSpecifiedPayloadChecksum_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -671,7 +591,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_); } @@ -681,8 +602,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destroyTime_ != null) { output.writeMessage(3, getDestroyTime()); } - if (state_ - != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (replicationStatus_ != null) { @@ -691,6 +611,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } + if (clientSpecifiedPayloadChecksum_ != false) { + output.writeBool(7, clientSpecifiedPayloadChecksum_); + } unknownFields.writeTo(output); } @@ -704,21 +627,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (destroyTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDestroyTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDestroyTime()); } - if (state_ - != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (replicationStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReplicationStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReplicationStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } + if (clientSpecifiedPayloadChecksum_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, clientSpecifiedPayloadChecksum_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -727,29 +657,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.secretmanager.v1.SecretVersion)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.SecretVersion other = - (com.google.cloud.secretmanager.v1.SecretVersion) obj; + com.google.cloud.secretmanager.v1.SecretVersion other = (com.google.cloud.secretmanager.v1.SecretVersion) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasDestroyTime() != other.hasDestroyTime()) return false; if (hasDestroyTime()) { - if (!getDestroyTime().equals(other.getDestroyTime())) return false; + if (!getDestroyTime() + .equals(other.getDestroyTime())) return false; } if (state_ != other.state_) return false; if (hasReplicationStatus() != other.hasReplicationStatus()) return false; if (hasReplicationStatus()) { - if (!getReplicationStatus().equals(other.getReplicationStatus())) return false; + if (!getReplicationStatus() + .equals(other.getReplicationStatus())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getClientSpecifiedPayloadChecksum() + != other.getClientSpecifiedPayloadChecksum()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -779,132 +715,126 @@ public int hashCode() { } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientSpecifiedPayloadChecksum()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom( 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.secretmanager.v1.SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.SecretVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A secret version resource in the Secret Manager API.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.SecretVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.SecretVersion) com.google.cloud.secretmanager.v1.SecretVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretVersion.class, - com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); + com.google.cloud.secretmanager.v1.SecretVersion.class, com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.SecretVersion.newBuilder() @@ -912,15 +842,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -948,13 +879,15 @@ public Builder clear() { } etag_ = ""; + clientSpecifiedPayloadChecksum_ = false; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override @@ -973,8 +906,7 @@ public com.google.cloud.secretmanager.v1.SecretVersion build() { @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion buildPartial() { - com.google.cloud.secretmanager.v1.SecretVersion result = - new com.google.cloud.secretmanager.v1.SecretVersion(this); + com.google.cloud.secretmanager.v1.SecretVersion result = new com.google.cloud.secretmanager.v1.SecretVersion(this); result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -993,6 +925,7 @@ public com.google.cloud.secretmanager.v1.SecretVersion buildPartial() { result.replicationStatus_ = replicationStatusBuilder_.build(); } result.etag_ = etag_; + result.clientSpecifiedPayloadChecksum_ = clientSpecifiedPayloadChecksum_; onBuilt(); return result; } @@ -1001,39 +934,38 @@ public com.google.cloud.secretmanager.v1.SecretVersion buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.SecretVersion) { - return mergeFrom((com.google.cloud.secretmanager.v1.SecretVersion) other); + return mergeFrom((com.google.cloud.secretmanager.v1.SecretVersion)other); } else { super.mergeFrom(other); return this; @@ -1041,8 +973,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretVersion other) { - if (other == com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1063,6 +994,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretVersion other) etag_ = other.etag_; onChanged(); } + if (other.getClientSpecifiedPayloadChecksum() != false) { + setClientSpecifiedPayloadChecksum(other.getClientSpecifiedPayloadChecksum()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1094,8 +1028,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1104,13 +1036,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1119,8 +1051,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1129,14 +1059,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1144,8 +1075,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1154,22 +1083,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1178,18 +1105,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1198,16 +1122,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1215,58 +1139,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1282,17 +1187,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1303,21 +1205,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1329,15 +1227,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1351,64 +1245,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1416,64 +1294,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp destroyTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - destroyTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyTimeBuilder_; /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ public boolean hasDestroyTime() { return destroyTimeBuilder_ != null || destroyTime_ != null; } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ public com.google.protobuf.Timestamp getDestroyTime() { if (destroyTimeBuilder_ == null) { - return destroyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyTime_; + return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } else { return destroyTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { @@ -1489,19 +1348,16 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDestroyTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (destroyTimeBuilder_ == null) { destroyTime_ = builderForValue.build(); onChanged(); @@ -1512,25 +1368,19 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { if (destroyTime_ != null) { destroyTime_ = - com.google.protobuf.Timestamp.newBuilder(destroyTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(destroyTime_).mergeFrom(value).buildPartial(); } else { destroyTime_ = value; } @@ -1542,17 +1392,13 @@ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDestroyTime() { if (destroyTimeBuilder_ == null) { @@ -1566,70 +1412,54 @@ public Builder clearDestroyTime() { return this; } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDestroyTimeBuilder() { - + onChanged(); return getDestroyTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { if (destroyTimeBuilder_ != null) { return destroyTimeBuilder_.getMessageOrBuilder(); } else { - return destroyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyTime_; + return destroyTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } } /** - * - * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDestroyTimeFieldBuilder() { if (destroyTimeBuilder_ == null) { - destroyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDestroyTime(), getParentForChildren(), isClean()); + destroyTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDestroyTime(), + getParentForChildren(), + isClean()); destroyTime_ = null; } return destroyTimeBuilder_; @@ -1637,75 +1467,51 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.secretmanager.v1.SecretVersion.State result = - com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); - return result == null - ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED - : result; + com.google.cloud.secretmanager.v1.SecretVersion.State result = com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); + return result == null ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1713,26 +1519,21 @@ public Builder setState(com.google.cloud.secretmanager.v1.SecretVersion.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1740,47 +1541,34 @@ public Builder clearState() { private com.google.cloud.secretmanager.v1.ReplicationStatus replicationStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> - replicationStatusBuilder_; + com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> replicationStatusBuilder_; /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return Whether the replicationStatus field is set. */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return The replicationStatus. */ public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { - return replicationStatus_ == null - ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() - : replicationStatus_; + return replicationStatus_ == null ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1801,8 +1589,6 @@ public Builder setReplicationStatus(com.google.cloud.secretmanager.v1.Replicatio return this; } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1821,22 +1607,17 @@ public Builder setReplicationStatus( return this; } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public Builder mergeReplicationStatus( - com.google.cloud.secretmanager.v1.ReplicationStatus value) { + public Builder mergeReplicationStatus(com.google.cloud.secretmanager.v1.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = - com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder(replicationStatus_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } @@ -1848,8 +1629,6 @@ public Builder mergeReplicationStatus( return this; } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1868,42 +1647,33 @@ public Builder clearReplicationStatus() { return this; } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.Builder - getReplicationStatusBuilder() { - + public com.google.cloud.secretmanager.v1.ReplicationStatus.Builder getReplicationStatusBuilder() { + onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder - getReplicationStatusOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { - return replicationStatus_ == null - ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() - : replicationStatus_; + return replicationStatus_ == null ? + com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; } } /** - * - * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1911,17 +1681,14 @@ public Builder clearReplicationStatus() { * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { - replicationStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, - com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder>( - getReplicationStatus(), getParentForChildren(), isClean()); + replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder>( + getReplicationStatus(), + getParentForChildren(), + isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; @@ -1929,20 +1696,18 @@ public Builder clearReplicationStatus() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1951,21 +1716,20 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1973,68 +1737,110 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + private boolean clientSpecifiedPayloadChecksum_ ; + /** + *
+     * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
+     * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
+     * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
+     * 
+ * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clientSpecifiedPayloadChecksum. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getClientSpecifiedPayloadChecksum() { + return clientSpecifiedPayloadChecksum_; + } + /** + *
+     * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
+     * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
+     * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
+     * 
+ * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The clientSpecifiedPayloadChecksum to set. + * @return This builder for chaining. + */ + public Builder setClientSpecifiedPayloadChecksum(boolean value) { + + clientSpecifiedPayloadChecksum_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
+     * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
+     * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
+     * 
+ * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearClientSpecifiedPayloadChecksum() { + + clientSpecifiedPayloadChecksum_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2044,12 +1850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.SecretVersion) private static final com.google.cloud.secretmanager.v1.SecretVersion DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.SecretVersion(); } @@ -2058,16 +1864,16 @@ public static com.google.cloud.secretmanager.v1.SecretVersion getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2082,4 +1888,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java similarity index 100% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java similarity index 78% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java index 90b0fc5c..feb6a0a9 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface SecretVersionOrBuilder - extends +public interface SecretVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.SecretVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -34,13 +16,10 @@ public interface SecretVersionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -49,149 +28,109 @@ public interface SecretVersionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ boolean hasDestroyTime(); /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ com.google.protobuf.Timestamp getDestroyTime(); /** - * - * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder(); /** - * - * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.secretmanager.v1.SecretVersion.State getState(); /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return Whether the replicationStatus field is set. */ boolean hasReplicationStatus(); /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; - * * @return The replicationStatus. */ com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus(); /** - * - * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
@@ -201,27 +140,34 @@ public interface SecretVersionOrBuilder com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder(); /** - * - * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
+   * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
+   * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
+   * 
+ * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clientSpecifiedPayloadChecksum. + */ + boolean getClientSpecifiedPayloadChecksum(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java new file mode 100644 index 00000000..79da8584 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java @@ -0,0 +1,360 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/service.proto + +package com.google.cloud.secretmanager.v1; + +public final class ServiceProto { + private ServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/secretmanager/v1/service." + + "proto\022\035google.cloud.secretmanager.v1\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032-google/" + + "cloud/secretmanager/v1/resources.proto\032\036" + + "google/iam/v1/iam_policy.proto\032\032google/i" + + "am/v1/policy.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\"\237\001\n\022ListSecretsRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003" + + "\340A\001\"z\n\023ListSecretsResponse\0226\n\007secrets\030\001 " + + "\003(\0132%.google.cloud.secretmanager.v1.Secr" + + "et\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_siz" + + "e\030\003 \001(\005\"\256\001\n\023CreateSecretRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\026\n\tsecret_id\030\002 \001(\tB" + + "\003\340A\002\022:\n\006secret\030\003 \001(\0132%.google.cloud.secr" + + "etmanager.v1.SecretB\003\340A\002\"\232\001\n\027AddSecretVe" + + "rsionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#se" + + "cretmanager.googleapis.com/Secret\022B\n\007pay" + + "load\030\002 \001(\0132,.google.cloud.secretmanager." + + "v1.SecretPayloadB\003\340A\002\"M\n\020GetSecretReques" + + "t\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#secretmanager.g" + + "oogleapis.com/Secret\"\236\001\n\031ListSecretVersi" + + "onsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#secr" + + "etmanager.googleapis.com/Secret\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\211\001\n\032ListSecretVers" + + "ionsResponse\022>\n\010versions\030\001 \003(\0132,.google." + + "cloud.secretmanager.v1.SecretVersion\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" + + "\005\"[\n\027GetSecretVersionRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*secretmanager.googleapis.com" + + "/SecretVersion\"\207\001\n\023UpdateSecretRequest\022:" + + "\n\006secret\030\001 \001(\0132%.google.cloud.secretmana" + + "ger.v1.SecretB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"^\n\032Acce" + + "ssSecretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A" + + "\002\372A,\n*secretmanager.googleapis.com/Secre" + + "tVersion\"\233\001\n\033AccessSecretVersionResponse" + + "\022=\n\004name\030\001 \001(\tB/\372A,\n*secretmanager.googl" + + "eapis.com/SecretVersion\022=\n\007payload\030\002 \001(\013" + + "2,.google.cloud.secretmanager.v1.SecretP" + + "ayload\"c\n\023DeleteSecretRequest\0229\n\004name\030\001 " + + "\001(\tB+\340A\002\372A%\n#secretmanager.googleapis.co" + + "m/Secret\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DisableSe" + + "cretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*secretmanager.googleapis.com/SecretVer" + + "sion\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"q\n\032EnableSecretV" + + "ersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*sec" + + "retmanager.googleapis.com/SecretVersion\022" + + "\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DestroySecretVersi" + + "onRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*secretm" + + "anager.googleapis.com/SecretVersion\022\021\n\004e" + + "tag\030\002 \001(\tB\003\340A\0012\317\025\n\024SecretManagerService\022" + + "\246\001\n\013ListSecrets\0221.google.cloud.secretman" + + "ager.v1.ListSecretsRequest\0322.google.clou" + + "d.secretmanager.v1.ListSecretsResponse\"0" + + "\202\323\344\223\002!\022\037/v1/{parent=projects/*}/secrets\332" + + "A\006parent\022\264\001\n\014CreateSecret\0222.google.cloud" + + ".secretmanager.v1.CreateSecretRequest\032%." + + "google.cloud.secretmanager.v1.Secret\"I\202\323" + + "\344\223\002)\"\037/v1/{parent=projects/*}/secrets:\006s" + + "ecret\332A\027parent,secret_id,secret\022\302\001\n\020AddS" + + "ecretVersion\0226.google.cloud.secretmanage" + + "r.v1.AddSecretVersionRequest\032,.google.cl" + + "oud.secretmanager.v1.SecretVersion\"H\202\323\344\223" + + "\0021\",/v1/{parent=projects/*/secrets/*}:ad" + + "dVersion:\001*\332A\016parent,payload\022\223\001\n\tGetSecr" + + "et\022/.google.cloud.secretmanager.v1.GetSe" + + "cretRequest\032%.google.cloud.secretmanager" + + ".v1.Secret\".\202\323\344\223\002!\022\037/v1/{name=projects/*" + + "/secrets/*}\332A\004name\022\266\001\n\014UpdateSecret\0222.go" + + "ogle.cloud.secretmanager.v1.UpdateSecret" + + "Request\032%.google.cloud.secretmanager.v1." + + "Secret\"K\202\323\344\223\00202&/v1/{secret.name=project" + + "s/*/secrets/*}:\006secret\332A\022secret,update_m" + + "ask\022\212\001\n\014DeleteSecret\0222.google.cloud.secr" + + "etmanager.v1.DeleteSecretRequest\032\026.googl" + + "e.protobuf.Empty\".\202\323\344\223\002!*\037/v1/{name=proj" + + "ects/*/secrets/*}\332A\004name\022\306\001\n\022ListSecretV" + + "ersions\0228.google.cloud.secretmanager.v1." + + "ListSecretVersionsRequest\0329.google.cloud" + + ".secretmanager.v1.ListSecretVersionsResp" + + "onse\";\202\323\344\223\002,\022*/v1/{parent=projects/*/sec" + + "rets/*}/versions\332A\006parent\022\263\001\n\020GetSecretV" + + "ersion\0226.google.cloud.secretmanager.v1.G" + + "etSecretVersionRequest\032,.google.cloud.se" + + "cretmanager.v1.SecretVersion\"9\202\323\344\223\002,\022*/v" + + "1/{name=projects/*/secrets/*/versions/*}" + + "\332A\004name\022\316\001\n\023AccessSecretVersion\0229.google" + + ".cloud.secretmanager.v1.AccessSecretVers" + + "ionRequest\032:.google.cloud.secretmanager." + + "v1.AccessSecretVersionResponse\"@\202\323\344\223\0023\0221" + + "/v1/{name=projects/*/secrets/*/versions/" + + "*}:access\332A\004name\022\306\001\n\024DisableSecretVersio" + + "n\022:.google.cloud.secretmanager.v1.Disabl" + + "eSecretVersionRequest\032,.google.cloud.sec" + + "retmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1" + + "/{name=projects/*/secrets/*/versions/*}:" + + "disable:\001*\332A\004name\022\303\001\n\023EnableSecretVersio" + + "n\0229.google.cloud.secretmanager.v1.Enable" + + "SecretVersionRequest\032,.google.cloud.secr" + + "etmanager.v1.SecretVersion\"C\202\323\344\223\0026\"1/v1/" + + "{name=projects/*/secrets/*/versions/*}:e" + + "nable:\001*\332A\004name\022\306\001\n\024DestroySecretVersion" + + "\022:.google.cloud.secretmanager.v1.Destroy" + + "SecretVersionRequest\032,.google.cloud.secr" + + "etmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1/" + + "{name=projects/*/secrets/*/versions/*}:d" + + "estroy:\001*\332A\004name\022\206\001\n\014SetIamPolicy\022\".goog" + + "le.iam.v1.SetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\";\202\323\344\223\0025\"0/v1/{resource=proj" + + "ects/*/secrets/*}:setIamPolicy:\001*\022\203\001\n\014Ge" + + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"8\202\323\344\223\0022\0220/" + + "v1/{resource=projects/*/secrets/*}:getIa" + + "mPolicy\022\254\001\n\022TestIamPermissions\022(.google." + + "iam.v1.TestIamPermissionsRequest\032).googl" + + "e.iam.v1.TestIamPermissionsResponse\"A\202\323\344" + + "\223\002;\"6/v1/{resource=projects/*/secrets/*}" + + ":testIamPermissions:\001*\032P\312A\034secretmanager" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\353\001\n!com.google." + + "cloud.secretmanager.v1B\014ServiceProtoP\001ZJ" + + "google.golang.org/genproto/googleapis/cl" + + "oud/secretmanager/v1;secretmanager\370\001\001\242\002\003" + + "GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Go" + + "ogle\\Cloud\\SecretManager\\V1\352\002 Google::Cl" + + "oud::SecretManager::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.secretmanager.v1.ResourcesProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor, + new java.lang.String[] { "Secrets", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor, + new java.lang.String[] { "Parent", "SecretId", "Secret", }); + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor, + new java.lang.String[] { "Parent", "Payload", }); + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor, + new java.lang.String[] { "Versions", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor, + new java.lang.String[] { "Secret", "UpdateMask", }); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor, + new java.lang.String[] { "Name", "Payload", }); + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + 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.secretmanager.v1.ResourcesProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java similarity index 71% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java index 9fde0377..1d4402dc 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * A Pub/Sub topic which Secret Manager will publish to when control plane
  * events occur on this secret.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Topic}
  */
-public final class Topic extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Topic extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Topic)
     TopicOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Topic.newBuilder() to construct.
   private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Topic() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Topic();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Topic(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,52 +54,47 @@ private Topic(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto
-        .internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Topic.class,
-            com.google.cloud.secretmanager.v1.Topic.Builder.class);
+            com.google.cloud.secretmanager.v1.Topic.class, com.google.cloud.secretmanager.v1.Topic.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -124,7 +102,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -133,15 +110,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -149,15 +125,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -166,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +154,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_); } @@ -202,14 +179,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.secretmanager.v1.Topic)) { return super.equals(obj); } com.google.cloud.secretmanager.v1.Topic other = (com.google.cloud.secretmanager.v1.Topic) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,104 +206,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Topic parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Topic parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Topic parseFrom( 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.secretmanager.v1.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.Topic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic 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.secretmanager.v1.Topic 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.secretmanager.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Pub/Sub topic which Secret Manager will publish to when control plane
    * events occur on this secret.
@@ -333,23 +304,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Topic}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Topic)
       com.google.cloud.secretmanager.v1.TopicOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Topic.class,
-              com.google.cloud.secretmanager.v1.Topic.Builder.class);
+              com.google.cloud.secretmanager.v1.Topic.class, com.google.cloud.secretmanager.v1.Topic.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Topic.newBuilder()
@@ -357,15 +326,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +345,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto
-          .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +366,7 @@ public com.google.cloud.secretmanager.v1.Topic build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Topic buildPartial() {
-      com.google.cloud.secretmanager.v1.Topic result =
-          new com.google.cloud.secretmanager.v1.Topic(this);
+      com.google.cloud.secretmanager.v1.Topic result = new com.google.cloud.secretmanager.v1.Topic(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -407,39 +376,38 @@ public com.google.cloud.secretmanager.v1.Topic buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Topic) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Topic) other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Topic)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +451,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -492,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -516,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -540,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -563,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -582,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @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); } @@ -608,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Topic) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Topic) private static final com.google.cloud.secretmanager.v1.Topic DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Topic(); } @@ -622,16 +580,16 @@ public static com.google.cloud.secretmanager.v1.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Topic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java similarity index 61% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java index 8e231332..36e17a7c 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface TopicOrBuilder - extends +public interface TopicOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Topic) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -33,13 +15,10 @@ public interface TopicOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -47,8 +26,8 @@ public interface TopicOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java similarity index 64% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java index bb5dfc3e..a58b7f9a 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** - * - * *
  * Request message for [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.UpdateSecretRequest} */ -public final class UpdateSecretRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSecretRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.UpdateSecretRequest) UpdateSecretRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSecretRequest.newBuilder() to construct. private UpdateSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSecretRequest() {} + private UpdateSecretRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,84 +52,72 @@ private UpdateSecretRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; - if (secret_ != null) { - subBuilder = secret_.toBuilder(); - } - secret_ = - input.readMessage( - com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secret_); - secret_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; + if (secret_ != null) { + subBuilder = secret_.toBuilder(); + } + secret_ = input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secret_); + secret_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, - com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); } public static final int SECRET_FIELD_NUMBER = 1; private com.google.cloud.secretmanager.v1.Secret secret_; /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ @java.lang.Override @@ -153,34 +125,23 @@ public boolean hasSecret() { return secret_ != null; } /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Secret getSecret() { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { @@ -190,15 +151,11 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -206,15 +163,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -222,14 +175,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -237,7 +187,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +198,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 (secret_ != null) { output.writeMessage(1, getSecret()); } @@ -266,10 +216,12 @@ public int getSerializedSize() { size = 0; if (secret_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecret()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSecret()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.UpdateSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.UpdateSecretRequest other = - (com.google.cloud.secretmanager.v1.UpdateSecretRequest) obj; + com.google.cloud.secretmanager.v1.UpdateSecretRequest other = (com.google.cloud.secretmanager.v1.UpdateSecretRequest) obj; if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { - if (!getSecret().equals(other.getSecret())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseFrom( 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.secretmanager.v1.UpdateSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest prototype) { + public static Builder newBuilder(com.google.cloud.secretmanager.v1.UpdateSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.UpdateSecretRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.UpdateSecretRequest) com.google.cloud.secretmanager.v1.UpdateSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, - com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.UpdateSecretRequest.newBuilder() @@ -448,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override @@ -497,8 +441,7 @@ public com.google.cloud.secretmanager.v1.UpdateSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.UpdateSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.UpdateSecretRequest result = - new com.google.cloud.secretmanager.v1.UpdateSecretRequest(this); + com.google.cloud.secretmanager.v1.UpdateSecretRequest result = new com.google.cloud.secretmanager.v1.UpdateSecretRequest(this); if (secretBuilder_ == null) { result.secret_ = secret_; } else { @@ -517,39 +460,38 @@ public com.google.cloud.secretmanager.v1.UpdateSecretRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.UpdateSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.UpdateSecretRequest) other); + return mergeFrom((com.google.cloud.secretmanager.v1.UpdateSecretRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.UpdateSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance()) return this; if (other.hasSecret()) { mergeSecret(other.getSecret()); } @@ -584,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.secretmanager.v1.UpdateSecretRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.secretmanager.v1.UpdateSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -597,58 +537,39 @@ public Builder mergeFrom( private com.google.cloud.secretmanager.v1.Secret secret_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder> - secretBuilder_; + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretBuilder_; /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ public boolean hasSecret() { return secretBuilder_ != null || secret_ != null; } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ public com.google.cloud.secretmanager.v1.Secret getSecret() { if (secretBuilder_ == null) { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { @@ -664,17 +585,14 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { + public Builder setSecret( + com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); @@ -685,23 +603,17 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builde return this; } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { if (secret_ != null) { secret_ = - com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); } else { secret_ = value; } @@ -713,15 +625,11 @@ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecret() { if (secretBuilder_ == null) { @@ -735,64 +643,48 @@ public Builder clearSecret() { return this; } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretBuilder() { - + onChanged(); return getSecretFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { - return secret_ == null - ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() - : secret_; + return secret_ == null ? + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; } } /** - * - * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder> + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { - secretBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, - com.google.cloud.secretmanager.v1.Secret.Builder, - com.google.cloud.secretmanager.v1.SecretOrBuilder>( - getSecret(), getParentForChildren(), isClean()); + secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>( + getSecret(), + getParentForChildren(), + isClean()); secret_ = null; } return secretBuilder_; @@ -800,55 +692,39 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -864,16 +740,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -884,20 +758,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -909,14 +780,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -930,68 +798,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,12 +856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.UpdateSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.UpdateSecretRequest) private static final com.google.cloud.secretmanager.v1.UpdateSecretRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.UpdateSecretRequest(); } @@ -1015,16 +870,16 @@ public static com.google.cloud.secretmanager.v1.UpdateSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.UpdateSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java index 975d3f39..21e7749c 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java @@ -1,104 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface UpdateSecretRequestOrBuilder - extends +public interface UpdateSecretRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.UpdateSecretRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the secret field is set. */ boolean hasSecret(); /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The secret. */ com.google.cloud.secretmanager.v1.Secret getSecret(); /** - * - * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder(); /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto similarity index 91% rename from proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto index 9b189692..a47475b3 100644 --- a/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto +++ b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto @@ -16,11 +16,11 @@ syntax = "proto3"; package google.cloud.secretmanager.v1; +import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.SecretManager.V1"; @@ -147,6 +147,11 @@ message SecretVersion { // Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. string etag = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been + // received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on + // [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion]. + bool client_specified_payload_checksum = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A policy that defines the replication and encryption configuration of data. @@ -313,4 +318,16 @@ message Rotation { message SecretPayload { // The secret data. Must be no larger than 64KiB. bytes data = 1; + + // Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the + // received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using + // the crc32c checksum and store it to include in future + // [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is + // not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the + // [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you. + // + // The CRC32C value is encoded as a Int64 for compatibility, and can be + // safely downconverted to uint32 in languages that support this type. + // https://cloud.google.com/apis/design/design_patterns#integer_types + optional int64 data_crc32c = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto similarity index 100% rename from proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto rename to owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java deleted file mode 100644 index 5445169c..00000000 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/service.proto - -package com.google.cloud.secretmanager.v1; - -public interface GetSecretRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java deleted file mode 100644 index 9b0e4e01..00000000 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/resources.proto - -package com.google.cloud.secretmanager.v1; - -public final class ResourcesProto { - private ResourcesProto() {} - - 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_secretmanager_v1_Secret_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Topic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/secretmanager/v1/resource" - + "s.proto\022\035google.cloud.secretmanager.v1\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032\036google/protobuf/dura" - + "tion.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\034google/api/annotations.proto\"\336\004\n\006Se" - + "cret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\013replication\030\002" - + " \001(\0132*.google.cloud.secretmanager.v1.Rep" - + "licationB\006\340A\005\340A\002\0224\n\013create_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022A\n\006labels" - + "\030\004 \003(\01321.google.cloud.secretmanager.v1.S" - + "ecret.LabelsEntry\0229\n\006topics\030\005 \003(\0132$.goog" - + "le.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n\013" - + "expire_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\001H\000\022-\n\003ttl\030\007 \001(\0132\031.google.proto" - + "buf.DurationB\003\340A\004H\000\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022>" - + "\n\010rotation\030\t \001(\0132\'.google.cloud.secretma" - + "nager.v1.RotationB\003\340A\001\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:M\352AJ\n#secr" - + "etmanager.googleapis.com/Secret\022#project" - + "s/{project}/secrets/{secret}B\014\n\nexpirati" - + "on\"\362\003\n\rSecretVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0225\n\014destroy_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022F\n\005state\030\004 " - + "\001(\01622.google.cloud.secretmanager.v1.Secr" - + "etVersion.StateB\003\340A\003\022L\n\022replication_stat" - + "us\030\005 \001(\01320.google.cloud.secretmanager.v1" - + ".ReplicationStatus\022\021\n\004etag\030\006 \001(\tB\003\340A\003\"H\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED" - + "\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003:n\352Ak\n*se" - + "cretmanager.googleapis.com/SecretVersion" - + "\022=projects/{project}/secrets/{secret}/ve" - + "rsions/{secret_version}\"\220\004\n\013Replication\022" - + "I\n\tautomatic\030\001 \001(\01324.google.cloud.secret" - + "manager.v1.Replication.AutomaticH\000\022N\n\014us" - + "er_managed\030\002 \001(\01326.google.cloud.secretma" - + "nager.v1.Replication.UserManagedH\000\032o\n\tAu" - + "tomatic\022b\n\033customer_managed_encryption\030\001" - + " \001(\01328.google.cloud.secretmanager.v1.Cus" - + "tomerManagedEncryptionB\003\340A\001\032\345\001\n\013UserMana" - + "ged\022U\n\010replicas\030\001 \003(\0132>.google.cloud.sec" - + "retmanager.v1.Replication.UserManaged.Re" - + "plicaB\003\340A\002\032\177\n\007Replica\022\020\n\010location\030\001 \001(\t\022" - + "b\n\033customer_managed_encryption\030\002 \001(\01328.g" - + "oogle.cloud.secretmanager.v1.CustomerMan" - + "agedEncryptionB\003\340A\001B\r\n\013replication\"6\n\031Cu" - + "stomerManagedEncryption\022\031\n\014kms_key_name\030" - + "\001 \001(\tB\003\340A\002\"\353\004\n\021ReplicationStatus\022U\n\tauto" - + "matic\030\001 \001(\0132@.google.cloud.secretmanager" - + ".v1.ReplicationStatus.AutomaticStatusH\000\022" - + "Z\n\014user_managed\030\002 \001(\0132B.google.cloud.sec" - + "retmanager.v1.ReplicationStatus.UserMana" - + "gedStatusH\000\032{\n\017AutomaticStatus\022h\n\033custom" - + "er_managed_encryption\030\001 \001(\0132>.google.clo" - + "ud.secretmanager.v1.CustomerManagedEncry" - + "ptionStatusB\003\340A\003\032\217\002\n\021UserManagedStatus\022g" - + "\n\010replicas\030\001 \003(\0132P.google.cloud.secretma" - + "nager.v1.ReplicationStatus.UserManagedSt" - + "atus.ReplicaStatusB\003\340A\003\032\220\001\n\rReplicaStatu" - + "s\022\025\n\010location\030\001 \001(\tB\003\340A\003\022h\n\033customer_man" - + "aged_encryption\030\002 \001(\0132>.google.cloud.sec" - + "retmanager.v1.CustomerManagedEncryptionS" - + "tatusB\003\340A\003B\024\n\022replication_status\"D\n\037Cust" - + "omerManagedEncryptionStatus\022!\n\024kms_key_v" - + "ersion_name\030\001 \001(\tB\003\340A\002\"_\n\005Topic\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\002:C\352A@\n\033pubsub.googleapis.com/T" - + "opic\022!projects/{project}/topics/{topic}\"" - + "\200\001\n\010Rotation\022;\n\022next_rotation_time\030\001 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\001\0227\n\017rot" - + "ation_period\030\002 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\004\"\035\n\rSecretPayload\022\014\n\004data\030\001 \001(" - + "\014B\355\001\n!com.google.cloud.secretmanager.v1B" - + "\016ResourcesProtoP\001ZJgoogle.golang.org/gen" - + "proto/googleapis/cloud/secretmanager/v1;" - + "secretmanager\370\001\001\242\002\003GSM\252\002\035Google.Cloud.Se" - + "cretManager.V1\312\002\035Google\\Cloud\\SecretMana" - + "ger\\V1\352\002 Google::Cloud::SecretManager::V" - + "1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_secretmanager_v1_Secret_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Secret_descriptor, - new java.lang.String[] { - "Name", - "Replication", - "CreateTime", - "Labels", - "Topics", - "ExpireTime", - "Ttl", - "Etag", - "Rotation", - "Expiration", - }); - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = - internal_static_google_cloud_secretmanager_v1_Secret_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", - }); - internal_static_google_cloud_secretmanager_v1_Replication_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_descriptor, - new java.lang.String[] { - "Automatic", "UserManaged", "Replication", - }); - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor, - new java.lang.String[] { - "CustomerManagedEncryption", - }); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor, - new java.lang.String[] { - "Replicas", - }); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor, - new java.lang.String[] { - "Location", "CustomerManagedEncryption", - }); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor, - new java.lang.String[] { - "KmsKeyName", - }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor, - new java.lang.String[] { - "Automatic", "UserManaged", "ReplicationStatus", - }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor, - new java.lang.String[] { - "CustomerManagedEncryption", - }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor, - new java.lang.String[] { - "Replicas", - }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor, - new java.lang.String[] { - "Location", "CustomerManagedEncryption", - }); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor, - new java.lang.String[] { - "KmsKeyVersionName", - }); - internal_static_google_cloud_secretmanager_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Topic_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor, - new java.lang.String[] { - "NextRotationTime", "RotationPeriod", - }); - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor, - new java.lang.String[] { - "Data", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java deleted file mode 100644 index 224e7192..00000000 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java +++ /dev/null @@ -1,552 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/resources.proto - -package com.google.cloud.secretmanager.v1; - -/** - * - * - *
- * A secret payload resource in the Secret Manager API. This contains the
- * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
- * 
- * - * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload} - */ -public final class SecretPayload extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.SecretPayload) - SecretPayloadOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecretPayload.newBuilder() to construct. - private SecretPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecretPayload() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecretPayload(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SecretPayload( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - data_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretPayload.class, - com.google.cloud.secretmanager.v1.SecretPayload.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * - * - *
-   * The secret data. Must be no larger than 64KiB.
-   * 
- * - * bytes data = 1; - * - * @return The data. - */ - @java.lang.Override - public com.google.protobuf.ByteString getData() { - return data_; - } - - 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 (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.secretmanager.v1.SecretPayload)) { - return super.equals(obj); - } - com.google.cloud.secretmanager.v1.SecretPayload other = - (com.google.cloud.secretmanager.v1.SecretPayload) obj; - - if (!getData().equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( - 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.secretmanager.v1.SecretPayload parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload parseDelimitedFrom( - java.io.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.secretmanager.v1.SecretPayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A secret payload resource in the Secret Manager API. This contains the
-   * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-   * 
- * - * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.SecretPayload) - com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretPayload.class, - com.google.cloud.secretmanager.v1.SecretPayload.Builder.class); - } - - // Construct using com.google.cloud.secretmanager.v1.SecretPayload.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto - .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.SecretPayload build() { - com.google.cloud.secretmanager.v1.SecretPayload result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.SecretPayload buildPartial() { - com.google.cloud.secretmanager.v1.SecretPayload result = - new com.google.cloud.secretmanager.v1.SecretPayload(this); - result.data_ = data_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.secretmanager.v1.SecretPayload) { - return mergeFrom((com.google.cloud.secretmanager.v1.SecretPayload) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretPayload other) { - if (other == com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance()) - return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.secretmanager.v1.SecretPayload parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.SecretPayload) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * The secret data. Must be no larger than 64KiB.
-     * 
- * - * bytes data = 1; - * - * @return The data. - */ - @java.lang.Override - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * - * - *
-     * The secret data. Must be no larger than 64KiB.
-     * 
- * - * bytes data = 1; - * - * @param value The data to set. - * @return This builder for chaining. - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The secret data. Must be no larger than 64KiB.
-     * 
- * - * bytes data = 1; - * - * @return This builder for chaining. - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - 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.secretmanager.v1.SecretPayload) - } - - // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.SecretPayload) - private static final com.google.cloud.secretmanager.v1.SecretPayload DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.SecretPayload(); - } - - public static com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretPayload(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java deleted file mode 100644 index 2fd8c47b..00000000 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/resources.proto - -package com.google.cloud.secretmanager.v1; - -public interface SecretPayloadOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.SecretPayload) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The secret data. Must be no larger than 64KiB.
-   * 
- * - * bytes data = 1; - * - * @return The data. - */ - com.google.protobuf.ByteString getData(); -} diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java deleted file mode 100644 index 48e7a44f..00000000 --- a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/service.proto - -package com.google.cloud.secretmanager.v1; - -public final class ServiceProto { - private ServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/secretmanager/v1/service." - + "proto\022\035google.cloud.secretmanager.v1\032\034go" - + "ogle/api/annotations.proto\032\027google/api/c" - + "lient.proto\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032-google/" - + "cloud/secretmanager/v1/resources.proto\032\036" - + "google/iam/v1/iam_policy.proto\032\032google/i" - + "am/v1/policy.proto\032\033google/protobuf/empt" - + "y.proto\032 google/protobuf/field_mask.prot" - + "o\"\237\001\n\022ListSecretsRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003" - + "\340A\001\"z\n\023ListSecretsResponse\0226\n\007secrets\030\001 " - + "\003(\0132%.google.cloud.secretmanager.v1.Secr" - + "et\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_siz" - + "e\030\003 \001(\005\"\256\001\n\023CreateSecretRequest\022C\n\006paren" - + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" - + "ogleapis.com/Project\022\026\n\tsecret_id\030\002 \001(\tB" - + "\003\340A\002\022:\n\006secret\030\003 \001(\0132%.google.cloud.secr" - + "etmanager.v1.SecretB\003\340A\002\"\232\001\n\027AddSecretVe" - + "rsionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#se" - + "cretmanager.googleapis.com/Secret\022B\n\007pay" - + "load\030\002 \001(\0132,.google.cloud.secretmanager." - + "v1.SecretPayloadB\003\340A\002\"M\n\020GetSecretReques" - + "t\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#secretmanager.g" - + "oogleapis.com/Secret\"\236\001\n\031ListSecretVersi" - + "onsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#secr" - + "etmanager.googleapis.com/Secret\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\211\001\n\032ListSecretVers" - + "ionsResponse\022>\n\010versions\030\001 \003(\0132,.google." - + "cloud.secretmanager.v1.SecretVersion\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" - + "\005\"[\n\027GetSecretVersionRequest\022@\n\004name\030\001 \001" - + "(\tB2\340A\002\372A,\n*secretmanager.googleapis.com" - + "/SecretVersion\"\207\001\n\023UpdateSecretRequest\022:" - + "\n\006secret\030\001 \001(\0132%.google.cloud.secretmana" - + "ger.v1.SecretB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"^\n\032Acce" - + "ssSecretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A" - + "\002\372A,\n*secretmanager.googleapis.com/Secre" - + "tVersion\"\233\001\n\033AccessSecretVersionResponse" - + "\022=\n\004name\030\001 \001(\tB/\372A,\n*secretmanager.googl" - + "eapis.com/SecretVersion\022=\n\007payload\030\002 \001(\013" - + "2,.google.cloud.secretmanager.v1.SecretP" - + "ayload\"c\n\023DeleteSecretRequest\0229\n\004name\030\001 " - + "\001(\tB+\340A\002\372A%\n#secretmanager.googleapis.co" - + "m/Secret\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DisableSe" - + "cretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," - + "\n*secretmanager.googleapis.com/SecretVer" - + "sion\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"q\n\032EnableSecretV" - + "ersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*sec" - + "retmanager.googleapis.com/SecretVersion\022" - + "\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DestroySecretVersi" - + "onRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*secretm" - + "anager.googleapis.com/SecretVersion\022\021\n\004e" - + "tag\030\002 \001(\tB\003\340A\0012\317\025\n\024SecretManagerService\022" - + "\246\001\n\013ListSecrets\0221.google.cloud.secretman" - + "ager.v1.ListSecretsRequest\0322.google.clou" - + "d.secretmanager.v1.ListSecretsResponse\"0" - + "\202\323\344\223\002!\022\037/v1/{parent=projects/*}/secrets\332" - + "A\006parent\022\264\001\n\014CreateSecret\0222.google.cloud" - + ".secretmanager.v1.CreateSecretRequest\032%." - + "google.cloud.secretmanager.v1.Secret\"I\202\323" - + "\344\223\002)\"\037/v1/{parent=projects/*}/secrets:\006s" - + "ecret\332A\027parent,secret_id,secret\022\302\001\n\020AddS" - + "ecretVersion\0226.google.cloud.secretmanage" - + "r.v1.AddSecretVersionRequest\032,.google.cl" - + "oud.secretmanager.v1.SecretVersion\"H\202\323\344\223" - + "\0021\",/v1/{parent=projects/*/secrets/*}:ad" - + "dVersion:\001*\332A\016parent,payload\022\223\001\n\tGetSecr" - + "et\022/.google.cloud.secretmanager.v1.GetSe" - + "cretRequest\032%.google.cloud.secretmanager" - + ".v1.Secret\".\202\323\344\223\002!\022\037/v1/{name=projects/*" - + "/secrets/*}\332A\004name\022\266\001\n\014UpdateSecret\0222.go" - + "ogle.cloud.secretmanager.v1.UpdateSecret" - + "Request\032%.google.cloud.secretmanager.v1." - + "Secret\"K\202\323\344\223\00202&/v1/{secret.name=project" - + "s/*/secrets/*}:\006secret\332A\022secret,update_m" - + "ask\022\212\001\n\014DeleteSecret\0222.google.cloud.secr" - + "etmanager.v1.DeleteSecretRequest\032\026.googl" - + "e.protobuf.Empty\".\202\323\344\223\002!*\037/v1/{name=proj" - + "ects/*/secrets/*}\332A\004name\022\306\001\n\022ListSecretV" - + "ersions\0228.google.cloud.secretmanager.v1." - + "ListSecretVersionsRequest\0329.google.cloud" - + ".secretmanager.v1.ListSecretVersionsResp" - + "onse\";\202\323\344\223\002,\022*/v1/{parent=projects/*/sec" - + "rets/*}/versions\332A\006parent\022\263\001\n\020GetSecretV" - + "ersion\0226.google.cloud.secretmanager.v1.G" - + "etSecretVersionRequest\032,.google.cloud.se" - + "cretmanager.v1.SecretVersion\"9\202\323\344\223\002,\022*/v" - + "1/{name=projects/*/secrets/*/versions/*}" - + "\332A\004name\022\316\001\n\023AccessSecretVersion\0229.google" - + ".cloud.secretmanager.v1.AccessSecretVers" - + "ionRequest\032:.google.cloud.secretmanager." - + "v1.AccessSecretVersionResponse\"@\202\323\344\223\0023\0221" - + "/v1/{name=projects/*/secrets/*/versions/" - + "*}:access\332A\004name\022\306\001\n\024DisableSecretVersio" - + "n\022:.google.cloud.secretmanager.v1.Disabl" - + "eSecretVersionRequest\032,.google.cloud.sec" - + "retmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1" - + "/{name=projects/*/secrets/*/versions/*}:" - + "disable:\001*\332A\004name\022\303\001\n\023EnableSecretVersio" - + "n\0229.google.cloud.secretmanager.v1.Enable" - + "SecretVersionRequest\032,.google.cloud.secr" - + "etmanager.v1.SecretVersion\"C\202\323\344\223\0026\"1/v1/" - + "{name=projects/*/secrets/*/versions/*}:e" - + "nable:\001*\332A\004name\022\306\001\n\024DestroySecretVersion" - + "\022:.google.cloud.secretmanager.v1.Destroy" - + "SecretVersionRequest\032,.google.cloud.secr" - + "etmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1/" - + "{name=projects/*/secrets/*/versions/*}:d" - + "estroy:\001*\332A\004name\022\206\001\n\014SetIamPolicy\022\".goog" - + "le.iam.v1.SetIamPolicyRequest\032\025.google.i" - + "am.v1.Policy\";\202\323\344\223\0025\"0/v1/{resource=proj" - + "ects/*/secrets/*}:setIamPolicy:\001*\022\203\001\n\014Ge" - + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" - + "equest\032\025.google.iam.v1.Policy\"8\202\323\344\223\0022\0220/" - + "v1/{resource=projects/*/secrets/*}:getIa" - + "mPolicy\022\254\001\n\022TestIamPermissions\022(.google." - + "iam.v1.TestIamPermissionsRequest\032).googl" - + "e.iam.v1.TestIamPermissionsResponse\"A\202\323\344" - + "\223\002;\"6/v1/{resource=projects/*/secrets/*}" - + ":testIamPermissions:\001*\032P\312A\034secretmanager" - + ".googleapis.com\322A.https://www.googleapis" - + ".com/auth/cloud-platformB\353\001\n!com.google." - + "cloud.secretmanager.v1B\014ServiceProtoP\001ZJ" - + "google.golang.org/genproto/googleapis/cl" - + "oud/secretmanager/v1;secretmanager\370\001\001\242\002\003" - + "GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Go" - + "ogle\\Cloud\\SecretManager\\V1\352\002 Google::Cl" - + "oud::SecretManager::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.secretmanager.v1.ResourcesProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor, - new java.lang.String[] { - "Secrets", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor, - new java.lang.String[] { - "Parent", "SecretId", "Secret", - }); - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor, - new java.lang.String[] { - "Parent", "Payload", - }); - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor, - new java.lang.String[] { - "Versions", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor, - new java.lang.String[] { - "Secret", "UpdateMask", - }); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor, - new java.lang.String[] { - "Name", "Payload", - }); - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - 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.secretmanager.v1.ResourcesProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 4b235544c2621e824f420c643389b41ecb6a8e9b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 31 Jan 2022 17:57:05 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/SecretManagerServiceClient.java | 38 +- .../v1/SecretManagerServiceSettings.java | 8 +- .../secretmanager/v1/gapic_metadata.json | 0 .../cloud/secretmanager/v1/package-info.java | 4 +- ...pcSecretManagerServiceCallableFactory.java | 0 .../v1/stub/GrpcSecretManagerServiceStub.java | 1 - .../v1/stub/SecretManagerServiceStub.java | 0 .../SecretManagerServiceStubSettings.java | 10 +- .../v1/MockSecretManagerService.java | 0 .../v1/MockSecretManagerServiceImpl.java | 0 .../v1/SecretManagerServiceClientTest.java | 0 .../v1/SecretManagerServiceGrpc.java | 2129 +++++++++++++++ .../v1/SecretManagerServiceGrpc.java | 1615 ----------- .../v1/GetSecretRequestOrBuilder.java | 29 - .../secretmanager/v1/ResourcesProto.java | 307 --- .../cloud/secretmanager/v1/ServiceProto.java | 360 --- .../v1/AccessSecretVersionRequest.java | 349 ++- .../AccessSecretVersionRequestOrBuilder.java | 35 +- .../v1/AccessSecretVersionResponse.java | 420 +-- .../AccessSecretVersionResponseOrBuilder.java | 35 +- .../v1/AddSecretVersionRequest.java | 488 ++-- .../v1/AddSecretVersionRequestOrBuilder.java | 55 +- .../secretmanager/v1/CreateSecretRequest.java | 570 ++-- .../v1/CreateSecretRequestOrBuilder.java | 64 +- .../v1/CustomerManagedEncryption.java | 314 ++- .../CustomerManagedEncryptionOrBuilder.java | 27 +- .../v1/CustomerManagedEncryptionStatus.java | 346 ++- ...tomerManagedEncryptionStatusOrBuilder.java | 27 +- .../secretmanager/v1/DeleteSecretRequest.java | 421 +-- .../v1/DeleteSecretRequestOrBuilder.java | 44 +- .../v1/DestroySecretVersionRequest.java | 429 +-- .../DestroySecretVersionRequestOrBuilder.java | 44 +- .../v1/DisableSecretVersionRequest.java | 429 +-- .../DisableSecretVersionRequestOrBuilder.java | 44 +- .../v1/EnableSecretVersionRequest.java | 428 +-- .../EnableSecretVersionRequestOrBuilder.java | 44 +- .../secretmanager/v1/GetSecretRequest.java | 339 ++- .../v1/GetSecretRequestOrBuilder.java | 54 + .../v1/GetSecretVersionRequest.java | 342 ++- .../v1/GetSecretVersionRequestOrBuilder.java | 35 +- .../v1/ListSecretVersionsRequest.java | 536 ++-- .../ListSecretVersionsRequestOrBuilder.java | 56 +- .../v1/ListSecretVersionsResponse.java | 502 ++-- .../ListSecretVersionsResponseOrBuilder.java | 48 +- .../secretmanager/v1/ListSecretsRequest.java | 533 ++-- .../v1/ListSecretsRequestOrBuilder.java | 56 +- .../secretmanager/v1/ListSecretsResponse.java | 497 ++-- .../v1/ListSecretsResponseOrBuilder.java | 48 +- .../cloud/secretmanager/v1/ProjectName.java | 0 .../cloud/secretmanager/v1/Replication.java | 2020 +++++++++----- .../v1/ReplicationOrBuilder.java | 34 +- .../secretmanager/v1/ReplicationStatus.java | 2400 +++++++++++------ .../v1/ReplicationStatusOrBuilder.java | 52 +- .../secretmanager/v1/ResourcesProto.java | 364 +++ .../cloud/secretmanager/v1/Rotation.java | 523 ++-- .../secretmanager/v1/RotationOrBuilder.java | 58 +- .../google/cloud/secretmanager/v1/Secret.java | 1618 +++++++---- .../cloud/secretmanager/v1/SecretName.java | 0 .../secretmanager/v1/SecretOrBuilder.java | 188 +- .../cloud/secretmanager/v1/SecretPayload.java | 302 ++- .../v1/SecretPayloadOrBuilder.java | 27 +- .../cloud/secretmanager/v1/SecretVersion.java | 998 ++++--- .../secretmanager/v1/SecretVersionName.java | 0 .../v1/SecretVersionOrBuilder.java | 98 +- .../cloud/secretmanager/v1/ServiceProto.java | 389 +++ .../google/cloud/secretmanager/v1/Topic.java | 298 +- .../secretmanager/v1/TopicOrBuilder.java | 27 +- .../secretmanager/v1/UpdateSecretRequest.java | 519 ++-- .../v1/UpdateSecretRequestOrBuilder.java | 55 +- .../cloud/secretmanager/v1/resources.proto | 0 .../cloud/secretmanager/v1/service.proto | 0 71 files changed, 13686 insertions(+), 8444 deletions(-) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/package-info.java (92%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java (100%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-secretmanager => google-cloud-secretmanager}/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java (100%) create mode 100644 grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java (65%) create mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Replication.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java (75%) create mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Secret.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java (79%) create mode 100644 proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/Topic.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/proto/google/cloud/secretmanager/v1/resources.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-secretmanager-v1 => proto-google-cloud-secretmanager-v1}/src/main/proto/google/cloud/secretmanager/v1/service.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 919aea1a..0fab76cb 100644 --- a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -48,8 +48,8 @@ * objects: * *
    - *
  • [Secret][google.cloud.secretmanager.v1.Secret] - *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + *
  • [Secret][google.cloud.secretmanager.v1.Secret] + *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] *
* *

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1781,7 +1781,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSecretsPagedResponse extends AbstractPagedListResponse< - ListSecretsRequest, ListSecretsResponse, Secret, ListSecretsPage, + ListSecretsRequest, + ListSecretsResponse, + Secret, + ListSecretsPage, ListSecretsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1828,7 +1831,10 @@ public ApiFuture createPageAsync( public static class ListSecretsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSecretsRequest, ListSecretsResponse, Secret, ListSecretsPage, + ListSecretsRequest, + ListSecretsResponse, + Secret, + ListSecretsPage, ListSecretsFixedSizeCollection> { private ListSecretsFixedSizeCollection(List pages, int collectionSize) { @@ -1848,8 +1854,11 @@ protected ListSecretsFixedSizeCollection createCollection( public static class ListSecretVersionsPagedResponse extends AbstractPagedListResponse< - ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, - ListSecretVersionsPage, ListSecretVersionsFixedSizeCollection> { + ListSecretVersionsRequest, + ListSecretVersionsResponse, + SecretVersion, + ListSecretVersionsPage, + ListSecretVersionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -1869,7 +1878,9 @@ private ListSecretVersionsPagedResponse(ListSecretVersionsPage page) { public static class ListSecretVersionsPage extends AbstractPage< - ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, + ListSecretVersionsRequest, + ListSecretVersionsResponse, + SecretVersion, ListSecretVersionsPage> { private ListSecretVersionsPage( @@ -1899,8 +1910,11 @@ public ApiFuture createPageAsync( public static class ListSecretVersionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSecretVersionsRequest, ListSecretVersionsResponse, SecretVersion, - ListSecretVersionsPage, ListSecretVersionsFixedSizeCollection> { + ListSecretVersionsRequest, + ListSecretVersionsResponse, + SecretVersion, + ListSecretVersionsPage, + ListSecretVersionsFixedSizeCollection> { private ListSecretVersionsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java index 626bb620..b23f9839 100644 --- a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java +++ b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.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.secretmanager.v1.stub.SecretManagerServiceStubSettings; @@ -49,10 +48,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java similarity index 92% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java index db6bb5a7..ea358a41 100644 --- a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java +++ b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java @@ -25,8 +25,8 @@ * objects: * *

    - *
  • [Secret][google.cloud.secretmanager.v1.Secret] - *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] + *
  • [Secret][google.cloud.secretmanager.v1.Secret] + *
  • [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] *
* *

Sample for SecretManagerServiceClient: diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java index a0b38616..ab48b40c 100644 --- a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java +++ b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretManagerServiceStub.java @@ -53,7 +53,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java rename to google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java index 2a84d913..6d0e34a4 100644 --- a/owl-bot-staging/v1/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java +++ b/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java @@ -80,10 +80,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -235,7 +234,8 @@ public ApiFuture getFuturePagedResponse( ListSecretVersionsRequest, ListSecretVersionsResponse, ListSecretVersionsPagedResponse> LIST_SECRET_VERSIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListSecretVersionsRequest, ListSecretVersionsResponse, + ListSecretVersionsRequest, + ListSecretVersionsResponse, ListSecretVersionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java b/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java rename to google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerService.java diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java b/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java rename to google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretManagerServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java b/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java rename to google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java diff --git a/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java b/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java new file mode 100644 index 00000000..bead1fe1 --- /dev/null +++ b/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java @@ -0,0 +1,2129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.secretmanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Secret Manager Service
+ * Manages secrets and operations using those secrets. Implements a REST
+ * model with the following objects:
+ * * [Secret][google.cloud.secretmanager.v1.Secret]
+ * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/secretmanager/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecretManagerServiceGrpc { + + private SecretManagerServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.secretmanager.v1.SecretManagerService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretsRequest, + com.google.cloud.secretmanager.v1.ListSecretsResponse> + getListSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecrets", + requestType = com.google.cloud.secretmanager.v1.ListSecretsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretsRequest, + com.google.cloud.secretmanager.v1.ListSecretsResponse> + getListSecretsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretsRequest, + com.google.cloud.secretmanager.v1.ListSecretsResponse> + getListSecretsMethod; + if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { + SecretManagerServiceGrpc.getListSecretsMethod = + getListSecretsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("ListSecrets")) + .build(); + } + } + } + return getListSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getCreateSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecret", + requestType = com.google.cloud.secretmanager.v1.CreateSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getCreateSecretMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getCreateSecretMethod; + if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { + SecretManagerServiceGrpc.getCreateSecretMethod = + getCreateSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.CreateSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("CreateSecret")) + .build(); + } + } + } + return getCreateSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AddSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getAddSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddSecretVersion", + requestType = com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AddSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getAddSecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AddSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getAddSecretVersionMethod; + if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getAddSecretVersionMethod = + getAddSecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("AddSecretVersion")) + .build(); + } + } + } + return getAddSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getGetSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecret", + requestType = com.google.cloud.secretmanager.v1.GetSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getGetSecretMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getGetSecretMethod; + if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { + SecretManagerServiceGrpc.getGetSecretMethod = + getGetSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("GetSecret")) + .build(); + } + } + } + return getGetSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getUpdateSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecret", + requestType = com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, + responseType = com.google.cloud.secretmanager.v1.Secret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getUpdateSecretMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateSecretRequest, + com.google.cloud.secretmanager.v1.Secret> + getUpdateSecretMethod; + if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { + SecretManagerServiceGrpc.getUpdateSecretMethod = + getUpdateSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.UpdateSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("UpdateSecret")) + .build(); + } + } + } + return getUpdateSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> + getDeleteSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecret", + requestType = com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> + getDeleteSecretMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteSecretRequest, com.google.protobuf.Empty> + getDeleteSecretMethod; + if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { + SecretManagerServiceGrpc.getDeleteSecretMethod = + getDeleteSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DeleteSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("DeleteSecret")) + .build(); + } + } + } + return getDeleteSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> + getListSecretVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecretVersions", + requestType = com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> + getListSecretVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> + getListSecretVersionsMethod; + if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) + == null) { + SecretManagerServiceGrpc.getListSecretVersionsMethod = + getListSecretVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecretVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("ListSecretVersions")) + .build(); + } + } + } + return getListSecretVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getGetSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecretVersion", + requestType = com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getGetSecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getGetSecretVersionMethod; + if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getGetSecretVersionMethod = + getGetSecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("GetSecretVersion")) + .build(); + } + } + } + return getGetSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> + getAccessSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AccessSecretVersion", + requestType = com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> + getAccessSecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> + getAccessSecretVersionMethod; + if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getAccessSecretVersionMethod = + getAccessSecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AccessSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("AccessSecretVersion")) + .build(); + } + } + } + return getAccessSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDisableSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableSecretVersion", + requestType = com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDisableSecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDisableSecretVersionMethod; + if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getDisableSecretVersionMethod = + getDisableSecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("DisableSecretVersion")) + .build(); + } + } + } + return getDisableSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getEnableSecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableSecretVersion", + requestType = com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getEnableSecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getEnableSecretVersionMethod; + if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getEnableSecretVersionMethod = + getEnableSecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "EnableSecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("EnableSecretVersion")) + .build(); + } + } + } + return getEnableSecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDestroySecretVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DestroySecretVersion", + requestType = com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, + responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDestroySecretVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion> + getDestroySecretVersionMethod; + if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) + == null) { + SecretManagerServiceGrpc.getDestroySecretVersionMethod = + getDestroySecretVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DestroySecretVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("DestroySecretVersion")) + .build(); + } + } + } + return getDestroySecretVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { + SecretManagerServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { + SecretManagerServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) + == null) { + synchronized (SecretManagerServiceGrpc.class) { + if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) + == null) { + SecretManagerServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecretManagerServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecretManagerServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceStub(channel, callOptions); + } + }; + return SecretManagerServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecretManagerServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceBlockingStub(channel, callOptions); + } + }; + return SecretManagerServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecretManagerServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretManagerServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceFutureStub(channel, callOptions); + } + }; + return SecretManagerServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public abstract static class SecretManagerServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void listSecrets( + com.google.cloud.secretmanager.v1.ListSecretsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecretsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void createSecret( + com.google.cloud.secretmanager.v1.CreateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void addSecretVersion( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddSecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void getSecret( + com.google.cloud.secretmanager.v1.GetSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void updateSecret( + com.google.cloud.secretmanager.v1.UpdateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void deleteSecret( + com.google.cloud.secretmanager.v1.DeleteSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public void listSecretVersions( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecretVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void getSecretVersion( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void accessSecretVersion( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAccessSecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public void disableSecretVersion( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableSecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public void enableSecretVersion( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableSecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public void destroySecretVersion( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDestroySecretVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListSecretsRequest, + com.google.cloud.secretmanager.v1.ListSecretsResponse>( + this, METHODID_LIST_SECRETS))) + .addMethod( + getCreateSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.CreateSecretRequest, + com.google.cloud.secretmanager.v1.Secret>(this, METHODID_CREATE_SECRET))) + .addMethod( + getAddSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.AddSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_ADD_SECRET_VERSION))) + .addMethod( + getGetSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetSecretRequest, + com.google.cloud.secretmanager.v1.Secret>(this, METHODID_GET_SECRET))) + .addMethod( + getUpdateSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.UpdateSecretRequest, + com.google.cloud.secretmanager.v1.Secret>(this, METHODID_UPDATE_SECRET))) + .addMethod( + getDeleteSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DeleteSecretRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SECRET))) + .addMethod( + getListSecretVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>( + this, METHODID_LIST_SECRET_VERSIONS))) + .addMethod( + getGetSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_GET_SECRET_VERSION))) + .addMethod( + getAccessSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>( + this, METHODID_ACCESS_SECRET_VERSION))) + .addMethod( + getDisableSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_DISABLE_SECRET_VERSION))) + .addMethod( + getEnableSecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_ENABLE_SECRET_VERSION))) + .addMethod( + getDestroySecretVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, + com.google.cloud.secretmanager.v1.SecretVersion>( + this, METHODID_DESTROY_SECRET_VERSION))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + * + * + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SecretManagerServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void listSecrets( + com.google.cloud.secretmanager.v1.ListSecretsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecretsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void createSecret( + com.google.cloud.secretmanager.v1.CreateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void addSecretVersion( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void getSecret( + com.google.cloud.secretmanager.v1.GetSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecretMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void updateSecret( + com.google.cloud.secretmanager.v1.UpdateSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void deleteSecret( + com.google.cloud.secretmanager.v1.DeleteSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public void listSecretVersions( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void getSecretVersion( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public void accessSecretVersion( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public void disableSecretVersion( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public void enableSecretVersion( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public void destroySecretVersion( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecretManagerServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets( + com.google.cloud.secretmanager.v1.ListSecretsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecretsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret createSecret( + com.google.cloud.secretmanager.v1.CreateSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret getSecret( + com.google.cloud.secretmanager.v1.GetSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Secret updateSecret( + com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.protobuf.Empty deleteSecret( + com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVersions( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecretVersion( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Secret Manager Service
+   * Manages secrets and operations using those secrets. Implements a REST
+   * model with the following objects:
+   * * [Secret][google.cloud.secretmanager.v1.Secret]
+   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
+   * 
+ */ + public static final class SecretManagerServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecretManagerServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretManagerServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretManagerServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.ListSecretsResponse> + listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecretsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.Secret> + createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
+     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.Secret> + getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.Secret> + updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
+     * data.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse> + listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
+     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
+     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse> + accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + disableSecretVersion( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
+     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
+     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
+     * secret data.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.SecretVersion> + destroySecretVersion( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified secret. Replaces any
+     * existing policy.
+     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
+     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a secret.
+     * Returns empty policy if the secret exists and does not have a policy set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has for the specified secret.
+     * If the secret does not exist, this call returns an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_SECRETS = 0; + private static final int METHODID_CREATE_SECRET = 1; + private static final int METHODID_ADD_SECRET_VERSION = 2; + private static final int METHODID_GET_SECRET = 3; + private static final int METHODID_UPDATE_SECRET = 4; + private static final int METHODID_DELETE_SECRET = 5; + private static final int METHODID_LIST_SECRET_VERSIONS = 6; + private static final int METHODID_GET_SECRET_VERSION = 7; + private static final int METHODID_ACCESS_SECRET_VERSION = 8; + private static final int METHODID_DISABLE_SECRET_VERSION = 9; + private static final int METHODID_ENABLE_SECRET_VERSION = 10; + private static final int METHODID_DESTROY_SECRET_VERSION = 11; + private static final int METHODID_SET_IAM_POLICY = 12; + private static final int METHODID_GET_IAM_POLICY = 13; + private static final int METHODID_TEST_IAM_PERMISSIONS = 14; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecretManagerServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecretManagerServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_SECRETS: + serviceImpl.listSecrets( + (com.google.cloud.secretmanager.v1.ListSecretsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SECRET: + serviceImpl.createSecret( + (com.google.cloud.secretmanager.v1.CreateSecretRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_SECRET_VERSION: + serviceImpl.addSecretVersion( + (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SECRET: + serviceImpl.getSecret( + (com.google.cloud.secretmanager.v1.GetSecretRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SECRET: + serviceImpl.updateSecret( + (com.google.cloud.secretmanager.v1.UpdateSecretRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SECRET: + serviceImpl.deleteSecret( + (com.google.cloud.secretmanager.v1.DeleteSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SECRET_VERSIONS: + serviceImpl.listSecretVersions( + (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>) + responseObserver); + break; + case METHODID_GET_SECRET_VERSION: + serviceImpl.getSecretVersion( + (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ACCESS_SECRET_VERSION: + serviceImpl.accessSecretVersion( + (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>) + responseObserver); + break; + case METHODID_DISABLE_SECRET_VERSION: + serviceImpl.disableSecretVersion( + (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ENABLE_SECRET_VERSION: + serviceImpl.enableSecretVersion( + (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DESTROY_SECRET_VERSION: + serviceImpl.destroySecretVersion( + (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SecretManagerServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecretManagerServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecretManagerService"); + } + } + + private static final class SecretManagerServiceFileDescriptorSupplier + extends SecretManagerServiceBaseDescriptorSupplier { + SecretManagerServiceFileDescriptorSupplier() {} + } + + private static final class SecretManagerServiceMethodDescriptorSupplier + extends SecretManagerServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecretManagerServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecretManagerServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecretManagerServiceFileDescriptorSupplier()) + .addMethod(getListSecretsMethod()) + .addMethod(getCreateSecretMethod()) + .addMethod(getAddSecretVersionMethod()) + .addMethod(getGetSecretMethod()) + .addMethod(getUpdateSecretMethod()) + .addMethod(getDeleteSecretMethod()) + .addMethod(getListSecretVersionsMethod()) + .addMethod(getGetSecretVersionMethod()) + .addMethod(getAccessSecretVersionMethod()) + .addMethod(getDisableSecretVersionMethod()) + .addMethod(getEnableSecretVersionMethod()) + .addMethod(getDestroySecretVersionMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java deleted file mode 100644 index 85b27b0a..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceGrpc.java +++ /dev/null @@ -1,1615 +0,0 @@ -package com.google.cloud.secretmanager.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Secret Manager Service
- * Manages secrets and operations using those secrets. Implements a REST
- * model with the following objects:
- * * [Secret][google.cloud.secretmanager.v1.Secret]
- * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/secretmanager/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecretManagerServiceGrpc { - - private SecretManagerServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.secretmanager.v1.SecretManagerService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListSecretsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecrets", - requestType = com.google.cloud.secretmanager.v1.ListSecretsRequest.class, - responseType = com.google.cloud.secretmanager.v1.ListSecretsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSecretsMethod() { - io.grpc.MethodDescriptor getListSecretsMethod; - if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getListSecretsMethod = SecretManagerServiceGrpc.getListSecretsMethod) == null) { - SecretManagerServiceGrpc.getListSecretsMethod = getListSecretsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecrets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("ListSecrets")) - .build(); - } - } - } - return getListSecretsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSecret", - requestType = com.google.cloud.secretmanager.v1.CreateSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSecretMethod() { - io.grpc.MethodDescriptor getCreateSecretMethod; - if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getCreateSecretMethod = SecretManagerServiceGrpc.getCreateSecretMethod) == null) { - SecretManagerServiceGrpc.getCreateSecretMethod = getCreateSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("CreateSecret")) - .build(); - } - } - } - return getCreateSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getAddSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AddSecretVersion", - requestType = com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAddSecretVersionMethod() { - io.grpc.MethodDescriptor getAddSecretVersionMethod; - if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getAddSecretVersionMethod = SecretManagerServiceGrpc.getAddSecretVersionMethod) == null) { - SecretManagerServiceGrpc.getAddSecretVersionMethod = getAddSecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("AddSecretVersion")) - .build(); - } - } - } - return getAddSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecret", - requestType = com.google.cloud.secretmanager.v1.GetSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSecretMethod() { - io.grpc.MethodDescriptor getGetSecretMethod; - if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetSecretMethod = SecretManagerServiceGrpc.getGetSecretMethod) == null) { - SecretManagerServiceGrpc.getGetSecretMethod = getGetSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetSecret")) - .build(); - } - } - } - return getGetSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecret", - requestType = com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, - responseType = com.google.cloud.secretmanager.v1.Secret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSecretMethod() { - io.grpc.MethodDescriptor getUpdateSecretMethod; - if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getUpdateSecretMethod = SecretManagerServiceGrpc.getUpdateSecretMethod) == null) { - SecretManagerServiceGrpc.getUpdateSecretMethod = getUpdateSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("UpdateSecret")) - .build(); - } - } - } - return getUpdateSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSecret", - requestType = com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSecretMethod() { - io.grpc.MethodDescriptor getDeleteSecretMethod; - if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDeleteSecretMethod = SecretManagerServiceGrpc.getDeleteSecretMethod) == null) { - SecretManagerServiceGrpc.getDeleteSecretMethod = getDeleteSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DeleteSecret")) - .build(); - } - } - } - return getDeleteSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSecretVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSecretVersions", - requestType = com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, - responseType = com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSecretVersionsMethod() { - io.grpc.MethodDescriptor getListSecretVersionsMethod; - if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getListSecretVersionsMethod = SecretManagerServiceGrpc.getListSecretVersionsMethod) == null) { - SecretManagerServiceGrpc.getListSecretVersionsMethod = getListSecretVersionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSecretVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("ListSecretVersions")) - .build(); - } - } - } - return getListSecretVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSecretVersion", - requestType = com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSecretVersionMethod() { - io.grpc.MethodDescriptor getGetSecretVersionMethod; - if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetSecretVersionMethod = SecretManagerServiceGrpc.getGetSecretVersionMethod) == null) { - SecretManagerServiceGrpc.getGetSecretVersionMethod = getGetSecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetSecretVersion")) - .build(); - } - } - } - return getGetSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getAccessSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AccessSecretVersion", - requestType = com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAccessSecretVersionMethod() { - io.grpc.MethodDescriptor getAccessSecretVersionMethod; - if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getAccessSecretVersionMethod = SecretManagerServiceGrpc.getAccessSecretVersionMethod) == null) { - SecretManagerServiceGrpc.getAccessSecretVersionMethod = getAccessSecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AccessSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("AccessSecretVersion")) - .build(); - } - } - } - return getAccessSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDisableSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableSecretVersion", - requestType = com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDisableSecretVersionMethod() { - io.grpc.MethodDescriptor getDisableSecretVersionMethod; - if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDisableSecretVersionMethod = SecretManagerServiceGrpc.getDisableSecretVersionMethod) == null) { - SecretManagerServiceGrpc.getDisableSecretVersionMethod = getDisableSecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DisableSecretVersion")) - .build(); - } - } - } - return getDisableSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnableSecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableSecretVersion", - requestType = com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnableSecretVersionMethod() { - io.grpc.MethodDescriptor getEnableSecretVersionMethod; - if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getEnableSecretVersionMethod = SecretManagerServiceGrpc.getEnableSecretVersionMethod) == null) { - SecretManagerServiceGrpc.getEnableSecretVersionMethod = getEnableSecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableSecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("EnableSecretVersion")) - .build(); - } - } - } - return getEnableSecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDestroySecretVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DestroySecretVersion", - requestType = com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, - responseType = com.google.cloud.secretmanager.v1.SecretVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDestroySecretVersionMethod() { - io.grpc.MethodDescriptor getDestroySecretVersionMethod; - if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getDestroySecretVersionMethod = SecretManagerServiceGrpc.getDestroySecretVersionMethod) == null) { - SecretManagerServiceGrpc.getDestroySecretVersionMethod = getDestroySecretVersionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DestroySecretVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("DestroySecretVersion")) - .build(); - } - } - } - return getDestroySecretVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getSetIamPolicyMethod = SecretManagerServiceGrpc.getSetIamPolicyMethod) == null) { - SecretManagerServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getGetIamPolicyMethod = SecretManagerServiceGrpc.getGetIamPolicyMethod) == null) { - SecretManagerServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecretManagerServiceGrpc.class) { - if ((getTestIamPermissionsMethod = SecretManagerServiceGrpc.getTestIamPermissionsMethod) == null) { - SecretManagerServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecretManagerServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SecretManagerServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceStub(channel, callOptions); - } - }; - return SecretManagerServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecretManagerServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceBlockingStub(channel, callOptions); - } - }; - return SecretManagerServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SecretManagerServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecretManagerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceFutureStub(channel, callOptions); - } - }; - return SecretManagerServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static abstract class SecretManagerServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecretsMethod(), responseObserver); - } - - /** - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSecretMethod(), responseObserver); - } - - /** - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddSecretVersionMethod(), responseObserver); - } - - /** - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretMethod(), responseObserver); - } - - /** - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecretMethod(), responseObserver); - } - - /** - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSecretMethod(), responseObserver); - } - - /** - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public void listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSecretVersionsMethod(), responseObserver); - } - - /** - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSecretVersionMethod(), responseObserver); - } - - /** - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAccessSecretVersionMethod(), responseObserver); - } - - /** - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public void disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableSecretVersionMethod(), responseObserver); - } - - /** - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public void enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableSecretVersionMethod(), responseObserver); - } - - /** - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public void destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDestroySecretVersionMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListSecretsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.ListSecretsRequest, - com.google.cloud.secretmanager.v1.ListSecretsResponse>( - this, METHODID_LIST_SECRETS))) - .addMethod( - getCreateSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.CreateSecretRequest, - com.google.cloud.secretmanager.v1.Secret>( - this, METHODID_CREATE_SECRET))) - .addMethod( - getAddSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.AddSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_ADD_SECRET_VERSION))) - .addMethod( - getGetSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.GetSecretRequest, - com.google.cloud.secretmanager.v1.Secret>( - this, METHODID_GET_SECRET))) - .addMethod( - getUpdateSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.UpdateSecretRequest, - com.google.cloud.secretmanager.v1.Secret>( - this, METHODID_UPDATE_SECRET))) - .addMethod( - getDeleteSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DeleteSecretRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SECRET))) - .addMethod( - getListSecretVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest, - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse>( - this, METHODID_LIST_SECRET_VERSIONS))) - .addMethod( - getGetSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.GetSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_GET_SECRET_VERSION))) - .addMethod( - getAccessSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest, - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse>( - this, METHODID_ACCESS_SECRET_VERSION))) - .addMethod( - getDisableSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_DISABLE_SECRET_VERSION))) - .addMethod( - getEnableSecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_ENABLE_SECRET_VERSION))) - .addMethod( - getDestroySecretVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest, - com.google.cloud.secretmanager.v1.SecretVersion>( - this, METHODID_DESTROY_SECRET_VERSION))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceStub extends io.grpc.stub.AbstractAsyncStub { - private SecretManagerServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceStub(channel, callOptions); - } - - /** - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSecretsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public void listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public void accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public void disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public void enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public void destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SecretManagerServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.ListSecretsResponse listSecrets(com.google.cloud.secretmanager.v1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSecretsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret createSecret(com.google.cloud.secretmanager.v1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion addSecretVersion(com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAddSecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret getSecret(com.google.cloud.secretmanager.v1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.cloud.secretmanager.v1.Secret updateSecret(com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.protobuf.Empty deleteSecret(com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse listSecretVersions(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSecretVersionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion getSecretVersion(com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse accessSecretVersion(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAccessSecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion disableSecretVersion(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableSecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion enableSecretVersion(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableSecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public com.google.cloud.secretmanager.v1.SecretVersion destroySecretVersion(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDestroySecretVersionMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Secret Manager Service
-   * Manages secrets and operations using those secrets. Implements a REST
-   * model with the following objects:
-   * * [Secret][google.cloud.secretmanager.v1.Secret]
-   * * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
-   * 
- */ - public static final class SecretManagerServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private SecretManagerServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecretManagerServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecretManagerServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSecrets( - com.google.cloud.secretmanager.v1.ListSecretsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSecretsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSecret( - com.google.cloud.secretmanager.v1.CreateSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
-     * it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture addSecretVersion( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAddSecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSecret( - com.google.cloud.secretmanager.v1.GetSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSecret( - com.google.cloud.secretmanager.v1.UpdateSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSecret( - com.google.cloud.secretmanager.v1.DeleteSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret
-     * data.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSecretVersions( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSecretVersionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSecretVersion( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
-     * `projects/*/secrets/*/versions/latest` is an alias to the most recently
-     * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture accessSecretVersion( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAccessSecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture disableSecretVersion( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableSecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture enableSecretVersion( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableSecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
-     * Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to
-     * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the
-     * secret data.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture destroySecretVersion( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDestroySecretVersionMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified secret. Replaces any
-     * existing policy.
-     * Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according
-     * to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a secret.
-     * Returns empty policy if the secret exists and does not have a policy set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns permissions that a caller has for the specified secret.
-     * If the secret does not exist, this call returns an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SECRETS = 0; - private static final int METHODID_CREATE_SECRET = 1; - private static final int METHODID_ADD_SECRET_VERSION = 2; - private static final int METHODID_GET_SECRET = 3; - private static final int METHODID_UPDATE_SECRET = 4; - private static final int METHODID_DELETE_SECRET = 5; - private static final int METHODID_LIST_SECRET_VERSIONS = 6; - private static final int METHODID_GET_SECRET_VERSION = 7; - private static final int METHODID_ACCESS_SECRET_VERSION = 8; - private static final int METHODID_DISABLE_SECRET_VERSION = 9; - private static final int METHODID_ENABLE_SECRET_VERSION = 10; - private static final int METHODID_DESTROY_SECRET_VERSION = 11; - private static final int METHODID_SET_IAM_POLICY = 12; - private static final int METHODID_GET_IAM_POLICY = 13; - private static final int METHODID_TEST_IAM_PERMISSIONS = 14; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecretManagerServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecretManagerServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SECRETS: - serviceImpl.listSecrets((com.google.cloud.secretmanager.v1.ListSecretsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SECRET: - serviceImpl.createSecret((com.google.cloud.secretmanager.v1.CreateSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ADD_SECRET_VERSION: - serviceImpl.addSecretVersion((com.google.cloud.secretmanager.v1.AddSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SECRET: - serviceImpl.getSecret((com.google.cloud.secretmanager.v1.GetSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SECRET: - serviceImpl.updateSecret((com.google.cloud.secretmanager.v1.UpdateSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SECRET: - serviceImpl.deleteSecret((com.google.cloud.secretmanager.v1.DeleteSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SECRET_VERSIONS: - serviceImpl.listSecretVersions((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SECRET_VERSION: - serviceImpl.getSecretVersion((com.google.cloud.secretmanager.v1.GetSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACCESS_SECRET_VERSION: - serviceImpl.accessSecretVersion((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_SECRET_VERSION: - serviceImpl.disableSecretVersion((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_SECRET_VERSION: - serviceImpl.enableSecretVersion((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DESTROY_SECRET_VERSION: - serviceImpl.destroySecretVersion((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class SecretManagerServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecretManagerServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecretManagerService"); - } - } - - private static final class SecretManagerServiceFileDescriptorSupplier - extends SecretManagerServiceBaseDescriptorSupplier { - SecretManagerServiceFileDescriptorSupplier() {} - } - - private static final class SecretManagerServiceMethodDescriptorSupplier - extends SecretManagerServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecretManagerServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecretManagerServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecretManagerServiceFileDescriptorSupplier()) - .addMethod(getListSecretsMethod()) - .addMethod(getCreateSecretMethod()) - .addMethod(getAddSecretVersionMethod()) - .addMethod(getGetSecretMethod()) - .addMethod(getUpdateSecretMethod()) - .addMethod(getDeleteSecretMethod()) - .addMethod(getListSecretVersionsMethod()) - .addMethod(getGetSecretVersionMethod()) - .addMethod(getAccessSecretVersionMethod()) - .addMethod(getDisableSecretVersionMethod()) - .addMethod(getEnableSecretVersionMethod()) - .addMethod(getDestroySecretVersionMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java deleted file mode 100644 index ce532edd..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/service.proto - -package com.google.cloud.secretmanager.v1; - -public interface GetSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java deleted file mode 100644 index 23f6236e..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ /dev/null @@ -1,307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/resources.proto - -package com.google.cloud.secretmanager.v1; - -public final class ResourcesProto { - private ResourcesProto() {} - 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_secretmanager_v1_Secret_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Topic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/secretmanager/v1/resource" + - "s.proto\022\035google.cloud.secretmanager.v1\032\034" + - "google/api/annotations.proto\032\037google/api" + - "/field_behavior.proto\032\031google/api/resour" + - "ce.proto\032\036google/protobuf/duration.proto" + - "\032\037google/protobuf/timestamp.proto\"\336\004\n\006Se" + - "cret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\013replication\030\002" + - " \001(\0132*.google.cloud.secretmanager.v1.Rep" + - "licationB\006\340A\005\340A\002\0224\n\013create_time\030\003 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\003\022A\n\006labels" + - "\030\004 \003(\01321.google.cloud.secretmanager.v1.S" + - "ecret.LabelsEntry\0229\n\006topics\030\005 \003(\0132$.goog" + - "le.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n\013" + - "expire_time\030\006 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\001H\000\022-\n\003ttl\030\007 \001(\0132\031.google.proto" + - "buf.DurationB\003\340A\004H\000\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022>" + - "\n\010rotation\030\t \001(\0132\'.google.cloud.secretma" + - "nager.v1.RotationB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:M\352AJ\n#secr" + - "etmanager.googleapis.com/Secret\022#project" + - "s/{project}/secrets/{secret}B\014\n\nexpirati" + - "on\"\242\004\n\rSecretVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + - "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0225\n\014destroy_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022F\n\005state\030\004 " + - "\001(\01622.google.cloud.secretmanager.v1.Secr" + - "etVersion.StateB\003\340A\003\022L\n\022replication_stat" + - "us\030\005 \001(\01320.google.cloud.secretmanager.v1" + - ".ReplicationStatus\022\021\n\004etag\030\006 \001(\tB\003\340A\003\022.\n" + - "!client_specified_payload_checksum\030\007 \001(\010" + - "B\003\340A\003\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n" + - "\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003:" + - "n\352Ak\n*secretmanager.googleapis.com/Secre" + - "tVersion\022=projects/{project}/secrets/{se" + - "cret}/versions/{secret_version}\"\220\004\n\013Repl" + - "ication\022I\n\tautomatic\030\001 \001(\01324.google.clou" + - "d.secretmanager.v1.Replication.Automatic" + - "H\000\022N\n\014user_managed\030\002 \001(\01326.google.cloud." + - "secretmanager.v1.Replication.UserManaged" + - "H\000\032o\n\tAutomatic\022b\n\033customer_managed_encr" + - "yption\030\001 \001(\01328.google.cloud.secretmanage" + - "r.v1.CustomerManagedEncryptionB\003\340A\001\032\345\001\n\013" + - "UserManaged\022U\n\010replicas\030\001 \003(\0132>.google.c" + - "loud.secretmanager.v1.Replication.UserMa" + - "naged.ReplicaB\003\340A\002\032\177\n\007Replica\022\020\n\010locatio" + - "n\030\001 \001(\t\022b\n\033customer_managed_encryption\030\002" + - " \001(\01328.google.cloud.secretmanager.v1.Cus" + - "tomerManagedEncryptionB\003\340A\001B\r\n\013replicati" + - "on\"6\n\031CustomerManagedEncryption\022\031\n\014kms_k" + - "ey_name\030\001 \001(\tB\003\340A\002\"\353\004\n\021ReplicationStatus" + - "\022U\n\tautomatic\030\001 \001(\0132@.google.cloud.secre" + - "tmanager.v1.ReplicationStatus.AutomaticS" + - "tatusH\000\022Z\n\014user_managed\030\002 \001(\0132B.google.c" + - "loud.secretmanager.v1.ReplicationStatus." + - "UserManagedStatusH\000\032{\n\017AutomaticStatus\022h" + - "\n\033customer_managed_encryption\030\001 \001(\0132>.go" + - "ogle.cloud.secretmanager.v1.CustomerMana" + - "gedEncryptionStatusB\003\340A\003\032\217\002\n\021UserManaged" + - "Status\022g\n\010replicas\030\001 \003(\0132P.google.cloud." + - "secretmanager.v1.ReplicationStatus.UserM" + - "anagedStatus.ReplicaStatusB\003\340A\003\032\220\001\n\rRepl" + - "icaStatus\022\025\n\010location\030\001 \001(\tB\003\340A\003\022h\n\033cust" + - "omer_managed_encryption\030\002 \001(\0132>.google.c" + - "loud.secretmanager.v1.CustomerManagedEnc" + - "ryptionStatusB\003\340A\003B\024\n\022replication_status" + - "\"D\n\037CustomerManagedEncryptionStatus\022!\n\024k" + - "ms_key_version_name\030\001 \001(\tB\003\340A\002\"_\n\005Topic\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\002:C\352A@\n\033pubsub.googleap" + - "is.com/Topic\022!projects/{project}/topics/" + - "{topic}\"\200\001\n\010Rotation\022;\n\022next_rotation_ti" + - "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\001\0227\n\017rotation_period\030\002 \001(\0132\031.google.prot" + - "obuf.DurationB\003\340A\004\"L\n\rSecretPayload\022\014\n\004d" + - "ata\030\001 \001(\014\022\035\n\013data_crc32c\030\002 \001(\003B\003\340A\001H\000\210\001\001" + - "B\016\n\014_data_crc32cB\355\001\n!com.google.cloud.se" + - "cretmanager.v1B\016ResourcesProtoP\001ZJgoogle" + - ".golang.org/genproto/googleapis/cloud/se" + - "cretmanager/v1;secretmanager\370\001\001\242\002\003GSM\252\002\035" + - "Google.Cloud.SecretManager.V1\312\002\035Google\\C" + - "loud\\SecretManager\\V1\352\002 Google::Cloud::S" + - "ecretManager::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_secretmanager_v1_Secret_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Secret_descriptor, - new java.lang.String[] { "Name", "Replication", "CreateTime", "Labels", "Topics", "ExpireTime", "Ttl", "Etag", "Rotation", "Expiration", }); - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = - internal_static_google_cloud_secretmanager_v1_Secret_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor, - new java.lang.String[] { "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum", }); - internal_static_google_cloud_secretmanager_v1_Replication_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_descriptor, - new java.lang.String[] { "Automatic", "UserManaged", "Replication", }); - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor, - new java.lang.String[] { "CustomerManagedEncryption", }); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor, - new java.lang.String[] { "Replicas", }); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor = - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor, - new java.lang.String[] { "Location", "CustomerManagedEncryption", }); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor, - new java.lang.String[] { "KmsKeyName", }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor, - new java.lang.String[] { "Automatic", "UserManaged", "ReplicationStatus", }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor, - new java.lang.String[] { "CustomerManagedEncryption", }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor, - new java.lang.String[] { "Replicas", }); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor = - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor, - new java.lang.String[] { "Location", "CustomerManagedEncryption", }); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor, - new java.lang.String[] { "KmsKeyVersionName", }); - internal_static_google_cloud_secretmanager_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Topic_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_Rotation_descriptor, - new java.lang.String[] { "NextRotationTime", "RotationPeriod", }); - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor, - new java.lang.String[] { "Data", "DataCrc32C", "DataCrc32C", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java deleted file mode 100644 index 79da8584..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java +++ /dev/null @@ -1,360 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/secretmanager/v1/service.proto - -package com.google.cloud.secretmanager.v1; - -public final class ServiceProto { - private ServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/secretmanager/v1/service." + - "proto\022\035google.cloud.secretmanager.v1\032\034go" + - "ogle/api/annotations.proto\032\027google/api/c" + - "lient.proto\032\037google/api/field_behavior.p" + - "roto\032\031google/api/resource.proto\032-google/" + - "cloud/secretmanager/v1/resources.proto\032\036" + - "google/iam/v1/iam_policy.proto\032\032google/i" + - "am/v1/policy.proto\032\033google/protobuf/empt" + - "y.proto\032 google/protobuf/field_mask.prot" + - "o\"\237\001\n\022ListSecretsRequest\022C\n\006parent\030\001 \001(\t" + - "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + - "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + - "\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003" + - "\340A\001\"z\n\023ListSecretsResponse\0226\n\007secrets\030\001 " + - "\003(\0132%.google.cloud.secretmanager.v1.Secr" + - "et\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_siz" + - "e\030\003 \001(\005\"\256\001\n\023CreateSecretRequest\022C\n\006paren" + - "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + - "ogleapis.com/Project\022\026\n\tsecret_id\030\002 \001(\tB" + - "\003\340A\002\022:\n\006secret\030\003 \001(\0132%.google.cloud.secr" + - "etmanager.v1.SecretB\003\340A\002\"\232\001\n\027AddSecretVe" + - "rsionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#se" + - "cretmanager.googleapis.com/Secret\022B\n\007pay" + - "load\030\002 \001(\0132,.google.cloud.secretmanager." + - "v1.SecretPayloadB\003\340A\002\"M\n\020GetSecretReques" + - "t\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#secretmanager.g" + - "oogleapis.com/Secret\"\236\001\n\031ListSecretVersi" + - "onsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#secr" + - "etmanager.googleapis.com/Secret\022\026\n\tpage_" + - "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + - "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\211\001\n\032ListSecretVers" + - "ionsResponse\022>\n\010versions\030\001 \003(\0132,.google." + - "cloud.secretmanager.v1.SecretVersion\022\027\n\017" + - "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" + - "\005\"[\n\027GetSecretVersionRequest\022@\n\004name\030\001 \001" + - "(\tB2\340A\002\372A,\n*secretmanager.googleapis.com" + - "/SecretVersion\"\207\001\n\023UpdateSecretRequest\022:" + - "\n\006secret\030\001 \001(\0132%.google.cloud.secretmana" + - "ger.v1.SecretB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\002\"^\n\032Acce" + - "ssSecretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A" + - "\002\372A,\n*secretmanager.googleapis.com/Secre" + - "tVersion\"\233\001\n\033AccessSecretVersionResponse" + - "\022=\n\004name\030\001 \001(\tB/\372A,\n*secretmanager.googl" + - "eapis.com/SecretVersion\022=\n\007payload\030\002 \001(\013" + - "2,.google.cloud.secretmanager.v1.SecretP" + - "ayload\"c\n\023DeleteSecretRequest\0229\n\004name\030\001 " + - "\001(\tB+\340A\002\372A%\n#secretmanager.googleapis.co" + - "m/Secret\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DisableSe" + - "cretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + - "\n*secretmanager.googleapis.com/SecretVer" + - "sion\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"q\n\032EnableSecretV" + - "ersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*sec" + - "retmanager.googleapis.com/SecretVersion\022" + - "\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DestroySecretVersi" + - "onRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*secretm" + - "anager.googleapis.com/SecretVersion\022\021\n\004e" + - "tag\030\002 \001(\tB\003\340A\0012\317\025\n\024SecretManagerService\022" + - "\246\001\n\013ListSecrets\0221.google.cloud.secretman" + - "ager.v1.ListSecretsRequest\0322.google.clou" + - "d.secretmanager.v1.ListSecretsResponse\"0" + - "\202\323\344\223\002!\022\037/v1/{parent=projects/*}/secrets\332" + - "A\006parent\022\264\001\n\014CreateSecret\0222.google.cloud" + - ".secretmanager.v1.CreateSecretRequest\032%." + - "google.cloud.secretmanager.v1.Secret\"I\202\323" + - "\344\223\002)\"\037/v1/{parent=projects/*}/secrets:\006s" + - "ecret\332A\027parent,secret_id,secret\022\302\001\n\020AddS" + - "ecretVersion\0226.google.cloud.secretmanage" + - "r.v1.AddSecretVersionRequest\032,.google.cl" + - "oud.secretmanager.v1.SecretVersion\"H\202\323\344\223" + - "\0021\",/v1/{parent=projects/*/secrets/*}:ad" + - "dVersion:\001*\332A\016parent,payload\022\223\001\n\tGetSecr" + - "et\022/.google.cloud.secretmanager.v1.GetSe" + - "cretRequest\032%.google.cloud.secretmanager" + - ".v1.Secret\".\202\323\344\223\002!\022\037/v1/{name=projects/*" + - "/secrets/*}\332A\004name\022\266\001\n\014UpdateSecret\0222.go" + - "ogle.cloud.secretmanager.v1.UpdateSecret" + - "Request\032%.google.cloud.secretmanager.v1." + - "Secret\"K\202\323\344\223\00202&/v1/{secret.name=project" + - "s/*/secrets/*}:\006secret\332A\022secret,update_m" + - "ask\022\212\001\n\014DeleteSecret\0222.google.cloud.secr" + - "etmanager.v1.DeleteSecretRequest\032\026.googl" + - "e.protobuf.Empty\".\202\323\344\223\002!*\037/v1/{name=proj" + - "ects/*/secrets/*}\332A\004name\022\306\001\n\022ListSecretV" + - "ersions\0228.google.cloud.secretmanager.v1." + - "ListSecretVersionsRequest\0329.google.cloud" + - ".secretmanager.v1.ListSecretVersionsResp" + - "onse\";\202\323\344\223\002,\022*/v1/{parent=projects/*/sec" + - "rets/*}/versions\332A\006parent\022\263\001\n\020GetSecretV" + - "ersion\0226.google.cloud.secretmanager.v1.G" + - "etSecretVersionRequest\032,.google.cloud.se" + - "cretmanager.v1.SecretVersion\"9\202\323\344\223\002,\022*/v" + - "1/{name=projects/*/secrets/*/versions/*}" + - "\332A\004name\022\316\001\n\023AccessSecretVersion\0229.google" + - ".cloud.secretmanager.v1.AccessSecretVers" + - "ionRequest\032:.google.cloud.secretmanager." + - "v1.AccessSecretVersionResponse\"@\202\323\344\223\0023\0221" + - "/v1/{name=projects/*/secrets/*/versions/" + - "*}:access\332A\004name\022\306\001\n\024DisableSecretVersio" + - "n\022:.google.cloud.secretmanager.v1.Disabl" + - "eSecretVersionRequest\032,.google.cloud.sec" + - "retmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1" + - "/{name=projects/*/secrets/*/versions/*}:" + - "disable:\001*\332A\004name\022\303\001\n\023EnableSecretVersio" + - "n\0229.google.cloud.secretmanager.v1.Enable" + - "SecretVersionRequest\032,.google.cloud.secr" + - "etmanager.v1.SecretVersion\"C\202\323\344\223\0026\"1/v1/" + - "{name=projects/*/secrets/*/versions/*}:e" + - "nable:\001*\332A\004name\022\306\001\n\024DestroySecretVersion" + - "\022:.google.cloud.secretmanager.v1.Destroy" + - "SecretVersionRequest\032,.google.cloud.secr" + - "etmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1/" + - "{name=projects/*/secrets/*/versions/*}:d" + - "estroy:\001*\332A\004name\022\206\001\n\014SetIamPolicy\022\".goog" + - "le.iam.v1.SetIamPolicyRequest\032\025.google.i" + - "am.v1.Policy\";\202\323\344\223\0025\"0/v1/{resource=proj" + - "ects/*/secrets/*}:setIamPolicy:\001*\022\203\001\n\014Ge" + - "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + - "equest\032\025.google.iam.v1.Policy\"8\202\323\344\223\0022\0220/" + - "v1/{resource=projects/*/secrets/*}:getIa" + - "mPolicy\022\254\001\n\022TestIamPermissions\022(.google." + - "iam.v1.TestIamPermissionsRequest\032).googl" + - "e.iam.v1.TestIamPermissionsResponse\"A\202\323\344" + - "\223\002;\"6/v1/{resource=projects/*/secrets/*}" + - ":testIamPermissions:\001*\032P\312A\034secretmanager" + - ".googleapis.com\322A.https://www.googleapis" + - ".com/auth/cloud-platformB\353\001\n!com.google." + - "cloud.secretmanager.v1B\014ServiceProtoP\001ZJ" + - "google.golang.org/genproto/googleapis/cl" + - "oud/secretmanager/v1;secretmanager\370\001\001\242\002\003" + - "GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Go" + - "ogle\\Cloud\\SecretManager\\V1\352\002 Google::Cl" + - "oud::SecretManager::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.secretmanager.v1.ResourcesProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor, - new java.lang.String[] { "Secrets", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor, - new java.lang.String[] { "Parent", "SecretId", "Secret", }); - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor, - new java.lang.String[] { "Parent", "Payload", }); - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor, - new java.lang.String[] { "Versions", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor, - new java.lang.String[] { "Secret", "UpdateMask", }); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor, - new java.lang.String[] { "Name", "Payload", }); - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - 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.secretmanager.v1.ResourcesProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java index 98bf92d3..3e8c58fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionRequest} */ -public final class AccessSecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AccessSecretVersionRequest) AccessSecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessSecretVersionRequest.newBuilder() to construct. private AccessSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessSecretVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private AccessSecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -101,7 +123,10 @@ private AccessSecretVersionRequest(
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,14 +135,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -125,17 +151,18 @@ public java.lang.String getName() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,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_); } @@ -180,15 +207,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.secretmanager.v1.AccessSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other = (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other = + (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseFrom( 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.secretmanager.v1.AccessSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest 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.secretmanager.v1.AccessSecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AccessSecretVersionRequest) com.google.cloud.secretmanager.v1.AccessSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.AccessSecretVersionRequest result = new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.AccessSecretVersionRequest result = + new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AccessSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.AccessSecretVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.AccessSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -458,14 +502,16 @@ public Builder mergeFrom(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -474,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -481,16 +529,17 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -498,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -505,21 +556,25 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -527,16 +582,21 @@ public Builder setName(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -544,24 +604,26 @@ public Builder clearName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +633,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AccessSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AccessSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.AccessSecretVersionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.AccessSecretVersionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AccessSecretVersionRequest(); } @@ -585,16 +648,16 @@ public static com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -609,6 +672,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.AccessSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java index 87435fac..21674fa3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AccessSecretVersionRequestOrBuilder extends +public interface AccessSecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AccessSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -15,11 +33,16 @@ public interface AccessSecretVersionRequestOrBuilder extends
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -27,9 +50,11 @@ public interface AccessSecretVersionRequestOrBuilder extends
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java index 79e4d74a..b1f0b05e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionResponse} */ -public final class AccessSecretVersionResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AccessSecretVersionResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AccessSecretVersionResponse) AccessSecretVersionResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessSecretVersionResponse.newBuilder() to construct. private AccessSecretVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessSecretVersionResponse() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessSecretVersionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessSecretVersionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,75 @@ private AccessSecretVersionResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); + name_ = s; + break; } - payload_ = input.readMessage(com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -121,30 +147,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -155,11 +181,14 @@ public java.lang.String getName() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.SecretPayload payload_; /** + * + * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return Whether the payload field is set. */ @java.lang.Override @@ -167,18 +196,25 @@ public boolean hasPayload() { return payload_ != null; } /** + * + * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return The payload. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { - return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } /** + * + * *
    * Secret payload
    * 
@@ -191,6 +227,7 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +239,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_); } @@ -223,8 +259,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +269,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.AccessSecretVersionResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other = (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) obj; + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other = + (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; + if (!getPayload().equals(other.getPayload())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,117 +305,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseFrom( 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.secretmanager.v1.AccessSecretVersionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse 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.secretmanager.v1.AccessSecretVersionResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AccessSecretVersionResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AccessSecretVersionResponse) com.google.cloud.secretmanager.v1.AccessSecretVersionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.class, + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.newBuilder() @@ -389,16 +433,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,13 +457,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance(); } @@ -435,7 +479,8 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse buildPartial() { - com.google.cloud.secretmanager.v1.AccessSecretVersionResponse result = new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(this); + com.google.cloud.secretmanager.v1.AccessSecretVersionResponse result = + new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(this); result.name_ = name_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -450,38 +495,39 @@ public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionResponse)other); + return mergeFrom((com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) other); } else { super.mergeFrom(other); return this; @@ -489,7 +535,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AccessSecretVersionResponse other) { - if (other == com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.AccessSecretVersionResponse.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -516,7 +564,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.AccessSecretVersionResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,19 +578,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -549,21 +601,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -571,57 +624,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -629,34 +689,47 @@ public Builder setNameBytes( private com.google.cloud.secretmanager.v1.SecretPayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> payloadBuilder_; + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Secret payload
      * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** + * + * *
      * Secret payload
      * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return The payload. */ public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } else { return payloadBuilder_.getMessage(); } } /** + * + * *
      * Secret payload
      * 
@@ -677,6 +750,8 @@ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) return this; } /** + * + * *
      * Secret payload
      * 
@@ -695,6 +770,8 @@ public Builder setPayload( return this; } /** + * + * *
      * Secret payload
      * 
@@ -705,7 +782,9 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -717,6 +796,8 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu return this; } /** + * + * *
      * Secret payload
      * 
@@ -735,6 +816,8 @@ public Builder clearPayload() { return this; } /** + * + * *
      * Secret payload
      * 
@@ -742,11 +825,13 @@ public Builder clearPayload() { * .google.cloud.secretmanager.v1.SecretPayload payload = 2; */ public com.google.cloud.secretmanager.v1.SecretPayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * Secret payload
      * 
@@ -757,11 +842,14 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null ? - com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } } /** + * + * *
      * Secret payload
      * 
@@ -769,21 +857,24 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil * .google.cloud.secretmanager.v1.SecretPayload payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( + getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } + @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 +884,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AccessSecretVersionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AccessSecretVersionResponse) - private static final com.google.cloud.secretmanager.v1.AccessSecretVersionResponse DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.AccessSecretVersionResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AccessSecretVersionResponse(); } @@ -807,16 +899,16 @@ public static com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSecretVersionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessSecretVersionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSecretVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessSecretVersionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +923,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.AccessSecretVersionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java index 521b0192..843c92e4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AccessSecretVersionResponseOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AccessSecretVersionResponseOrBuilder extends +public interface AccessSecretVersionResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AccessSecretVersionResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return Whether the payload field is set. */ boolean hasPayload(); /** + * + * *
    * Secret payload
    * 
* * .google.cloud.secretmanager.v1.SecretPayload payload = 2; + * * @return The payload. */ com.google.cloud.secretmanager.v1.SecretPayload getPayload(); /** + * + * *
    * Secret payload
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java index 99ff1e09..9d291314 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AddSecretVersionRequest} */ -public final class AddSecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AddSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.AddSecretVersionRequest) AddSecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AddSecretVersionRequest.newBuilder() to construct. private AddSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AddSecretVersionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AddSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AddSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,77 @@ private AddSecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); + parent_ = s; + break; } - payload_ = input.readMessage(com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.SecretPayload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.secretmanager.v1.SecretPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -121,30 +149,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -155,11 +185,16 @@ public java.lang.String getParent() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.SecretPayload payload_; /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ @java.lang.Override @@ -167,23 +202,34 @@ public boolean hasPayload() { return payload_ != null; } /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { - return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder() { @@ -191,6 +237,7 @@ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +249,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_); } @@ -223,8 +269,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +279,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.AddSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.AddSecretVersionRequest other = (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.AddSecretVersionRequest other = + (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; + if (!getPayload().equals(other.getPayload())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,117 +315,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseFrom( 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.secretmanager.v1.AddSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest 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.secretmanager.v1.AddSecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.AddSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.AddSecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.AddSecretVersionRequest) com.google.cloud.secretmanager.v1.AddSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.AddSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.AddSecretVersionRequest.newBuilder() @@ -389,16 +443,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; } @java.lang.Override @@ -435,7 +488,8 @@ public com.google.cloud.secretmanager.v1.AddSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.AddSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.AddSecretVersionRequest result = new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.AddSecretVersionRequest result = + new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(this); result.parent_ = parent_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -450,38 +504,39 @@ public com.google.cloud.secretmanager.v1.AddSecretVersionRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.AddSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.AddSecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.AddSecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -489,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.AddSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.AddSecretVersionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -516,7 +572,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.AddSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,19 +585,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -549,21 +610,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -571,57 +635,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
      * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -629,39 +706,58 @@ public Builder setParentBytes( private com.google.cloud.secretmanager.v1.SecretPayload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> payloadBuilder_; + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ public com.google.cloud.secretmanager.v1.SecretPayload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } else { return payloadBuilder_.getMessage(); } } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) { if (payloadBuilder_ == null) { @@ -677,11 +773,15 @@ public Builder setPayload(com.google.cloud.secretmanager.v1.SecretPayload value) return this; } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPayload( com.google.cloud.secretmanager.v1.SecretPayload.Builder builderForValue) { @@ -695,17 +795,23 @@ public Builder setPayload( return this; } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.SecretPayload.newBuilder(payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -717,11 +823,15 @@ public Builder mergePayload(com.google.cloud.secretmanager.v1.SecretPayload valu return this; } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPayload() { if (payloadBuilder_ == null) { @@ -735,55 +845,71 @@ public Builder clearPayload() { return this; } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.SecretPayload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null ? - com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance() + : payload_; } } /** + * + * *
      * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretPayload, com.google.cloud.secretmanager.v1.SecretPayload.Builder, com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.SecretPayload, + com.google.cloud.secretmanager.v1.SecretPayload.Builder, + com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder>( + getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } + @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 +919,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.AddSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.AddSecretVersionRequest) private static final com.google.cloud.secretmanager.v1.AddSecretVersionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.AddSecretVersionRequest(); } @@ -807,16 +933,16 @@ public static com.google.cloud.secretmanager.v1.AddSecretVersionRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.AddSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java index dd960356..3cdf1e33 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/AddSecretVersionRequestOrBuilder.java @@ -1,58 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface AddSecretVersionRequestOrBuilder extends +public interface AddSecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.AddSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to associate with the
    * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the payload field is set. */ boolean hasPayload(); /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The payload. */ com.google.cloud.secretmanager.v1.SecretPayload getPayload(); /** + * + * *
    * Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder getPayloadOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java index 2608884f..bf0e0f0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1.SecretManagerService.CreateSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CreateSecretRequest} */ -public final class CreateSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSecretRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CreateSecretRequest) CreateSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSecretRequest.newBuilder() to construct. private CreateSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSecretRequest() { parent_ = ""; secretId_ = ""; @@ -26,16 +44,15 @@ private CreateSecretRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,72 +71,84 @@ private CreateSecretRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - secretId_ = s; - break; - } - case 26: { - com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; - if (secret_ != null) { - subBuilder = secret_.toBuilder(); + parent_ = s; + break; } - secret_ = input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secret_); - secret_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + secretId_ = s; + break; } + case 26: + { + com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; + if (secret_ != null) { + subBuilder = secret_.toBuilder(); + } + secret_ = + input.readMessage( + com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secret_); + secret_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CreateSecretRequest.class, com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.CreateSecretRequest.class, + com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -128,30 +157,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -162,6 +193,8 @@ public java.lang.String getParent() { public static final int SECRET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object secretId_; /** + * + * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -170,6 +203,7 @@ public java.lang.String getParent() {
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secretId. */ @java.lang.Override @@ -178,14 +212,15 @@ public java.lang.String getSecretId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; } } /** + * + * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -194,16 +229,15 @@ public java.lang.String getSecretId() {
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for secretId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretIdBytes() { + public com.google.protobuf.ByteString getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretId_ = b; return b; } else { @@ -214,11 +248,16 @@ public java.lang.String getSecretId() { public static final int SECRET_FIELD_NUMBER = 3; private com.google.cloud.secretmanager.v1.Secret secret_; /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ @java.lang.Override @@ -226,23 +265,34 @@ public boolean hasSecret() { return secret_ != null; } /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Secret getSecret() { - return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { @@ -250,6 +300,7 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +312,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -288,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretId_); } if (secret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSecret()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecret()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,21 +348,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.secretmanager.v1.CreateSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CreateSecretRequest other = (com.google.cloud.secretmanager.v1.CreateSecretRequest) obj; + com.google.cloud.secretmanager.v1.CreateSecretRequest other = + (com.google.cloud.secretmanager.v1.CreateSecretRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSecretId() - .equals(other.getSecretId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSecretId().equals(other.getSecretId())) return false; if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { - if (!getSecret() - .equals(other.getSecret())) return false; + if (!getSecret().equals(other.getSecret())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,117 +387,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseFrom( 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.secretmanager.v1.CreateSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CreateSecretRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest 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.secretmanager.v1.CreateSecretRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.CreateSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1.SecretManagerService.CreateSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CreateSecretRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CreateSecretRequest) com.google.cloud.secretmanager.v1.CreateSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CreateSecretRequest.class, com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.CreateSecretRequest.class, + com.google.cloud.secretmanager.v1.CreateSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.CreateSecretRequest.newBuilder() @@ -458,16 +515,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +541,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; } @java.lang.Override @@ -506,7 +562,8 @@ public com.google.cloud.secretmanager.v1.CreateSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.CreateSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.CreateSecretRequest result = new com.google.cloud.secretmanager.v1.CreateSecretRequest(this); + com.google.cloud.secretmanager.v1.CreateSecretRequest result = + new com.google.cloud.secretmanager.v1.CreateSecretRequest(this); result.parent_ = parent_; result.secretId_ = secretId_; if (secretBuilder_ == null) { @@ -522,38 +579,39 @@ public com.google.cloud.secretmanager.v1.CreateSecretRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.CreateSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.CreateSecretRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.CreateSecretRequest) other); } else { super.mergeFrom(other); return this; @@ -561,7 +619,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.CreateSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.CreateSecretRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -592,7 +651,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.CreateSecretRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.CreateSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,19 +664,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,21 +689,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -647,57 +714,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project to associate with the
      * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -705,6 +785,8 @@ public Builder setParentBytes( private java.lang.Object secretId_ = ""; /** + * + * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -713,13 +795,13 @@ public Builder setParentBytes(
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secretId. */ public java.lang.String getSecretId() { java.lang.Object ref = secretId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretId_ = s; return s; @@ -728,6 +810,8 @@ public java.lang.String getSecretId() { } } /** + * + * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -736,15 +820,14 @@ public java.lang.String getSecretId() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for secretId. */ - public com.google.protobuf.ByteString - getSecretIdBytes() { + public com.google.protobuf.ByteString getSecretIdBytes() { java.lang.Object ref = secretId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretId_ = b; return b; } else { @@ -752,6 +835,8 @@ public java.lang.String getSecretId() { } } /** + * + * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -760,20 +845,22 @@ public java.lang.String getSecretId() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The secretId to set. * @return This builder for chaining. */ - public Builder setSecretId( - java.lang.String value) { + public Builder setSecretId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretId_ = value; onChanged(); return this; } /** + * + * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -782,15 +869,18 @@ public Builder setSecretId(
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSecretId() { - + secretId_ = getDefaultInstance().getSecretId(); onChanged(); return this; } /** + * + * *
      * Required. This must be unique within the project.
      * A secret ID is a string with a maximum length of 255 characters and can
@@ -799,16 +889,16 @@ public Builder clearSecretId() {
      * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for secretId to set. * @return This builder for chaining. */ - public Builder setSecretIdBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretId_ = value; onChanged(); return this; @@ -816,39 +906,58 @@ public Builder setSecretIdBytes( private com.google.cloud.secretmanager.v1.Secret secret_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretBuilder_; + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder> + secretBuilder_; /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ public boolean hasSecret() { return secretBuilder_ != null || secret_ != null; } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ public com.google.cloud.secretmanager.v1.Secret getSecret() { if (secretBuilder_ == null) { - return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } else { return secretBuilder_.getMessage(); } } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { @@ -864,14 +973,17 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSecret( - com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { + public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); @@ -882,17 +994,23 @@ public Builder setSecret( return this; } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { if (secret_ != null) { secret_ = - com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_) + .mergeFrom(value) + .buildPartial(); } else { secret_ = value; } @@ -904,11 +1022,15 @@ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecret() { if (secretBuilder_ == null) { @@ -922,55 +1044,71 @@ public Builder clearSecret() { return this; } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretBuilder() { - + onChanged(); return getSecretFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { - return secret_ == null ? - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } } /** + * + * *
      * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { - secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>( - getSecret(), - getParentForChildren(), - isClean()); + secretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder>( + getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } + @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); } @@ -980,12 +1118,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CreateSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CreateSecretRequest) private static final com.google.cloud.secretmanager.v1.CreateSecretRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CreateSecretRequest(); } @@ -994,16 +1132,16 @@ public static com.google.cloud.secretmanager.v1.CreateSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1018,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.CreateSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java index 36bb1482..71ded326 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateSecretRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface CreateSecretRequestOrBuilder extends +public interface CreateSecretRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CreateSecretRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project to associate with the
    * [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -38,10 +65,13 @@ public interface CreateSecretRequestOrBuilder extends
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secretId. */ java.lang.String getSecretId(); /** + * + * *
    * Required. This must be unique within the project.
    * A secret ID is a string with a maximum length of 255 characters and can
@@ -50,35 +80,49 @@ public interface CreateSecretRequestOrBuilder extends
    * 
* * string secret_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for secretId. */ - com.google.protobuf.ByteString - getSecretIdBytes(); + com.google.protobuf.ByteString getSecretIdBytes(); /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ boolean hasSecret(); /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ com.google.cloud.secretmanager.v1.Secret getSecret(); /** + * + * *
    * Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java index 5cbb2c48..8855b155 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryption.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Configuration for encrypting secret payloads using customer-managed
  * encryption keys (CMEK).
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryption}
  */
-public final class CustomerManagedEncryption extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomerManagedEncryption extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CustomerManagedEncryption)
     CustomerManagedEncryptionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomerManagedEncryption.newBuilder() to construct.
   private CustomerManagedEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomerManagedEncryption() {
     kmsKeyName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomerManagedEncryption();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomerManagedEncryption(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,47 +71,52 @@ private CustomerManagedEncryption(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kmsKeyName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              kmsKeyName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
+            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class,
+            com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
   }
 
   public static final int KMS_KEY_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object kmsKeyName_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -107,6 +129,7 @@ private CustomerManagedEncryption(
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -115,14 +138,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -135,16 +159,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -153,6 +176,7 @@ public java.lang.String getKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_); } @@ -189,15 +212,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryption)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CustomerManagedEncryption other = (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) obj; + com.google.cloud.secretmanager.v1.CustomerManagedEncryption other = + (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) obj; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -217,96 +240,104 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseFrom( 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.secretmanager.v1.CustomerManagedEncryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption 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.secretmanager.v1.CustomerManagedEncryption prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption 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; } /** + * + * *
    * Configuration for encrypting secret payloads using customer-managed
    * encryption keys (CMEK).
@@ -314,21 +345,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryption}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CustomerManagedEncryption)
       com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.class,
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder()
@@ -336,16 +369,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,9 +387,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor;
     }
 
     @java.lang.Override
@@ -376,7 +408,8 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.CustomerManagedEncryption buildPartial() {
-      com.google.cloud.secretmanager.v1.CustomerManagedEncryption result = new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(this);
+      com.google.cloud.secretmanager.v1.CustomerManagedEncryption result =
+          new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(this);
       result.kmsKeyName_ = kmsKeyName_;
       onBuilt();
       return result;
@@ -386,38 +419,39 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryption) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryption)other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryption) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -425,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.secretmanager.v1.CustomerManagedEncryption other) {
-      if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance()) return this;
+      if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance())
+        return this;
       if (!other.getKmsKeyName().isEmpty()) {
         kmsKeyName_ = other.kmsKeyName_;
         onChanged();
@@ -449,7 +484,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.secretmanager.v1.CustomerManagedEncryption) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -461,6 +497,8 @@ public Builder mergeFrom(
 
     private java.lang.Object kmsKeyName_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -473,13 +511,13 @@ public Builder mergeFrom(
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -488,6 +526,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -500,15 +540,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -516,6 +555,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -528,20 +569,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -554,15 +597,18 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
      * payloads.
@@ -575,23 +621,23 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +647,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CustomerManagedEncryption) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CustomerManagedEncryption) private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryption DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CustomerManagedEncryption(); } @@ -615,16 +661,16 @@ public static com.google.cloud.secretmanager.v1.CustomerManagedEncryption getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerManagedEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomerManagedEncryption(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerManagedEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerManagedEncryption(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,6 +685,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java index e80bec8d..726412bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface CustomerManagedEncryptionOrBuilder extends +public interface CustomerManagedEncryptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CustomerManagedEncryption) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -20,10 +38,13 @@ public interface CustomerManagedEncryptionOrBuilder extends
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
    * payloads.
@@ -36,8 +57,8 @@ public interface CustomerManagedEncryptionOrBuilder extends
    * 
* * string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java index 40bb19be..df8702fc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatus.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Describes the status of customer-managed encryption.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus} */ -public final class CustomerManagedEncryptionStatus extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomerManagedEncryptionStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) CustomerManagedEncryptionStatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomerManagedEncryptionStatus.newBuilder() to construct. - private CustomerManagedEncryptionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CustomerManagedEncryptionStatus( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomerManagedEncryptionStatus() { kmsKeyVersionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomerManagedEncryptionStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomerManagedEncryptionStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +71,52 @@ private CustomerManagedEncryptionStatus( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyVersionName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kmsKeyVersionName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object kmsKeyVersionName_; /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -101,6 +124,7 @@ private CustomerManagedEncryptionStatus(
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -109,14 +133,15 @@ public java.lang.String getKmsKeyVersionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -124,16 +149,15 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -142,6 +166,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +178,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(kmsKeyVersionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyVersionName_); } @@ -178,15 +202,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.secretmanager.v1.CustomerManagedEncryptionStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other = (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) obj; + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other = + (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) obj; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +230,145 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus parseDelimitedFrom( - java.io.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.secretmanager.v1.CustomerManagedEncryptionStatus + parseDelimitedFrom( + java.io.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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus 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.secretmanager.v1.CustomerManagedEncryptionStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus 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; } /** + * + * *
    * Describes the status of customer-managed encryption.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.class, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder.class); } - // Construct using com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder() + // Construct using + // com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance(); } @@ -364,7 +400,8 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus build() @java.lang.Override public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus buildPartial() { - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus result = new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(this); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus result = + new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(this); result.kmsKeyVersionName_ = kmsKeyVersionName_; onBuilt(); return result; @@ -374,46 +411,50 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) { - return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus)other); + return mergeFrom((com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other) { - if (other == com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus other) { + if (other + == com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance()) + return this; if (!other.getKmsKeyVersionName().isEmpty()) { kmsKeyVersionName_ = other.kmsKeyVersionName_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,6 +492,8 @@ public Builder mergeFrom( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -456,13 +501,13 @@ public Builder mergeFrom(
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; @@ -471,6 +516,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -478,15 +525,14 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -494,6 +540,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -501,20 +549,22 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { + public Builder setKmsKeyVersionName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyVersionName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -522,15 +572,18 @@ public Builder setKmsKeyVersionName(
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { - + kmsKeyVersionName_ = getDefaultInstance().getKmsKeyVersionName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
      * secret payload, in the following format:
@@ -538,23 +591,23 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyVersionName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -564,30 +617,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) - private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus(); } - public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerManagedEncryptionStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomerManagedEncryptionStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerManagedEncryptionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerManagedEncryptionStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -599,9 +654,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java index afc88512..21b36579 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CustomerManagedEncryptionStatusOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface CustomerManagedEncryptionStatusOrBuilder extends +public interface CustomerManagedEncryptionStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -15,10 +33,13 @@ public interface CustomerManagedEncryptionStatusOrBuilder extends
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
    * secret payload, in the following format:
@@ -26,8 +47,8 @@ public interface CustomerManagedEncryptionStatusOrBuilder extends
    * 
* * string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java index 288444aa..89ad165d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DeleteSecretRequest} */ -public final class DeleteSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSecretRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DeleteSecretRequest) DeleteSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSecretRequest.newBuilder() to construct. private DeleteSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSecretRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DeleteSecretRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,68 @@ private DeleteSecretRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, + com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -156,6 +186,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -164,14 +195,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -179,16 +211,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,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_); } @@ -239,17 +270,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.secretmanager.v1.DeleteSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DeleteSecretRequest other = (com.google.cloud.secretmanager.v1.DeleteSecretRequest) obj; + com.google.cloud.secretmanager.v1.DeleteSecretRequest other = + (com.google.cloud.secretmanager.v1.DeleteSecretRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseFrom( 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.secretmanager.v1.DeleteSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest 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.secretmanager.v1.DeleteSecretRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.DeleteSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DeleteSecretRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DeleteSecretRequest) com.google.cloud.secretmanager.v1.DeleteSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.DeleteSecretRequest.class, + com.google.cloud.secretmanager.v1.DeleteSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DeleteSecretRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; } @java.lang.Override @@ -431,7 +470,8 @@ public com.google.cloud.secretmanager.v1.DeleteSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DeleteSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.DeleteSecretRequest result = new com.google.cloud.secretmanager.v1.DeleteSecretRequest(this); + com.google.cloud.secretmanager.v1.DeleteSecretRequest result = + new com.google.cloud.secretmanager.v1.DeleteSecretRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -442,38 +482,39 @@ public com.google.cloud.secretmanager.v1.DeleteSecretRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DeleteSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DeleteSecretRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.DeleteSecretRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DeleteSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.DeleteSecretRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -509,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.DeleteSecretRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.DeleteSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +564,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -542,21 +589,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -564,57 +614,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
      * `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,6 +685,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -629,13 +694,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -644,6 +709,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -651,15 +718,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -667,6 +733,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -674,20 +742,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -695,15 +765,18 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
      * the etag of the currently stored secret object. If the etag is omitted,
@@ -711,23 +784,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DeleteSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DeleteSecretRequest) private static final com.google.cloud.secretmanager.v1.DeleteSecretRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DeleteSecretRequest(); } @@ -751,16 +824,16 @@ public static com.google.cloud.secretmanager.v1.DeleteSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,6 +848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.DeleteSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java index 0fdeca68..77626ced 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteSecretRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DeleteSecretRequestOrBuilder extends +public interface DeleteSecretRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DeleteSecretRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] to delete in the format
    * `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -37,10 +64,13 @@ public interface DeleteSecretRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
    * the etag of the currently stored secret object. If the etag is omitted,
@@ -48,8 +78,8 @@ public interface DeleteSecretRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java index cf77459b..ef25c88c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DestroySecretVersionRequest} */ -public final class DestroySecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DestroySecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DestroySecretVersionRequest) DestroySecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DestroySecretVersionRequest.newBuilder() to construct. private DestroySecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DestroySecretVersionRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DestroySecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestroySecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DestroySecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,68 @@ private DestroySecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -156,6 +186,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -164,14 +195,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -179,16 +211,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,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_); } @@ -239,17 +270,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.secretmanager.v1.DestroySecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other = (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other = + (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseFrom( 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.secretmanager.v1.DestroySecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest 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.secretmanager.v1.DestroySecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DestroySecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DestroySecretVersionRequest) com.google.cloud.secretmanager.v1.DestroySecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.class, + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance(); } @@ -431,7 +471,8 @@ public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.DestroySecretVersionRequest result = new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(this); + com.google.cloud.secretmanager.v1.DestroySecretVersionRequest result = + new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -442,38 +483,39 @@ public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +523,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DestroySecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.DestroySecretVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -509,7 +553,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.DestroySecretVersionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +567,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -542,21 +592,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -564,57 +617,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,6 +688,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -629,13 +697,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -644,6 +712,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -651,15 +721,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -667,6 +736,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -674,20 +745,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -695,15 +768,18 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -711,23 +787,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +813,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DestroySecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DestroySecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.DestroySecretVersionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.DestroySecretVersionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DestroySecretVersionRequest(); } @@ -751,16 +828,16 @@ public static com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestroySecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestroySecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestroySecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestroySecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,6 +852,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.DestroySecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java index 13eca7e0..cd241994 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DestroySecretVersionRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DestroySecretVersionRequestOrBuilder extends +public interface DestroySecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DestroySecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -37,10 +64,13 @@ public interface DestroySecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -48,8 +78,8 @@ public interface DestroySecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java index c7acca74..9fb8ad3c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DisableSecretVersionRequest} */ -public final class DisableSecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DisableSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DisableSecretVersionRequest) DisableSecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DisableSecretVersionRequest.newBuilder() to construct. private DisableSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DisableSecretVersionRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private DisableSecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DisableSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DisableSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,68 @@ private DisableSecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -156,6 +186,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -164,14 +195,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -179,16 +211,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,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_); } @@ -239,17 +270,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.secretmanager.v1.DisableSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other = (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other = + (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseFrom( 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.secretmanager.v1.DisableSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest 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.secretmanager.v1.DisableSecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.DisableSecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DisableSecretVersionRequest) com.google.cloud.secretmanager.v1.DisableSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance(); } @@ -431,7 +471,8 @@ public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.DisableSecretVersionRequest result = new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.DisableSecretVersionRequest result = + new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -442,38 +483,39 @@ public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +523,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.DisableSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.DisableSecretVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -509,7 +553,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.DisableSecretVersionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +567,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -542,21 +592,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -564,57 +617,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,6 +688,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -629,13 +697,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -644,6 +712,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -651,15 +721,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -667,6 +736,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -674,20 +745,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -695,15 +768,18 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -711,23 +787,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +813,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DisableSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DisableSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.DisableSecretVersionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.DisableSecretVersionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DisableSecretVersionRequest(); } @@ -751,16 +828,16 @@ public static com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,6 +852,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.secretmanager.v1.DisableSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java index 6426725f..4ee4043f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DisableSecretVersionRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface DisableSecretVersionRequestOrBuilder extends +public interface DisableSecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DisableSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -37,10 +64,13 @@ public interface DisableSecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -48,8 +78,8 @@ public interface DisableSecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java index c6745bf1..76b62146 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.EnableSecretVersionRequest} */ -public final class EnableSecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnableSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.EnableSecretVersionRequest) EnableSecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnableSecretVersionRequest.newBuilder() to construct. private EnableSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnableSecretVersionRequest() { name_ = ""; etag_ = ""; @@ -26,16 +44,15 @@ private EnableSecretVersionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnableSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EnableSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,68 @@ private EnableSecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int ETAG_FIELD_NUMBER = 2; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -156,6 +186,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -164,14 +195,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -179,16 +211,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,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_); } @@ -239,17 +270,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.secretmanager.v1.EnableSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other = (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other = + (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseFrom( 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.secretmanager.v1.EnableSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest 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.secretmanager.v1.EnableSecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.EnableSecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.EnableSecretVersionRequest) com.google.cloud.secretmanager.v1.EnableSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance(); } @@ -431,7 +471,8 @@ public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.EnableSecretVersionRequest result = new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.EnableSecretVersionRequest result = + new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(this); result.name_ = name_; result.etag_ = etag_; onBuilt(); @@ -442,38 +483,39 @@ public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +523,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.EnableSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.EnableSecretVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -509,7 +553,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.EnableSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +566,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -542,21 +591,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -564,57 +616,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
      * `projects/*/secrets/*/versions/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -622,6 +687,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -629,13 +696,13 @@ public Builder setNameBytes(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -644,6 +711,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -651,15 +720,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -667,6 +735,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -674,20 +744,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -695,15 +767,18 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
      * the etag of the currently stored secret version object. If the etag is
@@ -711,23 +786,23 @@ public Builder clearEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +812,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.EnableSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.EnableSecretVersionRequest) - private static final com.google.cloud.secretmanager.v1.EnableSecretVersionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.EnableSecretVersionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.EnableSecretVersionRequest(); } @@ -751,16 +827,16 @@ public static com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,6 +851,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.EnableSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java index 13472d2e..ec7ea4f8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableSecretVersionRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface EnableSecretVersionRequestOrBuilder extends +public interface EnableSecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.EnableSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
    * `projects/*/secrets/*/versions/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -37,10 +64,13 @@ public interface EnableSecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
    * the etag of the currently stored secret version object. If the etag is
@@ -48,8 +78,8 @@ public interface EnableSecretVersionRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java index ac3e58af..69a85c67 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.SecretManagerService.GetSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretRequest} */ -public final class GetSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSecretRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetSecretRequest) GetSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSecretRequest.newBuilder() to construct. private GetSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSecretRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetSecretRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretRequest.class, com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretRequest.class, + com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,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_); } @@ -174,15 +201,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.secretmanager.v1.GetSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.GetSecretRequest other = (com.google.cloud.secretmanager.v1.GetSecretRequest) obj; + com.google.cloud.secretmanager.v1.GetSecretRequest other = + (com.google.cloud.secretmanager.v1.GetSecretRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.GetSecretRequest parseFrom( 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.secretmanager.v1.GetSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.GetSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.GetSecretRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest 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.secretmanager.v1.GetSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.SecretManagerService.GetSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetSecretRequest) com.google.cloud.secretmanager.v1.GetSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretRequest.class, com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretRequest.class, + com.google.cloud.secretmanager.v1.GetSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.GetSecretRequest.newBuilder() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.secretmanager.v1.GetSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.GetSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.GetSecretRequest result = new com.google.cloud.secretmanager.v1.GetSecretRequest(this); + com.google.cloud.secretmanager.v1.GetSecretRequest result = + new com.google.cloud.secretmanager.v1.GetSecretRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.secretmanager.v1.GetSecretRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.GetSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.GetSecretRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.GetSecretRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.GetSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.GetSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetSecretRequest) private static final com.google.cloud.secretmanager.v1.GetSecretRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetSecretRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.secretmanager.v1.GetSecretRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.GetSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java new file mode 100644 index 00000000..5445169c --- /dev/null +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/service.proto + +package com.google.cloud.secretmanager.v1; + +public interface GetSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java index 80595047..a9b0fa94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretVersionRequest} */ -public final class GetSecretVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSecretVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetSecretVersionRequest) GetSecretVersionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSecretVersionRequest.newBuilder() to construct. private GetSecretVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSecretVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSecretVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSecretVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetSecretVersionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -101,7 +123,10 @@ private GetSecretVersionRequest(
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,14 +135,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -125,17 +151,18 @@ public java.lang.String getName() {
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,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_); } @@ -180,15 +207,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.secretmanager.v1.GetSecretVersionRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.GetSecretVersionRequest other = (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) obj; + com.google.cloud.secretmanager.v1.GetSecretVersionRequest other = + (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseFrom( 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.secretmanager.v1.GetSecretVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest 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.secretmanager.v1.GetSecretVersionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.GetSecretVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.GetSecretVersionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetSecretVersionRequest) com.google.cloud.secretmanager.v1.GetSecretVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.class, + com.google.cloud.secretmanager.v1.GetSecretVersionRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.GetSecretVersionRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.secretmanager.v1.GetSecretVersionRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.GetSecretVersionRequest buildPartial() { - com.google.cloud.secretmanager.v1.GetSecretVersionRequest result = new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(this); + com.google.cloud.secretmanager.v1.GetSecretVersionRequest result = + new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.secretmanager.v1.GetSecretVersionRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.GetSecretVersionRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretVersionRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.GetSecretVersionRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +453,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetSecretVersionRequest other) { - if (other == com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.GetSecretVersionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.GetSecretVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +491,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -458,14 +500,16 @@ public Builder mergeFrom(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -474,6 +518,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -481,16 +527,17 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -498,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -505,21 +554,25 @@ public java.lang.String getName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -527,16 +580,21 @@ public Builder setName(
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
      * `projects/*/secrets/*/versions/*`.
@@ -544,24 +602,26 @@ public Builder clearName() {
      * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +631,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.GetSecretVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetSecretVersionRequest) private static final com.google.cloud.secretmanager.v1.GetSecretVersionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetSecretVersionRequest(); } @@ -585,16 +645,16 @@ public static com.google.cloud.secretmanager.v1.GetSecretVersionRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSecretVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSecretVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecretVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSecretVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -609,6 +669,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.GetSecretVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java index 8dd6f2ed..5af2f809 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetSecretVersionRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface GetSecretVersionRequestOrBuilder extends +public interface GetSecretVersionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetSecretVersionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -15,11 +33,16 @@ public interface GetSecretVersionRequestOrBuilder extends
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
    * `projects/*/secrets/*/versions/*`.
@@ -27,9 +50,11 @@ public interface GetSecretVersionRequestOrBuilder extends
    * created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java index ff03b598..62f1075a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsRequest} */ -public final class ListSecretVersionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecretVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretVersionsRequest) ListSecretVersionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecretVersionsRequest.newBuilder() to construct. private ListSecretVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecretVersionsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListSecretVersionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecretVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSecretVersionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,71 +72,81 @@ private ListSecretVersionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -128,31 +155,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,6 +192,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -170,6 +201,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -180,12 +212,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -194,30 +229,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; } } /** + * + * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -228,6 +263,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -237,6 +274,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -245,14 +283,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -262,16 +301,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -280,6 +318,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +330,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_); } @@ -318,8 +356,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_); @@ -335,21 +372,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other = (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other = + (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -375,117 +409,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseFrom( 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.secretmanager.v1.ListSecretVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest 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.secretmanager.v1.ListSecretVersionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretVersionsRequest) com.google.cloud.secretmanager.v1.ListSecretVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.class, + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.newBuilder() @@ -493,16 +537,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; } @java.lang.Override @@ -539,7 +582,8 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretVersionsRequest result = new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(this); + com.google.cloud.secretmanager.v1.ListSecretVersionsRequest result = + new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -552,38 +596,39 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) other); } else { super.mergeFrom(other); return this; @@ -591,7 +636,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsRequest other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -626,7 +672,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ListSecretVersionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -638,20 +685,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -660,22 +711,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -683,67 +737,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
      * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
      * `projects/*/secrets/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -751,6 +820,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -758,6 +828,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -765,16 +837,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -782,10 +857,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -793,19 +869,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -814,21 +892,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -836,57 +915,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * ListSecretVersionsResponse.next_page_token][].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -894,6 +980,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -903,13 +991,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -918,6 +1006,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -927,15 +1017,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -943,6 +1032,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -952,20 +1043,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -975,15 +1068,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -993,23 +1089,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1019,12 +1115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretVersionsRequest) private static final com.google.cloud.secretmanager.v1.ListSecretVersionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretVersionsRequest(); } @@ -1033,16 +1129,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretVersionsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretVersionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretVersionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1057,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.ListSecretVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java index e469515e..65998a8a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretVersionsRequestOrBuilder extends +public interface ListSecretVersionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretVersionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] associated with the
    * [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in the format
    * `projects/*/secrets/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -39,33 +66,41 @@ public interface ListSecretVersionsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * ListSecretVersionsResponse.next_page_token][].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -75,10 +110,13 @@ public interface ListSecretVersionsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -88,8 +126,8 @@ public interface ListSecretVersionsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java index 4c1b0399..2f0350f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsResponse} */ -public final class ListSecretVersionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecretVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretVersionsResponse) ListSecretVersionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecretVersionsResponse.newBuilder() to construct. private ListSecretVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecretVersionsResponse() { versions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListSecretVersionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecretVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSecretVersionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,43 @@ private ListSecretVersionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versions_.add( + input.readMessage( + com.google.cloud.secretmanager.v1.SecretVersion.parser(), extensionRegistry)); + break; } - versions_.add( - input.readMessage(com.google.cloud.secretmanager.v1.SecretVersion.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 24: { - - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 24: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); @@ -97,22 +117,27 @@ private ListSecretVersionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); } public static final int VERSIONS_FIELD_NUMBER = 1; private java.util.List versions_; /** + * + * *
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -125,6 +150,8 @@ public java.util.List getVersio
     return versions_;
   }
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -133,11 +160,13 @@ public java.util.List getVersio
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getVersionsOrBuilderList() {
     return versions_;
   }
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -150,6 +179,8 @@ public int getVersionsCount() {
     return versions_.size();
   }
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -162,6 +193,8 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
     return versions_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -170,20 +203,22 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
-      int index) {
+  public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(int index) {
     return versions_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -192,30 +227,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; } } /** + * + * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -226,11 +261,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** + * + * *
    * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -239,6 +277,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +289,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 < versions_.size(); i++) { output.writeMessage(1, versions_.get(i)); } @@ -271,15 +309,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < versions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, versions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, versions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,19 +325,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.secretmanager.v1.ListSecretVersionsResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other = (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) obj; + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other = + (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) obj; - if (!getVersionsList() - .equals(other.getVersionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getVersionsList().equals(other.getVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,117 +361,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseFrom( 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.secretmanager.v1.ListSecretVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse 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.secretmanager.v1.ListSecretVersionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretVersionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretVersionsResponse) com.google.cloud.secretmanager.v1.ListSecretVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.class, + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.newBuilder() @@ -445,17 +489,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVersionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -473,13 +517,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse + getDefaultInstanceForType() { return com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance(); } @@ -494,7 +539,8 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretVersionsResponse result = new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(this); + com.google.cloud.secretmanager.v1.ListSecretVersionsResponse result = + new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(this); int from_bitField0_ = bitField0_; if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -515,38 +561,39 @@ public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsResponse)other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) other); } else { super.mergeFrom(other); return this; @@ -554,7 +601,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsResponse other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.secretmanager.v1.ListSecretVersionsResponse.getDefaultInstance()) + return this; if (versionsBuilder_ == null) { if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { @@ -573,9 +622,10 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretVersionsRes versionsBuilder_ = null; versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000001); - versionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVersionsFieldBuilder() : null; + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVersionsFieldBuilder() + : null; } else { versionsBuilder_.addAllMessages(other.versions_); } @@ -607,7 +657,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ListSecretVersionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,21 +667,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List versions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(versions_); + versions_ = + new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> versionsBuilder_; + com.google.cloud.secretmanager.v1.SecretVersion, + com.google.cloud.secretmanager.v1.SecretVersion.Builder, + com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> + versionsBuilder_; /** + * + * *
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -646,6 +705,8 @@ public java.util.List getVersio
       }
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -661,6 +722,8 @@ public int getVersionsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -676,6 +739,8 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -683,8 +748,7 @@ public com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public Builder setVersions(
-        int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
+    public Builder setVersions(int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
       if (versionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -698,6 +762,8 @@ public Builder setVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -717,6 +783,8 @@ public Builder setVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -738,6 +806,8 @@ public Builder addVersions(com.google.cloud.secretmanager.v1.SecretVersion value
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -745,8 +815,7 @@ public Builder addVersions(com.google.cloud.secretmanager.v1.SecretVersion value
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public Builder addVersions(
-        int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
+    public Builder addVersions(int index, com.google.cloud.secretmanager.v1.SecretVersion value) {
       if (versionsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -760,6 +829,8 @@ public Builder addVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -779,6 +850,8 @@ public Builder addVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -798,6 +871,8 @@ public Builder addVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -809,8 +884,7 @@ public Builder addAllVersions(
         java.lang.Iterable values) {
       if (versionsBuilder_ == null) {
         ensureVersionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, versions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
         onChanged();
       } else {
         versionsBuilder_.addAllMessages(values);
@@ -818,6 +892,8 @@ public Builder addAllVersions(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -836,6 +912,8 @@ public Builder clearVersions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -854,6 +932,8 @@ public Builder removeVersions(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -861,11 +941,12 @@ public Builder removeVersions(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilder(
-        int index) {
+    public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilder(int index) {
       return getVersionsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -876,11 +957,14 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder getVersionsBuilde
     public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
         int index) {
       if (versionsBuilder_ == null) {
-        return versions_.get(index);  } else {
+        return versions_.get(index);
+      } else {
         return versionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -888,8 +972,8 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public java.util.List 
-         getVersionsOrBuilderList() {
+    public java.util.List
+        getVersionsOrBuilderList() {
       if (versionsBuilder_ != null) {
         return versionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -897,6 +981,8 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -905,10 +991,12 @@ public com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBui
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
     public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder() {
-      return getVersionsFieldBuilder().addBuilder(
-          com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
+      return getVersionsFieldBuilder()
+          .addBuilder(com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -916,12 +1004,13 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder(
-        int index) {
-      return getVersionsFieldBuilder().addBuilder(
-          index, com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
+    public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilder(int index) {
+      return getVersionsFieldBuilder()
+          .addBuilder(index, com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
      * create_time (newest first).
@@ -929,20 +1018,23 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
      *
      * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
      */
-    public java.util.List 
-         getVersionsBuilderList() {
+    public java.util.List
+        getVersionsBuilderList() {
       return getVersionsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder> 
+            com.google.cloud.secretmanager.v1.SecretVersion,
+            com.google.cloud.secretmanager.v1.SecretVersion.Builder,
+            com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>
         getVersionsFieldBuilder() {
       if (versionsBuilder_ == null) {
-        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.SecretVersion, com.google.cloud.secretmanager.v1.SecretVersion.Builder, com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>(
-                versions_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        versionsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.secretmanager.v1.SecretVersion,
+                com.google.cloud.secretmanager.v1.SecretVersion.Builder,
+                com.google.cloud.secretmanager.v1.SecretVersionOrBuilder>(
+                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         versions_ = null;
       }
       return versionsBuilder_;
@@ -950,19 +1042,21 @@ public com.google.cloud.secretmanager.v1.SecretVersion.Builder addVersionsBuilde
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -971,21 +1065,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -993,69 +1088,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1063,37 +1168,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1214,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretVersionsResponse) - private static final com.google.cloud.secretmanager.v1.ListSecretVersionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.ListSecretVersionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretVersionsResponse(); } @@ -1117,16 +1229,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretVersionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretVersionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1253,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.secretmanager.v1.ListSecretVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java index 838efe81..3983f6df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretVersionsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretVersionsResponseOrBuilder extends +public interface ListSecretVersionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretVersionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -15,9 +33,10 @@ public interface ListSecretVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  java.util.List 
-      getVersionsList();
+  java.util.List getVersionsList();
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -27,6 +46,8 @@ public interface ListSecretVersionsResponseOrBuilder extends
    */
   com.google.cloud.secretmanager.v1.SecretVersion getVersions(int index);
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -36,6 +57,8 @@ public interface ListSecretVersionsResponseOrBuilder extends
    */
   int getVersionsCount();
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -43,9 +66,11 @@ public interface ListSecretVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  java.util.List 
+  java.util.List
       getVersionsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] sorted in reverse by
    * create_time (newest first).
@@ -53,37 +78,44 @@ public interface ListSecretVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.SecretVersion versions = 1;
    */
-  com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(
-      int index);
+  com.google.cloud.secretmanager.v1.SecretVersionOrBuilder getVersionsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1.ListSecretVersionsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java index 68ac57eb..e02abe20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsRequest} */ -public final class ListSecretsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecretsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretsRequest) ListSecretsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecretsRequest.newBuilder() to construct. private ListSecretsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecretsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListSecretsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecretsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSecretsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,70 +72,80 @@ private ListSecretsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsRequest.class, com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsRequest.class, + com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -127,30 +154,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -161,6 +190,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -168,6 +199,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -178,12 +210,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,30 +227,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; } } /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -226,6 +261,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -235,6 +272,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -243,14 +281,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -260,16 +299,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -278,6 +316,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +328,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_); } @@ -316,8 +354,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_); @@ -333,21 +370,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ListSecretsRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretsRequest other = (com.google.cloud.secretmanager.v1.ListSecretsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.secretmanager.v1.ListSecretsRequest other = + (com.google.cloud.secretmanager.v1.ListSecretsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -373,117 +407,126 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseFrom( 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.secretmanager.v1.ListSecretsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest 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.secretmanager.v1.ListSecretsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretsRequest) com.google.cloud.secretmanager.v1.ListSecretsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsRequest.class, com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsRequest.class, + com.google.cloud.secretmanager.v1.ListSecretsRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretsRequest.newBuilder() @@ -491,16 +534,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; } @java.lang.Override @@ -537,7 +579,8 @@ public com.google.cloud.secretmanager.v1.ListSecretsRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretsRequest buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretsRequest result = new com.google.cloud.secretmanager.v1.ListSecretsRequest(this); + com.google.cloud.secretmanager.v1.ListSecretsRequest result = + new com.google.cloud.secretmanager.v1.ListSecretsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -550,38 +593,39 @@ public com.google.cloud.secretmanager.v1.ListSecretsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretsRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsRequest) other); } else { super.mergeFrom(other); return this; @@ -589,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsRequest other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -624,7 +669,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ListSecretsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -657,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -679,64 +732,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project associated with the
      * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -744,6 +812,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -751,6 +820,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -758,16 +829,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to be returned in a single page. If
      * set to 0, the server decides the number of results to return. If the
@@ -775,10 +849,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -786,19 +861,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -807,21 +884,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -829,57 +907,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -887,6 +972,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -896,13 +983,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -911,6 +998,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -920,15 +1009,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -936,6 +1024,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -945,20 +1035,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -968,15 +1060,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter string, adhering to the rules in
      * [List-operation
@@ -986,23 +1081,23 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1012,12 +1107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretsRequest) private static final com.google.cloud.secretmanager.v1.ListSecretsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretsRequest(); } @@ -1026,16 +1121,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1050,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ListSecretsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java index 5f8ca336..2f85d05b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretsRequestOrBuilder extends +public interface ListSecretsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project associated with the
    * [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of results to be returned in a single page. If
    * set to 0, the server decides the number of results to return. If the
@@ -37,33 +64,41 @@ public interface ListSecretsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -73,10 +108,13 @@ public interface ListSecretsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter string, adhering to the rules in
    * [List-operation
@@ -86,8 +124,8 @@ public interface ListSecretsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java index 35139d6d..98ab80a8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsResponse} */ -public final class ListSecretsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSecretsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListSecretsResponse) ListSecretsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSecretsResponse.newBuilder() to construct. private ListSecretsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSecretsResponse() { secrets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListSecretsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSecretsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSecretsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,42 @@ private ListSecretsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - secrets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secrets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + secrets_.add( + input.readMessage( + com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry)); + break; } - secrets_.add( - input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 24: { - - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 24: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); @@ -97,22 +116,27 @@ private ListSecretsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsResponse.class, com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsResponse.class, + com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); } public static final int SECRETS_FIELD_NUMBER = 1; private java.util.List secrets_; /** + * + * *
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -125,6 +149,8 @@ public java.util.List getSecretsList()
     return secrets_;
   }
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -133,11 +159,13 @@ public java.util.List getSecretsList()
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSecretsOrBuilderList() {
     return secrets_;
   }
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -150,6 +178,8 @@ public int getSecretsCount() {
     return secrets_.size();
   }
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -162,6 +192,8 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
     return secrets_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -170,20 +202,22 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
-      int index) {
+  public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
     return secrets_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -192,30 +226,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; } } /** + * + * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -226,11 +260,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** + * + * *
    * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -239,6 +276,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +288,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 < secrets_.size(); i++) { output.writeMessage(1, secrets_.get(i)); } @@ -271,15 +308,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < secrets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, secrets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, secrets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,19 +324,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.secretmanager.v1.ListSecretsResponse)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ListSecretsResponse other = (com.google.cloud.secretmanager.v1.ListSecretsResponse) obj; + com.google.cloud.secretmanager.v1.ListSecretsResponse other = + (com.google.cloud.secretmanager.v1.ListSecretsResponse) obj; - if (!getSecretsList() - .equals(other.getSecretsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getSecretsList().equals(other.getSecretsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,117 +360,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseFrom( 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.secretmanager.v1.ListSecretsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ListSecretsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse 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.secretmanager.v1.ListSecretsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ListSecretsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ListSecretsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListSecretsResponse) com.google.cloud.secretmanager.v1.ListSecretsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ListSecretsResponse.class, com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); + com.google.cloud.secretmanager.v1.ListSecretsResponse.class, + com.google.cloud.secretmanager.v1.ListSecretsResponse.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ListSecretsResponse.newBuilder() @@ -445,17 +488,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; } @java.lang.Override @@ -494,7 +537,8 @@ public com.google.cloud.secretmanager.v1.ListSecretsResponse build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ListSecretsResponse buildPartial() { - com.google.cloud.secretmanager.v1.ListSecretsResponse result = new com.google.cloud.secretmanager.v1.ListSecretsResponse(this); + com.google.cloud.secretmanager.v1.ListSecretsResponse result = + new com.google.cloud.secretmanager.v1.ListSecretsResponse(this); int from_bitField0_ = bitField0_; if (secretsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -515,38 +559,39 @@ public com.google.cloud.secretmanager.v1.ListSecretsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ListSecretsResponse) { - return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsResponse)other); + return mergeFrom((com.google.cloud.secretmanager.v1.ListSecretsResponse) other); } else { super.mergeFrom(other); return this; @@ -554,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsResponse other) { - if (other == com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.ListSecretsResponse.getDefaultInstance()) + return this; if (secretsBuilder_ == null) { if (!other.secrets_.isEmpty()) { if (secrets_.isEmpty()) { @@ -573,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListSecretsResponse o secretsBuilder_ = null; secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000001); - secretsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecretsFieldBuilder() : null; + secretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecretsFieldBuilder() + : null; } else { secretsBuilder_.addAllMessages(other.secrets_); } @@ -607,7 +654,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ListSecretsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ListSecretsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,21 +664,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List secrets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { secrets_ = new java.util.ArrayList(secrets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretsBuilder_; + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder> + secretsBuilder_; /** + * + * *
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -646,6 +701,8 @@ public java.util.List getSecretsList()
       }
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -661,6 +718,8 @@ public int getSecretsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -676,6 +735,8 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -683,8 +744,7 @@ public com.google.cloud.secretmanager.v1.Secret getSecrets(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder setSecrets(
-        int index, com.google.cloud.secretmanager.v1.Secret value) {
+    public Builder setSecrets(int index, com.google.cloud.secretmanager.v1.Secret value) {
       if (secretsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -698,6 +758,8 @@ public Builder setSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -717,6 +779,8 @@ public Builder setSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -738,6 +802,8 @@ public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -745,8 +811,7 @@ public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret value) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder addSecrets(
-        int index, com.google.cloud.secretmanager.v1.Secret value) {
+    public Builder addSecrets(int index, com.google.cloud.secretmanager.v1.Secret value) {
       if (secretsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -760,6 +825,8 @@ public Builder addSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -767,8 +834,7 @@ public Builder addSecrets(
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public Builder addSecrets(
-        com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) {
+    public Builder addSecrets(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) {
       if (secretsBuilder_ == null) {
         ensureSecretsIsMutable();
         secrets_.add(builderForValue.build());
@@ -779,6 +845,8 @@ public Builder addSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -798,6 +866,8 @@ public Builder addSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -809,8 +879,7 @@ public Builder addAllSecrets(
         java.lang.Iterable values) {
       if (secretsBuilder_ == null) {
         ensureSecretsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, secrets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secrets_);
         onChanged();
       } else {
         secretsBuilder_.addAllMessages(values);
@@ -818,6 +887,8 @@ public Builder addAllSecrets(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -836,6 +907,8 @@ public Builder clearSecrets() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -854,6 +927,8 @@ public Builder removeSecrets(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -861,11 +936,12 @@ public Builder removeSecrets(int index) {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(
-        int index) {
+    public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(int index) {
       return getSecretsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -873,14 +949,16 @@ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretsBuilder(
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
-        int index) {
+    public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index) {
       if (secretsBuilder_ == null) {
-        return secrets_.get(index);  } else {
+        return secrets_.get(index);
+      } else {
         return secretsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -888,8 +966,8 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public java.util.List 
-         getSecretsOrBuilderList() {
+    public java.util.List
+        getSecretsOrBuilderList() {
       if (secretsBuilder_ != null) {
         return secretsBuilder_.getMessageOrBuilderList();
       } else {
@@ -897,6 +975,8 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -905,10 +985,12 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
     public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder() {
-      return getSecretsFieldBuilder().addBuilder(
-          com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
+      return getSecretsFieldBuilder()
+          .addBuilder(com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -916,12 +998,13 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder() {
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(
-        int index) {
-      return getSecretsFieldBuilder().addBuilder(
-          index, com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
+    public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(int index) {
+      return getSecretsFieldBuilder()
+          .addBuilder(index, com.google.cloud.secretmanager.v1.Secret.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
      * first).
@@ -929,20 +1012,23 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(
      *
      * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
      */
-    public java.util.List 
-         getSecretsBuilderList() {
+    public java.util.List
+        getSecretsBuilderList() {
       return getSecretsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> 
+            com.google.cloud.secretmanager.v1.Secret,
+            com.google.cloud.secretmanager.v1.Secret.Builder,
+            com.google.cloud.secretmanager.v1.SecretOrBuilder>
         getSecretsFieldBuilder() {
       if (secretsBuilder_ == null) {
-        secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>(
-                secrets_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        secretsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.secretmanager.v1.Secret,
+                com.google.cloud.secretmanager.v1.Secret.Builder,
+                com.google.cloud.secretmanager.v1.SecretOrBuilder>(
+                secrets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         secrets_ = null;
       }
       return secretsBuilder_;
@@ -950,19 +1036,21 @@ public com.google.cloud.secretmanager.v1.Secret.Builder addSecretsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -971,21 +1059,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -993,69 +1082,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in
      * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1063,37 +1162,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1208,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListSecretsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListSecretsResponse) private static final com.google.cloud.secretmanager.v1.ListSecretsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListSecretsResponse(); } @@ -1117,16 +1222,16 @@ public static com.google.cloud.secretmanager.v1.ListSecretsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSecretsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSecretsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSecretsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1246,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ListSecretsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java index b4112f0b..5642399c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListSecretsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface ListSecretsResponseOrBuilder extends +public interface ListSecretsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListSecretsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -15,9 +33,10 @@ public interface ListSecretsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  java.util.List 
-      getSecretsList();
+  java.util.List getSecretsList();
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -27,6 +46,8 @@ public interface ListSecretsResponseOrBuilder extends
    */
   com.google.cloud.secretmanager.v1.Secret getSecrets(int index);
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -36,6 +57,8 @@ public interface ListSecretsResponseOrBuilder extends
    */
   int getSecretsCount();
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -43,9 +66,11 @@ public interface ListSecretsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  java.util.List 
+  java.util.List
       getSecretsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of [Secrets][google.cloud.secretmanager.v1.Secret] sorted in reverse by create_time (newest
    * first).
@@ -53,37 +78,44 @@ public interface ListSecretsResponseOrBuilder extends
    *
    * repeated .google.cloud.secretmanager.v1.Secret secrets = 1;
    */
-  com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(
-      int index);
+  com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. Pass this value in
    * [ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token] to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of [Secrets][google.cloud.secretmanager.v1.Secret].
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java index c31dc28a..3b281acb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * A policy that defines the replication and encryption configuration of data.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication} */ -public final class Replication extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Replication extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication) ReplicationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Replication.newBuilder() to construct. private Replication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Replication() { - } + + private Replication() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Replication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Replication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,71 +68,88 @@ private Replication( case 0: done = true; break; - case 10: { - com.google.cloud.secretmanager.v1.Replication.Automatic.Builder subBuilder = null; - if (replicationCase_ == 1) { - subBuilder = ((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_).toBuilder(); - } - replication_ = - input.readMessage(com.google.cloud.secretmanager.v1.Replication.Automatic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); - replication_ = subBuilder.buildPartial(); - } - replicationCase_ = 1; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder subBuilder = null; - if (replicationCase_ == 2) { - subBuilder = ((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_).toBuilder(); + case 10: + { + com.google.cloud.secretmanager.v1.Replication.Automatic.Builder subBuilder = null; + if (replicationCase_ == 1) { + subBuilder = + ((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) + .toBuilder(); + } + replication_ = + input.readMessage( + com.google.cloud.secretmanager.v1.Replication.Automatic.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + replication_ = subBuilder.buildPartial(); + } + replicationCase_ = 1; + break; } - replication_ = - input.readMessage(com.google.cloud.secretmanager.v1.Replication.UserManaged.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); - replication_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder subBuilder = null; + if (replicationCase_ == 2) { + subBuilder = + ((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) + .toBuilder(); + } + replication_ = + input.readMessage( + com.google.cloud.secretmanager.v1.Replication.UserManaged.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + replication_ = subBuilder.buildPartial(); + } + replicationCase_ = 2; + break; } - replicationCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.class, com.google.cloud.secretmanager.v1.Replication.Builder.class); + com.google.cloud.secretmanager.v1.Replication.class, + com.google.cloud.secretmanager.v1.Replication.Builder.class); } - public interface AutomaticOrBuilder extends + public interface AutomaticOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.Automatic) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -125,11 +158,16 @@ public interface AutomaticOrBuilder extends
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** + * + * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -138,11 +176,16 @@ public interface AutomaticOrBuilder extends
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption(); /** + * + * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -151,11 +194,16 @@ public interface AutomaticOrBuilder extends
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder(); } /** + * + * *
    * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload without any
    * restrictions.
@@ -163,30 +211,29 @@ public interface AutomaticOrBuilder extends
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Replication.Automatic}
    */
-  public static final class Automatic extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Automatic extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.Automatic)
       AutomaticOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Automatic.newBuilder() to construct.
     private Automatic(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private Automatic() {
-    }
+
+    private Automatic() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Automatic();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Automatic(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -205,54 +252,63 @@ private Automatic(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = null;
-              if (customerManagedEncryption_ != null) {
-                subBuilder = customerManagedEncryption_.toBuilder();
-              }
-              customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(customerManagedEncryption_);
-                customerManagedEncryption_ = subBuilder.buildPartial();
-              }
+            case 10:
+              {
+                com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder =
+                    null;
+                if (customerManagedEncryption_ != null) {
+                  subBuilder = customerManagedEncryption_.toBuilder();
+                }
+                customerManagedEncryption_ =
+                    input.readMessage(
+                        com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(customerManagedEncryption_);
+                  customerManagedEncryption_ = subBuilder.buildPartial();
+                }
 
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Replication.Automatic.class, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
+              com.google.cloud.secretmanager.v1.Replication.Automatic.class,
+              com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
     }
 
     public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 1;
     private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_;
     /**
+     *
+     *
      * 
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -261,7 +317,10 @@ private Automatic(
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -269,6 +328,8 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** + * + * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -277,14 +338,22 @@ public boolean hasCustomerManagedEncryption() {
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption + getCustomerManagedEncryption() { + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } /** + * + * *
      * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
      * configuration is provided, Google-managed default encryption is used.
@@ -293,14 +362,18 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerMa
      * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +385,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 (customerManagedEncryption_ != null) { output.writeMessage(1, getCustomerManagedEncryption()); } @@ -327,8 +399,9 @@ public int getSerializedSize() { size = 0; if (customerManagedEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomerManagedEncryption()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,17 +411,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Replication.Automatic)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.Automatic other = (com.google.cloud.secretmanager.v1.Replication.Automatic) obj; + com.google.cloud.secretmanager.v1.Replication.Automatic other = + (com.google.cloud.secretmanager.v1.Replication.Automatic) obj; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption() - .equals(other.getCustomerManagedEncryption())) return false; + if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) + return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -371,87 +445,94 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.Automatic parseFrom( 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.secretmanager.v1.Replication.Automatic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.Automatic parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.Automatic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic 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.secretmanager.v1.Replication.Automatic prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.Replication.Automatic 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 @@ -461,6 +542,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload without any
      * restrictions.
@@ -468,21 +551,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.Replication.Automatic}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.Automatic)
         com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.Replication.Automatic.class, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
+                com.google.cloud.secretmanager.v1.Replication.Automatic.class,
+                com.google.cloud.secretmanager.v1.Replication.Automatic.Builder.class);
       }
 
       // Construct using com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder()
@@ -490,16 +576,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -513,9 +598,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor;
       }
 
       @java.lang.Override
@@ -534,7 +619,8 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic build() {
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.Replication.Automatic buildPartial() {
-        com.google.cloud.secretmanager.v1.Replication.Automatic result = new com.google.cloud.secretmanager.v1.Replication.Automatic(this);
+        com.google.cloud.secretmanager.v1.Replication.Automatic result =
+            new com.google.cloud.secretmanager.v1.Replication.Automatic(this);
         if (customerManagedEncryptionBuilder_ == null) {
           result.customerManagedEncryption_ = customerManagedEncryption_;
         } else {
@@ -548,38 +634,41 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.Replication.Automatic) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic)other);
+          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.Automatic) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -587,7 +676,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.Automatic other) {
-        if (other == com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) return this;
+        if (other == com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance())
+          return this;
         if (other.hasCustomerManagedEncryption()) {
           mergeCustomerManagedEncryption(other.getCustomerManagedEncryption());
         }
@@ -610,7 +700,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.secretmanager.v1.Replication.Automatic) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.secretmanager.v1.Replication.Automatic) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -620,10 +711,16 @@ public Builder mergeFrom(
         return this;
       }
 
-      private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_;
+      private com.google.cloud.secretmanager.v1.CustomerManagedEncryption
+          customerManagedEncryption_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> customerManagedEncryptionBuilder_;
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption,
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder,
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>
+          customerManagedEncryptionBuilder_;
       /**
+       *
+       *
        * 
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -632,13 +729,18 @@ public Builder mergeFrom(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -647,17 +749,25 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption + getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -666,9 +776,12 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerMa
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder setCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -682,6 +795,8 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu return this; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -690,7 +805,9 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomerManagedEncryption( com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder builderForValue) { @@ -704,6 +821,8 @@ public Builder setCustomerManagedEncryption( return this; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -712,13 +831,19 @@ public Builder setCustomerManagedEncryption(
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder mergeCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder( + customerManagedEncryption_) + .mergeFrom(value) + .buildPartial(); } else { customerManagedEncryption_ = value; } @@ -730,6 +855,8 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1. return this; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -738,7 +865,9 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -752,6 +881,8 @@ public Builder clearCustomerManagedEncryption() { return this; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -760,14 +891,19 @@ public Builder clearCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder + getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -776,17 +912,23 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCu
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null ? - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [Secret][google.cloud.secretmanager.v1.Secret]. If no
        * configuration is provided, Google-managed default encryption is used.
@@ -795,21 +937,27 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getC
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( - getCustomerManagedEncryption(), - getParentForChildren(), - isClean()); + customerManagedEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( + getCustomerManagedEncryption(), getParentForChildren(), isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -822,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.Automatic) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.Automatic) private static final com.google.cloud.secretmanager.v1.Replication.Automatic DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.Automatic(); } @@ -836,16 +984,16 @@ public static com.google.cloud.secretmanager.v1.Replication.Automatic getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Automatic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Automatic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Automatic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Automatic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -860,63 +1008,86 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication.Automatic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UserManagedOrBuilder extends + public interface UserManagedOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.UserManaged) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getReplicasList(); /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index); /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getReplicasCount(); /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> getReplicasOrBuilderList(); /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( int index); } /** + * + * *
    * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload into the
    * locations specified in [Secret.replication.user_managed.replicas][]
@@ -924,31 +1095,31 @@ com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getRe
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged}
    */
-  public static final class UserManaged extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class UserManaged extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.UserManaged)
       UserManagedOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use UserManaged.newBuilder() to construct.
     private UserManaged(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private UserManaged() {
       replicas_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new UserManaged();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private UserManaged(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -968,29 +1139,33 @@ private UserManaged(
             case 0:
               done = true;
               break;
-            case 10: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                replicas_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 10:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  replicas_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                replicas_.add(
+                    input.readMessage(
+                        com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.parser(),
+                        extensionRegistry));
+                break;
               }
-              replicas_.add(
-                  input.readMessage(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           replicas_ = java.util.Collections.unmodifiableList(replicas_);
@@ -999,46 +1174,57 @@ private UserManaged(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Replication.UserManaged.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.class,
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
     }
 
-    public interface ReplicaOrBuilder extends
+    public interface ReplicaOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication.UserManaged.Replica)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1048,11 +1234,16 @@ public interface ReplicaOrBuilder extends
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1062,11 +1253,16 @@ public interface ReplicaOrBuilder extends
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption(); /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1076,42 +1272,47 @@ public interface ReplicaOrBuilder extends
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder(); } /** + * + * *
      * Represents a Replica for this [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged.Replica} */ - public static final class Replica extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Replica extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) ReplicaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Replica.newBuilder() to construct. private Replica(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Replica() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Replica(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Replica( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1130,66 +1331,78 @@ private Replica( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = null; - if (customerManagedEncryption_ != null) { - subBuilder = customerManagedEncryption_.toBuilder(); + location_ = s; + break; } - customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customerManagedEncryption_); - customerManagedEncryption_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder subBuilder = + null; + if (customerManagedEncryption_ != null) { + subBuilder = customerManagedEncryption_.toBuilder(); + } + customerManagedEncryption_ = + input.readMessage( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customerManagedEncryption_); + customerManagedEncryption_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; + * * @return The location. */ @java.lang.Override @@ -1198,30 +1411,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; } } /** + * + * *
        * The canonical IDs of the location to replicate data.
        * For example: `"us-east1"`.
        * 
* * string location = 1; + * * @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 { @@ -1230,8 +1443,11 @@ public java.lang.String getLocation() { } public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 2; - private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryption + customerManagedEncryption_; /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1241,7 +1457,10 @@ public java.lang.String getLocation() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -1249,6 +1468,8 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1258,14 +1479,22 @@ public boolean hasCustomerManagedEncryption() {
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption + getCustomerManagedEncryption() { + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } /** + * + * *
        * Optional. The customer-managed encryption configuration of the [User-Managed
        * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1275,14 +1504,18 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerMa
        * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1294,8 +1527,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1315,8 +1547,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (customerManagedEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomerManagedEncryption()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1326,19 +1559,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.secretmanager.v1.Replication.UserManaged.Replica)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other = (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) obj; + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other = + (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption() - .equals(other.getCustomerManagedEncryption())) return false; + if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) + return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1363,87 +1596,96 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom( 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica parseDelimitedFrom( - java.io.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.secretmanager.v1.Replication.UserManaged.Replica + parseDelimitedFrom( + java.io.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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica 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.secretmanager.v1.Replication.UserManaged.Replica prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica 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 @@ -1453,44 +1695,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Represents a Replica for this [Secret][google.cloud.secretmanager.v1.Secret].
        * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged.Replica} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.class, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder.class); } - // Construct using com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.newBuilder() + // Construct using + // com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1506,14 +1753,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance(); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + .getDefaultInstance(); } @java.lang.Override @@ -1527,7 +1776,8 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica build() @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica buildPartial() { - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica result = new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(this); + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica result = + new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(this); result.location_ = location_; if (customerManagedEncryptionBuilder_ == null) { result.customerManagedEncryption_ = customerManagedEncryption_; @@ -1542,46 +1792,53 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.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.secretmanager.v1.Replication.UserManaged.Replica) { - return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica)other); + return mergeFrom( + (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other) { - if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica other) { + if (other + == com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + .getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -1608,7 +1865,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1620,19 +1879,21 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; + * * @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; @@ -1641,21 +1902,22 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; + * * @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 { @@ -1663,66 +1925,79 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * The canonical IDs of the location to replicate data.
          * For example: `"us-east1"`.
          * 
* * string location = 1; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.cloud.secretmanager.v1.CustomerManagedEncryption customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryption + customerManagedEncryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> customerManagedEncryptionBuilder_; + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> + customerManagedEncryptionBuilder_; /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1732,13 +2007,18 @@ public Builder setLocationBytes(
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1748,17 +2028,25 @@ public boolean hasCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption + getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1768,9 +2056,12 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption getCustomerMa
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder setCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1784,6 +2075,8 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu return this; } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1793,7 +2086,9 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCustomerManagedEncryption( com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder builderForValue) { @@ -1807,6 +2102,8 @@ public Builder setCustomerManagedEncryption( return this; } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1816,13 +2113,19 @@ public Builder setCustomerManagedEncryption(
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { + public Builder mergeCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryption value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.newBuilder( + customerManagedEncryption_) + .mergeFrom(value) + .buildPartial(); } else { customerManagedEncryption_ = value; } @@ -1834,6 +2137,8 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1. return this; } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1843,7 +2148,9 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -1857,6 +2164,8 @@ public Builder clearCustomerManagedEncryption() { return this; } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1866,14 +2175,19 @@ public Builder clearCustomerManagedEncryption() {
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder + getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1883,17 +2197,23 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder getCu
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder + getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null ? - com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryption.getDefaultInstance() + : customerManagedEncryption_; } } /** + * + * *
          * Optional. The customer-managed encryption configuration of the [User-Managed
          * Replica][Replication.UserManaged.Replica]. If no configuration is
@@ -1903,21 +2223,27 @@ public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder getC
          * retroactively to existing [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryption, com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( - getCustomerManagedEncryption(), - getParentForChildren(), - isClean()); + customerManagedEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryption, + com.google.cloud.secretmanager.v1.CustomerManagedEncryption.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionOrBuilder>( + getCustomerManagedEncryption(), getParentForChildren(), isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1930,30 +2256,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.UserManaged.Replica) - private static final com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica(); } - public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Replica parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Replica(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Replica parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Replica(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1965,78 +2293,103 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int REPLICAS_FIELD_NUMBER = 1; - private java.util.List replicas_; + private java.util.List + replicas_; /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getReplicasList() { + public java.util.List + getReplicasList() { return replicas_; } /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> getReplicasOrBuilderList() { return replicas_; } /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getReplicasCount() { return replicas_.size(); } /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas( + int index) { return replicas_.get(index); } /** + * + * *
      * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
      * Cannot be empty.
      * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder + getReplicasOrBuilder(int index) { return replicas_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2048,8 +2401,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 < replicas_.size(); i++) { output.writeMessage(1, replicas_.get(i)); } @@ -2063,8 +2415,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < replicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, replicas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, replicas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2074,15 +2425,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.secretmanager.v1.Replication.UserManaged)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication.UserManaged other = (com.google.cloud.secretmanager.v1.Replication.UserManaged) obj; + com.google.cloud.secretmanager.v1.Replication.UserManaged other = + (com.google.cloud.secretmanager.v1.Replication.UserManaged) obj; - if (!getReplicasList() - .equals(other.getReplicasList())) return false; + if (!getReplicasList().equals(other.getReplicasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2104,87 +2455,94 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseFrom( 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.secretmanager.v1.Replication.UserManaged parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication.UserManaged parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged 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.secretmanager.v1.Replication.UserManaged prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.Replication.UserManaged 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 @@ -2194,6 +2552,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A replication policy that replicates the [Secret][google.cloud.secretmanager.v1.Secret] payload into the
      * locations specified in [Secret.replication.user_managed.replicas][]
@@ -2201,21 +2561,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication.UserManaged)
         com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.Replication.UserManaged.class, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
+                com.google.cloud.secretmanager.v1.Replication.UserManaged.class,
+                com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder.class);
       }
 
       // Construct using com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder()
@@ -2223,17 +2586,17 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getReplicasFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2247,9 +2610,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor;
       }
 
       @java.lang.Override
@@ -2268,7 +2631,8 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged build() {
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.Replication.UserManaged buildPartial() {
-        com.google.cloud.secretmanager.v1.Replication.UserManaged result = new com.google.cloud.secretmanager.v1.Replication.UserManaged(this);
+        com.google.cloud.secretmanager.v1.Replication.UserManaged result =
+            new com.google.cloud.secretmanager.v1.Replication.UserManaged(this);
         int from_bitField0_ = bitField0_;
         if (replicasBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
@@ -2287,38 +2651,41 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged buildPartial()
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.Replication.UserManaged) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged)other);
+          return mergeFrom((com.google.cloud.secretmanager.v1.Replication.UserManaged) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2326,7 +2693,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManaged other) {
-        if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) return this;
+        if (other == com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance())
+          return this;
         if (replicasBuilder_ == null) {
           if (!other.replicas_.isEmpty()) {
             if (replicas_.isEmpty()) {
@@ -2345,9 +2713,10 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication.UserManag
               replicasBuilder_ = null;
               replicas_ = other.replicas_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              replicasBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getReplicasFieldBuilder() : null;
+              replicasBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getReplicasFieldBuilder()
+                      : null;
             } else {
               replicasBuilder_.addAllMessages(other.replicas_);
             }
@@ -2372,7 +2741,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.secretmanager.v1.Replication.UserManaged) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.secretmanager.v1.Replication.UserManaged) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2381,29 +2751,41 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private java.util.List replicas_ =
-        java.util.Collections.emptyList();
+      private java.util.List
+          replicas_ = java.util.Collections.emptyList();
+
       private void ensureReplicasIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          replicas_ = new java.util.ArrayList(replicas_);
+          replicas_ =
+              new java.util.ArrayList<
+                  com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica>(replicas_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> replicasBuilder_;
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica,
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder,
+              com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>
+          replicasBuilder_;
 
       /**
+       *
+       *
        * 
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getReplicasList() { + public java.util.List + getReplicasList() { if (replicasBuilder_ == null) { return java.util.Collections.unmodifiableList(replicas_); } else { @@ -2411,12 +2793,16 @@ public java.util.List * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret]. * Cannot be empty. *
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getReplicasCount() { if (replicasBuilder_ == null) { @@ -2426,14 +2812,19 @@ public int getReplicasCount() { } } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas(int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getReplicas( + int index) { if (replicasBuilder_ == null) { return replicas_.get(index); } else { @@ -2441,12 +2832,16 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica getRepl } } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReplicas( int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { @@ -2463,15 +2858,21 @@ public Builder setReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReplicas( - int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { + int index, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.set(index, builderForValue.build()); @@ -2482,14 +2883,19 @@ public Builder setReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addReplicas(com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { + public Builder addReplicas( + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2503,12 +2909,16 @@ public Builder addReplicas(com.google.cloud.secretmanager.v1.Replication.UserMan return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addReplicas( int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica value) { @@ -2525,15 +2935,20 @@ public Builder addReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addReplicas( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(builderForValue.build()); @@ -2544,15 +2959,21 @@ public Builder addReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addReplicas( - int index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder builderForValue) { + int index, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(index, builderForValue.build()); @@ -2563,19 +2984,24 @@ public Builder addReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllReplicas( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica> + values) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, replicas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -2583,12 +3009,16 @@ public Builder addAllReplicas( return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReplicas() { if (replicasBuilder_ == null) { @@ -2601,12 +3031,16 @@ public Builder clearReplicas() { return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeReplicas(int index) { if (replicasBuilder_ == null) { @@ -2619,42 +3053,56 @@ public Builder removeReplicas(int index) { return this; } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder getReplicasBuilder( - int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + getReplicasBuilder(int index) { return getReplicasFieldBuilder().getBuilder(index); } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder + getReplicasOrBuilder(int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); } else { + return replicas_.get(index); + } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getReplicasOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -2662,56 +3110,79 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilde } } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder addReplicasBuilder() { - return getReplicasFieldBuilder().addBuilder( - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + addReplicasBuilder() { + return getReplicasFieldBuilder() + .addBuilder( + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + .getDefaultInstance()); } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder addReplicasBuilder( - int index) { - return getReplicasFieldBuilder().addBuilder( - index, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder + addReplicasBuilder(int index) { + return getReplicasFieldBuilder() + .addBuilder( + index, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica + .getDefaultInstance()); } /** + * + * *
        * Required. The list of Replicas for this [Secret][google.cloud.secretmanager.v1.Secret].
        * Cannot be empty.
        * 
* - * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.secretmanager.v1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getReplicasBuilderList() { + public java.util.List< + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder> + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, + com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>( - replicas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + replicasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Replica.Builder, + com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder>( + replicas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); replicas_ = null; } return replicasBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2724,12 +3195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication.UserManaged) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication.UserManaged) private static final com.google.cloud.secretmanager.v1.Replication.UserManaged DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication.UserManaged(); } @@ -2738,16 +3209,16 @@ public static com.google.cloud.secretmanager.v1.Replication.UserManaged getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserManaged parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserManaged(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserManaged(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2762,18 +3233,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication.UserManaged getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int replicationCase_ = 0; private java.lang.Object replication_; + public enum ReplicationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTOMATIC(1), USER_MANAGED(2), REPLICATION_NOT_SET(0); private final int value; + private ReplicationCase(int value) { this.value = value; } @@ -2789,30 +3262,36 @@ public static ReplicationCase valueOf(int value) { public static ReplicationCase forNumber(int value) { switch (value) { - case 1: return AUTOMATIC; - case 2: return USER_MANAGED; - case 0: return REPLICATION_NOT_SET; - default: return null; + case 1: + return AUTOMATIC; + case 2: + return USER_MANAGED; + case 0: + return REPLICATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ReplicationCase - getReplicationCase() { - return ReplicationCase.forNumber( - replicationCase_); + public ReplicationCase getReplicationCase() { + return ReplicationCase.forNumber(replicationCase_); } public static final int AUTOMATIC_FIELD_NUMBER = 1; /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return Whether the automatic field is set. */ @java.lang.Override @@ -2820,21 +3299,26 @@ public boolean hasAutomatic() { return replicationCase_ == 1; } /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { if (replicationCase_ == 1) { - return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; + return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; } return com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
@@ -2844,18 +3328,21 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder() { if (replicationCase_ == 1) { - return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; + return (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_; } return com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } public static final int USER_MANAGED_FIELD_NUMBER = 2; /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -2863,21 +3350,26 @@ public boolean hasUserManaged() { return replicationCase_ == 2; } /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged() { if (replicationCase_ == 2) { - return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; + return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; } return com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
@@ -2885,14 +3377,16 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged( * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder + getUserManagedOrBuilder() { if (replicationCase_ == 2) { - return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; + return (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_; } return com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2904,13 +3398,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (replicationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + output.writeMessage( + 1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); } if (replicationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + output.writeMessage( + 2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); } unknownFields.writeTo(output); } @@ -2922,12 +3417,14 @@ public int getSerializedSize() { size = 0; if (replicationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_); } if (replicationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2937,22 +3434,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Replication)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Replication other = (com.google.cloud.secretmanager.v1.Replication) obj; + com.google.cloud.secretmanager.v1.Replication other = + (com.google.cloud.secretmanager.v1.Replication) obj; if (!getReplicationCase().equals(other.getReplicationCase())) return false; switch (replicationCase_) { case 1: - if (!getAutomatic() - .equals(other.getAutomatic())) return false; + if (!getAutomatic().equals(other.getAutomatic())) return false; break; case 2: - if (!getUserManaged() - .equals(other.getUserManaged())) return false; + if (!getUserManaged().equals(other.getUserManaged())) return false; break; case 0: default: @@ -2985,118 +3481,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Replication parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Replication parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication parseFrom( 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.secretmanager.v1.Replication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Replication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Replication 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.secretmanager.v1.Replication 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.secretmanager.v1.Replication 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.secretmanager.v1.Replication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A policy that defines the replication and encryption configuration of data.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.Replication} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Replication) com.google.cloud.secretmanager.v1.ReplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.Replication.class, com.google.cloud.secretmanager.v1.Replication.Builder.class); + com.google.cloud.secretmanager.v1.Replication.class, + com.google.cloud.secretmanager.v1.Replication.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.Replication.newBuilder() @@ -3104,16 +3609,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3123,9 +3627,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Replication_descriptor; } @java.lang.Override @@ -3144,7 +3648,8 @@ public com.google.cloud.secretmanager.v1.Replication build() { @java.lang.Override public com.google.cloud.secretmanager.v1.Replication buildPartial() { - com.google.cloud.secretmanager.v1.Replication result = new com.google.cloud.secretmanager.v1.Replication(this); + com.google.cloud.secretmanager.v1.Replication result = + new com.google.cloud.secretmanager.v1.Replication(this); if (replicationCase_ == 1) { if (automaticBuilder_ == null) { result.replication_ = replication_; @@ -3168,38 +3673,39 @@ public com.google.cloud.secretmanager.v1.Replication buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.Replication) { - return mergeFrom((com.google.cloud.secretmanager.v1.Replication)other); + return mergeFrom((com.google.cloud.secretmanager.v1.Replication) other); } else { super.mergeFrom(other); return this; @@ -3209,17 +3715,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.secretmanager.v1.Replication other) { if (other == com.google.cloud.secretmanager.v1.Replication.getDefaultInstance()) return this; switch (other.getReplicationCase()) { - case AUTOMATIC: { - mergeAutomatic(other.getAutomatic()); - break; - } - case USER_MANAGED: { - mergeUserManaged(other.getUserManaged()); - break; - } - case REPLICATION_NOT_SET: { - break; - } + case AUTOMATIC: + { + mergeAutomatic(other.getAutomatic()); + break; + } + case USER_MANAGED: + { + mergeUserManaged(other.getUserManaged()); + break; + } + case REPLICATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3249,12 +3758,12 @@ public Builder mergeFrom( } return this; } + private int replicationCase_ = 0; private java.lang.Object replication_; - public ReplicationCase - getReplicationCase() { - return ReplicationCase.forNumber( - replicationCase_); + + public ReplicationCase getReplicationCase() { + return ReplicationCase.forNumber(replicationCase_); } public Builder clearReplication() { @@ -3264,15 +3773,20 @@ public Builder clearReplication() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> automaticBuilder_; + com.google.cloud.secretmanager.v1.Replication.Automatic, + com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, + com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> + automaticBuilder_; /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3280,11 +3794,14 @@ public boolean hasAutomatic() { return replicationCase_ == 1; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return The automatic. */ @java.lang.Override @@ -3302,6 +3819,8 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic() { } } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3322,6 +3841,8 @@ public Builder setAutomatic(com.google.cloud.secretmanager.v1.Replication.Automa return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3340,6 +3861,8 @@ public Builder setAutomatic( return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3348,10 +3871,14 @@ public Builder setAutomatic( */ public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.Replication.Automatic value) { if (automaticBuilder_ == null) { - if (replicationCase_ == 1 && - replication_ != com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) { - replication_ = com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder((com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) - .mergeFrom(value).buildPartial(); + if (replicationCase_ == 1 + && replication_ + != com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance()) { + replication_ = + com.google.cloud.secretmanager.v1.Replication.Automatic.newBuilder( + (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_) + .mergeFrom(value) + .buildPartial(); } else { replication_ = value; } @@ -3366,6 +3893,8 @@ public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.Replication.Auto return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3389,6 +3918,8 @@ public Builder clearAutomatic() { return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3399,6 +3930,8 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma return getAutomaticFieldBuilder().getBuilder(); } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3406,7 +3939,8 @@ public com.google.cloud.secretmanager.v1.Replication.Automatic.Builder getAutoma * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder + getAutomaticOrBuilder() { if ((replicationCase_ == 1) && (automaticBuilder_ != null)) { return automaticBuilder_.getMessageOrBuilder(); } else { @@ -3417,6 +3951,8 @@ public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutom } } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
      * 
@@ -3424,32 +3960,45 @@ public com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutom * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> + com.google.cloud.secretmanager.v1.Replication.Automatic, + com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, + com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder> getAutomaticFieldBuilder() { if (automaticBuilder_ == null) { if (!(replicationCase_ == 1)) { - replication_ = com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); + replication_ = + com.google.cloud.secretmanager.v1.Replication.Automatic.getDefaultInstance(); } - automaticBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.Automatic, com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder>( + automaticBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.Automatic, + com.google.cloud.secretmanager.v1.Replication.Automatic.Builder, + com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder>( (com.google.cloud.secretmanager.v1.Replication.Automatic) replication_, getParentForChildren(), isClean()); replication_ = null; } replicationCase_ = 1; - onChanged();; + onChanged(); + ; return automaticBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> userManagedBuilder_; + com.google.cloud.secretmanager.v1.Replication.UserManaged, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, + com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> + userManagedBuilder_; /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -3457,11 +4006,14 @@ public boolean hasUserManaged() { return replicationCase_ == 2; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return The userManaged. */ @java.lang.Override @@ -3479,6 +4031,8 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged( } } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -3499,6 +4053,8 @@ public Builder setUserManaged(com.google.cloud.secretmanager.v1.Replication.User return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -3517,18 +4073,25 @@ public Builder setUserManaged( return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ - public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.Replication.UserManaged value) { + public Builder mergeUserManaged( + com.google.cloud.secretmanager.v1.Replication.UserManaged value) { if (userManagedBuilder_ == null) { - if (replicationCase_ == 2 && - replication_ != com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) { - replication_ = com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder((com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) - .mergeFrom(value).buildPartial(); + if (replicationCase_ == 2 + && replication_ + != com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance()) { + replication_ = + com.google.cloud.secretmanager.v1.Replication.UserManaged.newBuilder( + (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_) + .mergeFrom(value) + .buildPartial(); } else { replication_ = value; } @@ -3543,6 +4106,8 @@ public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.Replication.Us return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -3566,16 +4131,21 @@ public Builder clearUserManaged() { return this; } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ - public com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder getUserManagedBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder + getUserManagedBuilder() { return getUserManagedFieldBuilder().getBuilder(); } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -3583,7 +4153,8 @@ public com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder getUser * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder + getUserManagedOrBuilder() { if ((replicationCase_ == 2) && (userManagedBuilder_ != null)) { return userManagedBuilder_.getMessageOrBuilder(); } else { @@ -3594,6 +4165,8 @@ public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUse } } /** + * + * *
      * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
      * 
@@ -3601,26 +4174,33 @@ public com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder getUse * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> + com.google.cloud.secretmanager.v1.Replication.UserManaged, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, + com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder> getUserManagedFieldBuilder() { if (userManagedBuilder_ == null) { if (!(replicationCase_ == 2)) { - replication_ = com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); + replication_ = + com.google.cloud.secretmanager.v1.Replication.UserManaged.getDefaultInstance(); } - userManagedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication.UserManaged, com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder>( + userManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication.UserManaged, + com.google.cloud.secretmanager.v1.Replication.UserManaged.Builder, + com.google.cloud.secretmanager.v1.Replication.UserManagedOrBuilder>( (com.google.cloud.secretmanager.v1.Replication.UserManaged) replication_, getParentForChildren(), isClean()); replication_ = null; } replicationCase_ = 2; - onChanged();; + onChanged(); + ; return userManagedBuilder_; } + @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); } @@ -3630,12 +4210,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Replication) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Replication) private static final com.google.cloud.secretmanager.v1.Replication DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Replication(); } @@ -3644,16 +4224,16 @@ public static com.google.cloud.secretmanager.v1.Replication getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Replication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Replication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Replication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Replication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3668,6 +4248,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Replication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java index 206a5029..0c4c002d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface ReplicationOrBuilder extends +public interface ReplicationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Replication) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return Whether the automatic field is set. */ boolean hasAutomatic(); /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
* * .google.cloud.secretmanager.v1.Replication.Automatic automatic = 1; + * * @return The automatic. */ com.google.cloud.secretmanager.v1.Replication.Automatic getAutomatic(); /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will automatically be replicated without any restrictions.
    * 
@@ -35,24 +59,32 @@ public interface ReplicationOrBuilder extends com.google.cloud.secretmanager.v1.Replication.AutomaticOrBuilder getAutomaticOrBuilder(); /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return Whether the userManaged field is set. */ boolean hasUserManaged(); /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
* * .google.cloud.secretmanager.v1.Replication.UserManaged user_managed = 2; + * * @return The userManaged. */ com.google.cloud.secretmanager.v1.Replication.UserManaged getUserManaged(); /** + * + * *
    * The [Secret][google.cloud.secretmanager.v1.Secret] will only be replicated into the locations specified.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java index f60bc987..dc99e043 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatus.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus} */ -public final class ReplicationStatus extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReplicationStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus) ReplicationStatusOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReplicationStatus.newBuilder() to construct. private ReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReplicationStatus() { - } + + private ReplicationStatus() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReplicationStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReplicationStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,101 +68,141 @@ private ReplicationStatus( case 0: done = true; break; - case 10: { - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder subBuilder = null; - if (replicationStatusCase_ == 1) { - subBuilder = ((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_).toBuilder(); - } - replicationStatus_ = - input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); - } - replicationStatusCase_ = 1; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder subBuilder = null; - if (replicationStatusCase_ == 2) { - subBuilder = ((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_).toBuilder(); + case 10: + { + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder + subBuilder = null; + if (replicationStatusCase_ == 1) { + subBuilder = + ((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) + replicationStatus_) + .toBuilder(); + } + replicationStatus_ = + input.readMessage( + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) + replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); + } + replicationStatusCase_ = 1; + break; } - replicationStatus_ = - input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder + subBuilder = null; + if (replicationStatusCase_ == 2) { + subBuilder = + ((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_) + .toBuilder(); + } + replicationStatus_ = + input.readMessage( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); + } + replicationStatusCase_ = 2; + break; } - replicationStatusCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.class, + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); } - public interface AutomaticStatusOrBuilder extends + public interface AutomaticStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** + * + * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption(); /** + * + * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder(); } /** + * + * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using automatic replication.
    * Only populated if the parent [Secret][google.cloud.secretmanager.v1.Secret] has an automatic replication
@@ -155,30 +211,29 @@ public interface AutomaticStatusOrBuilder extends
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus}
    */
-  public static final class AutomaticStatus extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AutomaticStatus extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
       AutomaticStatusOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AutomaticStatus.newBuilder() to construct.
     private AutomaticStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private AutomaticStatus() {
-    }
+
+    private AutomaticStatus() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AutomaticStatus();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private AutomaticStatus(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -197,60 +252,73 @@ private AutomaticStatus(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder subBuilder = null;
-              if (customerManagedEncryption_ != null) {
-                subBuilder = customerManagedEncryption_.toBuilder();
-              }
-              customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(customerManagedEncryption_);
-                customerManagedEncryption_ = subBuilder.buildPartial();
-              }
+            case 10:
+              {
+                com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder
+                    subBuilder = null;
+                if (customerManagedEncryption_ != null) {
+                  subBuilder = customerManagedEncryption_.toBuilder();
+                }
+                customerManagedEncryption_ =
+                    input.readMessage(
+                        com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(customerManagedEncryption_);
+                  customerManagedEncryption_ = subBuilder.buildPartial();
+                }
 
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
+              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class,
+              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
     }
 
     public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 1;
-    private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_;
+    private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus
+        customerManagedEncryption_;
     /**
+     *
+     *
      * 
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -258,32 +326,46 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** + * + * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption() { + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() + : customerManagedEncryption_; } /** + * + * *
      * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
      * populated if customer-managed encryption is used.
      * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +377,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 (customerManagedEncryption_ != null) { output.writeMessage(1, getCustomerManagedEncryption()); } @@ -310,8 +391,9 @@ public int getSerializedSize() { size = 0; if (customerManagedEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomerManagedEncryption()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -321,17 +403,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other = + (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) obj; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption() - .equals(other.getCustomerManagedEncryption())) return false; + if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) + return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -354,87 +437,95 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.AutomaticStatus + parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus 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.secretmanager.v1.ReplicationStatus.AutomaticStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus 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 @@ -444,6 +535,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using automatic replication.
      * Only populated if the parent [Secret][google.cloud.secretmanager.v1.Secret] has an automatic replication
@@ -452,38 +545,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
         com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.class,
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder.class);
       }
 
-      // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder()
+      // Construct using
+      // com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -497,14 +593,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstanceForType() {
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
+      public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+          getDefaultInstanceForType() {
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -518,7 +616,8 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus build
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus buildPartial() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(this);
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus result =
+            new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(this);
         if (customerManagedEncryptionBuilder_ == null) {
           result.customerManagedEncryption_ = customerManagedEncryption_;
         } else {
@@ -532,46 +631,53 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus build
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)other);
+          return mergeFrom(
+              (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other) {
-        if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus other) {
+        if (other
+            == com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+                .getDefaultInstance()) return this;
         if (other.hasCustomerManagedEncryption()) {
           mergeCustomerManagedEncryption(other.getCustomerManagedEncryption());
         }
@@ -594,7 +700,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -604,46 +712,69 @@ public Builder mergeFrom(
         return this;
       }
 
-      private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_;
+      private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus
+          customerManagedEncryption_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> customerManagedEncryptionBuilder_;
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus,
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder,
+              com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>
+          customerManagedEncryptionBuilder_;
       /**
+       *
+       *
        * 
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + .getDefaultInstance() + : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder setCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -657,15 +788,20 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu return this; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder builderForValue) { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder + builderForValue) { if (customerManagedEncryptionBuilder_ == null) { customerManagedEncryption_ = builderForValue.build(); onChanged(); @@ -676,18 +812,26 @@ public Builder setCustomerManagedEncryption( return this; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder mergeCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder( + customerManagedEncryption_) + .mergeFrom(value) + .buildPartial(); } else { customerManagedEncryption_ = value; } @@ -699,12 +843,16 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1. return this; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -718,55 +866,75 @@ public Builder clearCustomerManagedEncryption() { return this; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder + getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null ? - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + .getDefaultInstance() + : customerManagedEncryption_; } } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( - getCustomerManagedEncryption(), - getParentForChildren(), - isClean()); + customerManagedEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( + getCustomerManagedEncryption(), getParentForChildren(), isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -779,30 +947,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutomaticStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutomaticStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomaticStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutomaticStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,61 +984,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UserManagedStatusOrBuilder extends + public interface UserManagedStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> getReplicasList(); /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas( + int index); /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getReplicasCount(); /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder> getReplicasOrBuilderList(); /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( - int index); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder + getReplicasOrBuilder(int index); } /** + * + * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using user-managed
    * replication.
@@ -878,31 +1076,31 @@ com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaSta
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus}
    */
-  public static final class UserManagedStatus extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class UserManagedStatus extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
       UserManagedStatusOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use UserManagedStatus.newBuilder() to construct.
     private UserManagedStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private UserManagedStatus() {
       replicas_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new UserManagedStatus();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private UserManagedStatus(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -922,29 +1120,35 @@ private UserManagedStatus(
             case 0:
               done = true;
               break;
-            case 10: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                replicas_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 10:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  replicas_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+                              .ReplicaStatus>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                replicas_.add(
+                    input.readMessage(
+                        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+                            .ReplicaStatus.parser(),
+                        extensionRegistry));
+                break;
               }
-              replicas_.add(
-                  input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           replicas_ = java.util.Collections.unmodifiableList(replicas_);
@@ -953,107 +1157,135 @@ private UserManagedStatus(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class,
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
     }
 
-    public interface ReplicaStatusOrBuilder extends
+    public interface ReplicaStatusOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ boolean hasCustomerManagedEncryption(); /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption(); /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder(); } /** + * + * *
      * Describes the status of a user-managed replica for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} + * Protobuf type {@code + * google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} */ - public static final class ReplicaStatus extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReplicaStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) ReplicaStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReplicaStatus.newBuilder() to construct. private ReplicaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReplicaStatus() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReplicaStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReplicaStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1072,66 +1304,81 @@ private ReplicaStatus( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: { - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder subBuilder = null; - if (customerManagedEncryption_ != null) { - subBuilder = customerManagedEncryption_.toBuilder(); + location_ = s; + break; } - customerManagedEncryption_ = input.readMessage(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customerManagedEncryption_); - customerManagedEncryption_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder + subBuilder = null; + if (customerManagedEncryption_ != null) { + subBuilder = customerManagedEncryption_.toBuilder(); + } + customerManagedEncryption_ = + input.readMessage( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customerManagedEncryption_); + customerManagedEncryption_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .class, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The location. */ @java.lang.Override @@ -1140,30 +1387,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; } } /** + * + * *
        * Output only. The canonical ID of the replica location.
        * For example: `"us-east1"`.
        * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1172,14 +1419,20 @@ public java.lang.String getLocation() { } public static final int CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER = 2; - private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + customerManagedEncryption_; /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ @java.lang.Override @@ -1187,32 +1440,46 @@ public boolean hasCustomerManagedEncryption() { return customerManagedEncryption_ != null; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption() { + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() + : customerManagedEncryption_; } /** + * + * *
        * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
        * populated if customer-managed encryption is used.
        * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder() { return getCustomerManagedEncryption(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1224,8 +1491,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1245,8 +1511,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (customerManagedEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomerManagedEncryption()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getCustomerManagedEncryption()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1256,19 +1523,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)) { + if (!(obj + instanceof + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other = + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) + obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (hasCustomerManagedEncryption() != other.hasCustomerManagedEncryption()) return false; if (hasCustomerManagedEncryption()) { - if (!getCustomerManagedEncryption() - .equals(other.getCustomerManagedEncryption())) return false; + if (!getCustomerManagedEncryption().equals(other.getCustomerManagedEncryption())) + return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1292,88 +1562,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + 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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom( + 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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + 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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + 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 @@ -1383,44 +1681,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes the status of a user-managed replica for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} + * Protobuf type {@code + * google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus.class, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus.Builder.class); } - // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.newBuilder() + // Construct using + // com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1436,19 +1743,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus build() { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus result = buildPartial(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + build() { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1456,8 +1767,12 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Rep } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus buildPartial() { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus(this); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + buildPartial() { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + result = + new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus(this); result.location_ = location_; if (customerManagedEncryptionBuilder_ == null) { result.customerManagedEncryption_ = customerManagedEncryption_; @@ -1472,46 +1787,58 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Rep public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) { - return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus)other); + if (other + instanceof + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) { + return mergeFrom( + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus other) { - if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + other) { + if (other + == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -1534,11 +1861,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus parsedMessage = null; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1550,19 +1881,21 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1571,21 +1904,22 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1593,102 +1927,132 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * Output only. The canonical ID of the replica location.
          * For example: `"us-east1"`.
          * 
* * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customerManagedEncryption_; + private com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + customerManagedEncryption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> customerManagedEncryptionBuilder_; + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> + customerManagedEncryptionBuilder_; /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customerManagedEncryption field is set. */ public boolean hasCustomerManagedEncryption() { return customerManagedEncryptionBuilder_ != null || customerManagedEncryption_ != null; } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customerManagedEncryption. */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus getCustomerManagedEncryption() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + getCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { - return customerManagedEncryption_ == null ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + .getDefaultInstance() + : customerManagedEncryption_; } else { return customerManagedEncryptionBuilder_.getMessage(); } } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder setCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1702,15 +2066,20 @@ public Builder setCustomerManagedEncryption(com.google.cloud.secretmanager.v1.Cu return this; } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCustomerManagedEncryption( - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder builderForValue) { + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder + builderForValue) { if (customerManagedEncryptionBuilder_ == null) { customerManagedEncryption_ = builderForValue.build(); onChanged(); @@ -1721,18 +2090,26 @@ public Builder setCustomerManagedEncryption( return this; } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { + public Builder mergeCustomerManagedEncryption( + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus value) { if (customerManagedEncryptionBuilder_ == null) { if (customerManagedEncryption_ != null) { customerManagedEncryption_ = - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder(customerManagedEncryption_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.newBuilder( + customerManagedEncryption_) + .mergeFrom(value) + .buildPartial(); } else { customerManagedEncryption_ = value; } @@ -1744,12 +2121,16 @@ public Builder mergeCustomerManagedEncryption(com.google.cloud.secretmanager.v1. return this; } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCustomerManagedEncryption() { if (customerManagedEncryptionBuilder_ == null) { @@ -1763,55 +2144,75 @@ public Builder clearCustomerManagedEncryption() { return this; } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder getCustomerManagedEncryptionBuilder() { - + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder + getCustomerManagedEncryptionBuilder() { + onChanged(); return getCustomerManagedEncryptionFieldBuilder().getBuilder(); } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder() { + public com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder + getCustomerManagedEncryptionOrBuilder() { if (customerManagedEncryptionBuilder_ != null) { return customerManagedEncryptionBuilder_.getMessageOrBuilder(); } else { - return customerManagedEncryption_ == null ? - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.getDefaultInstance() : customerManagedEncryption_; + return customerManagedEncryption_ == null + ? com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus + .getDefaultInstance() + : customerManagedEncryption_; } } /** + * + * *
          * Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only
          * populated if customer-managed encryption is used.
          * 
* - * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder> getCustomerManagedEncryptionFieldBuilder() { if (customerManagedEncryptionBuilder_ == null) { - customerManagedEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( - getCustomerManagedEncryption(), - getParentForChildren(), - isClean()); + customerManagedEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus.Builder, + com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusOrBuilder>( + getCustomerManagedEncryption(), getParentForChildren(), isClean()); customerManagedEncryption_ = null; } return customerManagedEncryptionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1824,30 +2225,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus(); + DEFAULT_INSTANCE = + new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplicaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplicaStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplicaStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1859,73 +2266,103 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int REPLICAS_FIELD_NUMBER = 1; - private java.util.List replicas_; + private java.util.List< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> + replicas_; /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getReplicasList() { + public java.util.List< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> + getReplicasList() { return replicas_; } /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder> getReplicasOrBuilderList() { return replicas_; } /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getReplicasCount() { return replicas_.size(); } /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + getReplicas(int index) { return replicas_.get(index); } /** + * + * *
      * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder + getReplicasOrBuilder(int index) { return replicas_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1937,8 +2374,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 < replicas_.size(); i++) { output.writeMessage(1, replicas_.get(i)); } @@ -1952,8 +2388,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < replicas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, replicas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, replicas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1963,15 +2398,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.secretmanager.v1.ReplicationStatus.UserManagedStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other = + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) obj; - if (!getReplicasList() - .equals(other.getReplicasList())) return false; + if (!getReplicasList().equals(other.getReplicasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1993,87 +2428,95 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus parseDelimitedFrom( - java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus + parseDelimitedFrom( + java.io.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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus 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.secretmanager.v1.ReplicationStatus.UserManagedStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus 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 @@ -2083,6 +2526,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] using user-managed
      * replication.
@@ -2092,39 +2537,44 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
         com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder.class);
+                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.class,
+                com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder()
+      // Construct using
+      // com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getReplicasFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2138,19 +2588,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.secretmanager.v1.ResourcesProto
+            .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstanceForType() {
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance();
+      public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+          getDefaultInstanceForType() {
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus build() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result = buildPartial();
+        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2159,7 +2612,8 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus bui
 
       @java.lang.Override
       public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus buildPartial() {
-        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(this);
+        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus result =
+            new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(this);
         int from_bitField0_ = bitField0_;
         if (replicasBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
@@ -2178,46 +2632,54 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus bui
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) {
-          return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)other);
+        if (other
+            instanceof com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) {
+          return mergeFrom(
+              (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other) {
-        if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus other) {
+        if (other
+            == com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+                .getDefaultInstance()) return this;
         if (replicasBuilder_ == null) {
           if (!other.replicas_.isEmpty()) {
             if (replicas_.isEmpty()) {
@@ -2236,9 +2698,10 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus.Use
               replicasBuilder_ = null;
               replicas_ = other.replicas_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              replicasBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getReplicasFieldBuilder() : null;
+              replicasBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getReplicasFieldBuilder()
+                      : null;
             } else {
               replicasBuilder_.addAllMessages(other.replicas_);
             }
@@ -2263,7 +2726,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2272,28 +2737,45 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private java.util.List replicas_ =
-        java.util.Collections.emptyList();
+      private java.util.List<
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus>
+          replicas_ = java.util.Collections.emptyList();
+
       private void ensureReplicasIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          replicas_ = new java.util.ArrayList(replicas_);
+          replicas_ =
+              new java.util.ArrayList<
+                  com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+                      .ReplicaStatus>(replicas_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder> replicasBuilder_;
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus,
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus
+                  .Builder,
+              com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus
+                  .ReplicaStatusOrBuilder>
+          replicasBuilder_;
 
       /**
+       *
+       *
        * 
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getReplicasList() { + public java.util.List< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus> + getReplicasList() { if (replicasBuilder_ == null) { return java.util.Collections.unmodifiableList(replicas_); } else { @@ -2301,11 +2783,15 @@ public java.util.List * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. *
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getReplicasCount() { if (replicasBuilder_ == null) { @@ -2315,13 +2801,18 @@ public int getReplicasCount() { } } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus getReplicas(int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + getReplicas(int index) { if (replicasBuilder_ == null) { return replicas_.get(index); } else { @@ -2329,14 +2820,20 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Rep } } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setReplicas( - int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { + int index, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2350,14 +2847,21 @@ public Builder setReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setReplicas( - int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { + int index, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.set(index, builderForValue.build()); @@ -2368,13 +2872,19 @@ public Builder setReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addReplicas(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { + public Builder addReplicas( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2388,14 +2898,20 @@ public Builder addReplicas(com.google.cloud.secretmanager.v1.ReplicationStatus.U return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addReplicas( - int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus value) { + int index, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + value) { if (replicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2409,14 +2925,20 @@ public Builder addReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addReplicas( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(builderForValue.build()); @@ -2427,14 +2949,21 @@ public Builder addReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addReplicas( - int index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder builderForValue) { + int index, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + builderForValue) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); replicas_.add(index, builderForValue.build()); @@ -2445,18 +2974,25 @@ public Builder addReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllReplicas( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus> + values) { if (replicasBuilder_ == null) { ensureReplicasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, replicas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_); onChanged(); } else { replicasBuilder_.addAllMessages(values); @@ -2464,11 +3000,15 @@ public Builder addAllReplicas( return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearReplicas() { if (replicasBuilder_ == null) { @@ -2481,11 +3021,15 @@ public Builder clearReplicas() { return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeReplicas(int index) { if (replicasBuilder_ == null) { @@ -2498,39 +3042,57 @@ public Builder removeReplicas(int index) { return this; } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder getReplicasBuilder( - int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + getReplicasBuilder(int index) { return getReplicasFieldBuilder().getBuilder(index); } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder getReplicasOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder + getReplicasOrBuilder(int index) { if (replicasBuilder_ == null) { - return replicas_.get(index); } else { + return replicas_.get(index); + } else { return replicasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getReplicasOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder> + getReplicasOrBuilderList() { if (replicasBuilder_ != null) { return replicasBuilder_.getMessageOrBuilderList(); } else { @@ -2538,53 +3100,84 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Rep } } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder addReplicasBuilder() { - return getReplicasFieldBuilder().addBuilder( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + addReplicasBuilder() { + return getReplicasFieldBuilder() + .addBuilder( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .getDefaultInstance()); } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder addReplicasBuilder( - int index) { - return getReplicasFieldBuilder().addBuilder( - index, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder + addReplicasBuilder(int index) { + return getReplicasFieldBuilder() + .addBuilder( + index, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .getDefaultInstance()); } /** + * + * *
        * Output only. The list of replica statuses for the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
        * 
* - * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus replicas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getReplicasBuilderList() { + public java.util.List< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder> + getReplicasBuilderList() { return getReplicasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus + .Builder, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder> getReplicasFieldBuilder() { if (replicasBuilder_ == null) { - replicasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusOrBuilder>( - replicas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + replicasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .ReplicaStatusOrBuilder>( + replicas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); replicas_ = null; } return replicasBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2597,30 +3190,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) - private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus DEFAULT_INSTANCE; + private static final com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(); + DEFAULT_INSTANCE = + new com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus(); } - public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstance() { + public static com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserManagedStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserManagedStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserManagedStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserManagedStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2632,21 +3228,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getDefaultInstanceForType() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int replicationStatusCase_ = 0; private java.lang.Object replicationStatus_; + public enum ReplicationStatusCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTOMATIC(1), USER_MANAGED(2), REPLICATIONSTATUS_NOT_SET(0); private final int value; + private ReplicationStatusCase(int value) { this.value = value; } @@ -2662,25 +3261,30 @@ public static ReplicationStatusCase valueOf(int value) { public static ReplicationStatusCase forNumber(int value) { switch (value) { - case 1: return AUTOMATIC; - case 2: return USER_MANAGED; - case 0: return REPLICATIONSTATUS_NOT_SET; - default: return null; + case 1: + return AUTOMATIC; + case 2: + return USER_MANAGED; + case 0: + return REPLICATIONSTATUS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ReplicationStatusCase - getReplicationStatusCase() { - return ReplicationStatusCase.forNumber( - replicationStatusCase_); + public ReplicationStatusCase getReplicationStatusCase() { + return ReplicationStatusCase.forNumber(replicationStatusCase_); } public static final int AUTOMATIC_FIELD_NUMBER = 1; /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -2689,6 +3293,7 @@ public int getNumber() {
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return Whether the automatic field is set. */ @java.lang.Override @@ -2696,6 +3301,8 @@ public boolean hasAutomatic() { return replicationStatusCase_ == 1; } /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -2704,16 +3311,20 @@ public boolean hasAutomatic() {
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic() { if (replicationStatusCase_ == 1) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) + replicationStatus_; } return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); } /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -2724,15 +3335,19 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAu
    * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
    */
   @java.lang.Override
-  public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder() {
+  public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
+      getAutomaticOrBuilder() {
     if (replicationStatusCase_ == 1) {
-       return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_;
+      return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
+          replicationStatus_;
     }
     return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
   }
 
   public static final int USER_MANAGED_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -2740,7 +3355,9 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuil
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -2748,6 +3365,8 @@ public boolean hasUserManaged() { return replicationStatusCase_ == 2; } /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -2755,17 +3374,23 @@ public boolean hasUserManaged() {
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged() { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -2773,17 +3398,22 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus get
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder + getUserManagedOrBuilder() { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2795,13 +3425,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (replicationStatusCase_ == 1) { - output.writeMessage(1, (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); + output.writeMessage( + 1, + (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); } if (replicationStatusCase_ == 2) { - output.writeMessage(2, (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); + output.writeMessage( + 2, + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_); } unknownFields.writeTo(output); } @@ -2813,12 +3447,18 @@ public int getSerializedSize() { size = 0; if (replicationStatusCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) + replicationStatus_); } if (replicationStatusCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2828,22 +3468,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.ReplicationStatus)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.ReplicationStatus other = (com.google.cloud.secretmanager.v1.ReplicationStatus) obj; + com.google.cloud.secretmanager.v1.ReplicationStatus other = + (com.google.cloud.secretmanager.v1.ReplicationStatus) obj; if (!getReplicationStatusCase().equals(other.getReplicationStatusCase())) return false; switch (replicationStatusCase_) { case 1: - if (!getAutomatic() - .equals(other.getAutomatic())) return false; + if (!getAutomatic().equals(other.getAutomatic())) return false; break; case 2: - if (!getUserManaged() - .equals(other.getUserManaged())) return false; + if (!getUserManaged().equals(other.getUserManaged())) return false; break; case 0: default: @@ -2877,117 +3516,126 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus parseFrom( 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.secretmanager.v1.ReplicationStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.ReplicationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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.secretmanager.v1.ReplicationStatus 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; } /** + * + * *
    * The replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.ReplicationStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ReplicationStatus) com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.ReplicationStatus.class, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); + com.google.cloud.secretmanager.v1.ReplicationStatus.class, + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder() @@ -2995,16 +3643,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3014,9 +3661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; } @java.lang.Override @@ -3035,7 +3682,8 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus build() { @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus buildPartial() { - com.google.cloud.secretmanager.v1.ReplicationStatus result = new com.google.cloud.secretmanager.v1.ReplicationStatus(this); + com.google.cloud.secretmanager.v1.ReplicationStatus result = + new com.google.cloud.secretmanager.v1.ReplicationStatus(this); if (replicationStatusCase_ == 1) { if (automaticBuilder_ == null) { result.replicationStatus_ = replicationStatus_; @@ -3059,38 +3707,39 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.ReplicationStatus) { - return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus)other); + return mergeFrom((com.google.cloud.secretmanager.v1.ReplicationStatus) other); } else { super.mergeFrom(other); return this; @@ -3098,19 +3747,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.ReplicationStatus other) { - if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance()) + return this; switch (other.getReplicationStatusCase()) { - case AUTOMATIC: { - mergeAutomatic(other.getAutomatic()); - break; - } - case USER_MANAGED: { - mergeUserManaged(other.getUserManaged()); - break; - } - case REPLICATIONSTATUS_NOT_SET: { - break; - } + case AUTOMATIC: + { + mergeAutomatic(other.getAutomatic()); + break; + } + case USER_MANAGED: + { + mergeUserManaged(other.getUserManaged()); + break; + } + case REPLICATIONSTATUS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3131,7 +3784,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.ReplicationStatus) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.ReplicationStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3140,12 +3794,12 @@ public Builder mergeFrom( } return this; } + private int replicationStatusCase_ = 0; private java.lang.Object replicationStatus_; - public ReplicationStatusCase - getReplicationStatusCase() { - return ReplicationStatusCase.forNumber( - replicationStatusCase_); + + public ReplicationStatusCase getReplicationStatusCase() { + return ReplicationStatusCase.forNumber(replicationStatusCase_); } public Builder clearReplicationStatus() { @@ -3155,10 +3809,14 @@ public Builder clearReplicationStatus() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> automaticBuilder_; + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> + automaticBuilder_; /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3167,6 +3825,7 @@ public Builder clearReplicationStatus() {
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return Whether the automatic field is set. */ @java.lang.Override @@ -3174,6 +3833,8 @@ public boolean hasAutomatic() { return replicationStatusCase_ == 1; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3182,23 +3843,29 @@ public boolean hasAutomatic() {
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return The automatic. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic() { if (automaticBuilder_ == null) { if (replicationStatusCase_ == 1) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) + replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + .getDefaultInstance(); } else { if (replicationStatusCase_ == 1) { return automaticBuilder_.getMessage(); } - return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus + .getDefaultInstance(); } } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3208,7 +3875,8 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAu
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public Builder setAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
+    public Builder setAutomatic(
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
       if (automaticBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3222,6 +3890,8 @@ public Builder setAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3232,7 +3902,8 @@ public Builder setAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     public Builder setAutomatic(
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder builderForValue) {
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder
+            builderForValue) {
       if (automaticBuilder_ == null) {
         replicationStatus_ = builderForValue.build();
         onChanged();
@@ -3243,6 +3914,8 @@ public Builder setAutomatic(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3252,12 +3925,19 @@ public Builder setAutomatic(
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
+    public Builder mergeAutomatic(
+        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus value) {
       if (automaticBuilder_ == null) {
-        if (replicationStatusCase_ == 1 &&
-            replicationStatus_ != com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance()) {
-          replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder((com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_)
-              .mergeFrom(value).buildPartial();
+        if (replicationStatusCase_ == 1
+            && replicationStatus_
+                != com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+                    .getDefaultInstance()) {
+          replicationStatus_ =
+              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.newBuilder(
+                      (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
+                          replicationStatus_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           replicationStatus_ = value;
         }
@@ -3272,6 +3952,8 @@ public Builder mergeAutomatic(com.google.cloud.secretmanager.v1.ReplicationStatu
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3298,6 +3980,8 @@ public Builder clearAutomatic() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3307,10 +3991,13 @@ public Builder clearAutomatic() {
      *
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
-    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder getAutomaticBuilder() {
+    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder
+        getAutomaticBuilder() {
       return getAutomaticFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3321,17 +4008,22 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Build
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     @java.lang.Override
-    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder() {
+    public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
+        getAutomaticOrBuilder() {
       if ((replicationStatusCase_ == 1) && (automaticBuilder_ != null)) {
         return automaticBuilder_.getMessageOrBuilder();
       } else {
         if (replicationStatusCase_ == 1) {
-          return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_;
+          return (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
+              replicationStatus_;
         }
-        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
+        return com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+            .getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * automatic replication.
@@ -3342,27 +4034,41 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuil
      * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder> 
+            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus,
+            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder,
+            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>
         getAutomaticFieldBuilder() {
       if (automaticBuilder_ == null) {
         if (!(replicationStatusCase_ == 1)) {
-          replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.getDefaultInstance();
+          replicationStatus_ =
+              com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus
+                  .getDefaultInstance();
         }
-        automaticBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>(
-                (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus) replicationStatus_,
+        automaticBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus,
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus.Builder,
+                com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder>(
+                (com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus)
+                    replicationStatus_,
                 getParentForChildren(),
                 isClean());
         replicationStatus_ = null;
       }
       replicationStatusCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return automaticBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> userManagedBuilder_;
+            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus,
+            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder,
+            com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>
+        userManagedBuilder_;
     /**
+     *
+     *
      * 
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3370,7 +4076,9 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuil
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return Whether the userManaged field is set. */ @java.lang.Override @@ -3378,6 +4086,8 @@ public boolean hasUserManaged() { return replicationStatusCase_ == 2; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3385,24 +4095,31 @@ public boolean hasUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return The userManaged. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged() { if (userManagedBuilder_ == null) { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } else { if (replicationStatusCase_ == 2) { return userManagedBuilder_.getMessage(); } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3410,9 +4127,11 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus get
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ - public Builder setUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { + public Builder setUserManaged( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { if (userManagedBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3426,6 +4145,8 @@ public Builder setUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatu return this; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3433,10 +4154,12 @@ public Builder setUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatu
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ public Builder setUserManaged( - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder builderForValue) { + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder + builderForValue) { if (userManagedBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); @@ -3447,6 +4170,8 @@ public Builder setUserManaged( return this; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3454,14 +4179,22 @@ public Builder setUserManaged(
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ - public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { + public Builder mergeUserManaged( + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus value) { if (userManagedBuilder_ == null) { - if (replicationStatusCase_ == 2 && - replicationStatus_ != com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance()) { - replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder((com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_) - .mergeFrom(value).buildPartial(); + if (replicationStatusCase_ == 2 + && replicationStatus_ + != com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance()) { + replicationStatus_ = + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.newBuilder( + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_) + .mergeFrom(value) + .buildPartial(); } else { replicationStatus_ = value; } @@ -3476,6 +4209,8 @@ public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.ReplicationSta return this; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3483,7 +4218,8 @@ public Builder mergeUserManaged(com.google.cloud.secretmanager.v1.ReplicationSta
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ public Builder clearUserManaged() { if (userManagedBuilder_ == null) { @@ -3502,6 +4238,8 @@ public Builder clearUserManaged() { return this; } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3509,12 +4247,16 @@ public Builder clearUserManaged() {
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder getUserManagedBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder + getUserManagedBuilder() { return getUserManagedFieldBuilder().getBuilder(); } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3522,20 +4264,26 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Bui
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder + getUserManagedOrBuilder() { if ((replicationStatusCase_ == 2) && (userManagedBuilder_ != null)) { return userManagedBuilder_.getMessageOrBuilder(); } else { if (replicationStatusCase_ == 2) { - return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_; + return (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_; } - return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } } /** + * + * *
      * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
      * user-managed replication.
@@ -3543,29 +4291,39 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBu
      * policy.
      * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder> getUserManagedFieldBuilder() { if (userManagedBuilder_ == null) { if (!(replicationStatusCase_ == 2)) { - replicationStatus_ = com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.getDefaultInstance(); + replicationStatus_ = + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus + .getDefaultInstance(); } - userManagedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>( - (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) replicationStatus_, + userManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder>( + (com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus) + replicationStatus_, getParentForChildren(), isClean()); replicationStatus_ = null; } replicationStatusCase_ = 2; - onChanged();; + onChanged(); + ; return userManagedBuilder_; } + @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); } @@ -3575,12 +4333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ReplicationStatus) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ReplicationStatus) private static final com.google.cloud.secretmanager.v1.ReplicationStatus DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ReplicationStatus(); } @@ -3589,16 +4347,16 @@ public static com.google.cloud.secretmanager.v1.ReplicationStatus getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplicationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReplicationStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReplicationStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3613,6 +4371,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.ReplicationStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java index 184e390a..4cc51dbd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ReplicationStatusOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface ReplicationStatusOrBuilder extends +public interface ReplicationStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ReplicationStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -16,10 +34,13 @@ public interface ReplicationStatusOrBuilder extends
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return Whether the automatic field is set. */ boolean hasAutomatic(); /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -28,10 +49,13 @@ public interface ReplicationStatusOrBuilder extends
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1; + * * @return The automatic. */ com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus getAutomatic(); /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * automatic replication.
@@ -41,9 +65,12 @@ public interface ReplicationStatusOrBuilder extends
    *
    * .google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatus automatic = 1;
    */
-  com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder getAutomaticOrBuilder();
+  com.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusOrBuilder
+      getAutomaticOrBuilder();
 
   /**
+   *
+   *
    * 
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -51,11 +78,15 @@ public interface ReplicationStatusOrBuilder extends
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return Whether the userManaged field is set. */ boolean hasUserManaged(); /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -63,11 +94,15 @@ public interface ReplicationStatusOrBuilder extends
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * + * * @return The userManaged. */ com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus getUserManaged(); /** + * + * *
    * Describes the replication status of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] with
    * user-managed replication.
@@ -75,9 +110,12 @@ public interface ReplicationStatusOrBuilder extends
    * policy.
    * 
* - * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * .google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus user_managed = 2; + * */ - com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder getUserManagedOrBuilder(); + com.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusOrBuilder + getUserManagedOrBuilder(); - public com.google.cloud.secretmanager.v1.ReplicationStatus.ReplicationStatusCase getReplicationStatusCase(); + public com.google.cloud.secretmanager.v1.ReplicationStatus.ReplicationStatusCase + getReplicationStatusCase(); } diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java new file mode 100644 index 00000000..dd61aa6b --- /dev/null +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -0,0 +1,364 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/resources.proto + +package com.google.cloud.secretmanager.v1; + +public final class ResourcesProto { + private ResourcesProto() {} + + 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_secretmanager_v1_Secret_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Topic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/secretmanager/v1/resource" + + "s.proto\022\035google.cloud.secretmanager.v1\032\034" + + "google/api/annotations.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\"\336\004\n\006Se" + + "cret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\013replication\030\002" + + " \001(\0132*.google.cloud.secretmanager.v1.Rep" + + "licationB\006\340A\005\340A\002\0224\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022A\n\006labels" + + "\030\004 \003(\01321.google.cloud.secretmanager.v1.S" + + "ecret.LabelsEntry\0229\n\006topics\030\005 \003(\0132$.goog" + + "le.cloud.secretmanager.v1.TopicB\003\340A\001\0226\n\013" + + "expire_time\030\006 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\001H\000\022-\n\003ttl\030\007 \001(\0132\031.google.proto" + + "buf.DurationB\003\340A\004H\000\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022>" + + "\n\010rotation\030\t \001(\0132\'.google.cloud.secretma" + + "nager.v1.RotationB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:M\352AJ\n#secr" + + "etmanager.googleapis.com/Secret\022#project" + + "s/{project}/secrets/{secret}B\014\n\nexpirati" + + "on\"\242\004\n\rSecretVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "4\n\013create_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0225\n\014destroy_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022F\n\005state\030\004 " + + "\001(\01622.google.cloud.secretmanager.v1.Secr" + + "etVersion.StateB\003\340A\003\022L\n\022replication_stat" + + "us\030\005 \001(\01320.google.cloud.secretmanager.v1" + + ".ReplicationStatus\022\021\n\004etag\030\006 \001(\tB\003\340A\003\022.\n" + + "!client_specified_payload_checksum\030\007 \001(\010" + + "B\003\340A\003\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003:" + + "n\352Ak\n*secretmanager.googleapis.com/Secre" + + "tVersion\022=projects/{project}/secrets/{se" + + "cret}/versions/{secret_version}\"\220\004\n\013Repl" + + "ication\022I\n\tautomatic\030\001 \001(\01324.google.clou" + + "d.secretmanager.v1.Replication.Automatic" + + "H\000\022N\n\014user_managed\030\002 \001(\01326.google.cloud." + + "secretmanager.v1.Replication.UserManaged" + + "H\000\032o\n\tAutomatic\022b\n\033customer_managed_encr" + + "yption\030\001 \001(\01328.google.cloud.secretmanage" + + "r.v1.CustomerManagedEncryptionB\003\340A\001\032\345\001\n\013" + + "UserManaged\022U\n\010replicas\030\001 \003(\0132>.google.c" + + "loud.secretmanager.v1.Replication.UserMa" + + "naged.ReplicaB\003\340A\002\032\177\n\007Replica\022\020\n\010locatio" + + "n\030\001 \001(\t\022b\n\033customer_managed_encryption\030\002" + + " \001(\01328.google.cloud.secretmanager.v1.Cus" + + "tomerManagedEncryptionB\003\340A\001B\r\n\013replicati" + + "on\"6\n\031CustomerManagedEncryption\022\031\n\014kms_k" + + "ey_name\030\001 \001(\tB\003\340A\002\"\353\004\n\021ReplicationStatus" + + "\022U\n\tautomatic\030\001 \001(\0132@.google.cloud.secre" + + "tmanager.v1.ReplicationStatus.AutomaticS" + + "tatusH\000\022Z\n\014user_managed\030\002 \001(\0132B.google.c" + + "loud.secretmanager.v1.ReplicationStatus." + + "UserManagedStatusH\000\032{\n\017AutomaticStatus\022h" + + "\n\033customer_managed_encryption\030\001 \001(\0132>.go" + + "ogle.cloud.secretmanager.v1.CustomerMana" + + "gedEncryptionStatusB\003\340A\003\032\217\002\n\021UserManaged" + + "Status\022g\n\010replicas\030\001 \003(\0132P.google.cloud." + + "secretmanager.v1.ReplicationStatus.UserM" + + "anagedStatus.ReplicaStatusB\003\340A\003\032\220\001\n\rRepl" + + "icaStatus\022\025\n\010location\030\001 \001(\tB\003\340A\003\022h\n\033cust" + + "omer_managed_encryption\030\002 \001(\0132>.google.c" + + "loud.secretmanager.v1.CustomerManagedEnc" + + "ryptionStatusB\003\340A\003B\024\n\022replication_status" + + "\"D\n\037CustomerManagedEncryptionStatus\022!\n\024k" + + "ms_key_version_name\030\001 \001(\tB\003\340A\002\"_\n\005Topic\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002:C\352A@\n\033pubsub.googleap" + + "is.com/Topic\022!projects/{project}/topics/" + + "{topic}\"\200\001\n\010Rotation\022;\n\022next_rotation_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001\0227\n\017rotation_period\030\002 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\004\"L\n\rSecretPayload\022\014\n\004d" + + "ata\030\001 \001(\014\022\035\n\013data_crc32c\030\002 \001(\003B\003\340A\001H\000\210\001\001" + + "B\016\n\014_data_crc32cB\355\001\n!com.google.cloud.se" + + "cretmanager.v1B\016ResourcesProtoP\001ZJgoogle" + + ".golang.org/genproto/googleapis/cloud/se" + + "cretmanager/v1;secretmanager\370\001\001\242\002\003GSM\252\002\035" + + "Google.Cloud.SecretManager.V1\312\002\035Google\\C" + + "loud\\SecretManager\\V1\352\002 Google::Cloud::S" + + "ecretManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_Secret_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Secret_descriptor, + new java.lang.String[] { + "Name", + "Replication", + "CreateTime", + "Labels", + "Topics", + "ExpireTime", + "Ttl", + "Etag", + "Rotation", + "Expiration", + }); + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = + internal_static_google_cloud_secretmanager_v1_Secret_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "DestroyTime", + "State", + "ReplicationStatus", + "Etag", + "ClientSpecifiedPayloadChecksum", + }); + internal_static_google_cloud_secretmanager_v1_Replication_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_secretmanager_v1_Replication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_descriptor, + new java.lang.String[] { + "Automatic", "UserManaged", "Replication", + }); + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_Automatic_descriptor, + new java.lang.String[] { + "CustomerManagedEncryption", + }); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor, + new java.lang.String[] { + "Replicas", + }); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor = + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Replication_UserManaged_Replica_descriptor, + new java.lang.String[] { + "Location", "CustomerManagedEncryption", + }); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryption_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor, + new java.lang.String[] { + "Automatic", "UserManaged", "ReplicationStatus", + }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_AutomaticStatus_descriptor, + new java.lang.String[] { + "CustomerManagedEncryption", + }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor, + new java.lang.String[] { + "Replicas", + }); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor = + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ReplicationStatus_UserManagedStatus_ReplicaStatus_descriptor, + new java.lang.String[] { + "Location", "CustomerManagedEncryption", + }); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CustomerManagedEncryptionStatus_descriptor, + new java.lang.String[] { + "KmsKeyVersionName", + }); + internal_static_google_cloud_secretmanager_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Topic_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Rotation_descriptor, + new java.lang.String[] { + "NextRotationTime", "RotationPeriod", + }); + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor, + new java.lang.String[] { + "Data", "DataCrc32C", "DataCrc32C", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java index 000a1b0b..c0b64574 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Rotation.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * The rotation time and period for a [Secret][google.cloud.secretmanager.v1.Secret]. At next_rotation_time, Secret
  * Manager will send a Pub/Sub notification to the topics configured on the
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Rotation}
  */
-public final class Rotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Rotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Rotation)
     RotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Rotation.newBuilder() to construct.
   private Rotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Rotation() {
-  }
+
+  private Rotation() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Rotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Rotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,67 +70,75 @@ private Rotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (nextRotationTime_ != null) {
-              subBuilder = nextRotationTime_.toBuilder();
-            }
-            nextRotationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(nextRotationTime_);
-              nextRotationTime_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (nextRotationTime_ != null) {
+                subBuilder = nextRotationTime_.toBuilder();
+              }
+              nextRotationTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(nextRotationTime_);
+                nextRotationTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (rotationPeriod_ != null) {
-              subBuilder = rotationPeriod_.toBuilder();
-            }
-            rotationPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(rotationPeriod_);
-              rotationPeriod_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (rotationPeriod_ != null) {
+                subBuilder = rotationPeriod_.toBuilder();
+              }
+              rotationPeriod_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(rotationPeriod_);
+                rotationPeriod_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Rotation.class, com.google.cloud.secretmanager.v1.Rotation.Builder.class);
+            com.google.cloud.secretmanager.v1.Rotation.class,
+            com.google.cloud.secretmanager.v1.Rotation.Builder.class);
   }
 
   public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp nextRotationTime_;
   /**
+   *
+   *
    * 
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -122,7 +146,10 @@ private Rotation(
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -130,6 +157,8 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** + * + * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -137,14 +166,21 @@ public boolean hasNextRotationTime() {
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } /** + * + * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -152,7 +188,9 @@ public com.google.protobuf.Timestamp getNextRotationTime() {
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { @@ -162,6 +200,8 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { public static final int ROTATION_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rotationPeriod_; /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -170,7 +210,10 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -178,6 +221,8 @@ public boolean hasRotationPeriod() { return rotationPeriod_ != null; } /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -186,14 +231,21 @@ public boolean hasRotationPeriod() {
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -202,7 +254,9 @@ public com.google.protobuf.Duration getRotationPeriod() {
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { @@ -210,6 +264,7 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +276,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nextRotationTime_ != null) { output.writeMessage(1, getNextRotationTime()); } @@ -239,12 +293,10 @@ public int getSerializedSize() { size = 0; if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextRotationTime()); } if (rotationPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRotationPeriod()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRotationPeriod()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,22 +306,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Rotation)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.Rotation other = (com.google.cloud.secretmanager.v1.Rotation) obj; + com.google.cloud.secretmanager.v1.Rotation other = + (com.google.cloud.secretmanager.v1.Rotation) obj; if (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime() - .equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; } if (hasRotationPeriod() != other.hasRotationPeriod()) return false; if (hasRotationPeriod()) { - if (!getRotationPeriod() - .equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -295,97 +346,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Rotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Rotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Rotation parseFrom( 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.secretmanager.v1.Rotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Rotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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.secretmanager.v1.Rotation 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; } /** + * + * *
    * The rotation time and period for a [Secret][google.cloud.secretmanager.v1.Secret]. At next_rotation_time, Secret
    * Manager will send a Pub/Sub notification to the topics configured on the
@@ -394,21 +452,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Rotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Rotation)
       com.google.cloud.secretmanager.v1.RotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Rotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Rotation.class, com.google.cloud.secretmanager.v1.Rotation.Builder.class);
+              com.google.cloud.secretmanager.v1.Rotation.class,
+              com.google.cloud.secretmanager.v1.Rotation.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Rotation.newBuilder()
@@ -416,16 +476,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +504,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Rotation_descriptor;
     }
 
     @java.lang.Override
@@ -466,7 +525,8 @@ public com.google.cloud.secretmanager.v1.Rotation build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Rotation buildPartial() {
-      com.google.cloud.secretmanager.v1.Rotation result = new com.google.cloud.secretmanager.v1.Rotation(this);
+      com.google.cloud.secretmanager.v1.Rotation result =
+          new com.google.cloud.secretmanager.v1.Rotation(this);
       if (nextRotationTimeBuilder_ == null) {
         result.nextRotationTime_ = nextRotationTime_;
       } else {
@@ -485,38 +545,39 @@ public com.google.cloud.secretmanager.v1.Rotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Rotation) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Rotation)other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Rotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -562,8 +623,13 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Timestamp nextRotationTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        nextRotationTimeBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -571,13 +637,18 @@ public Builder mergeFrom(
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -585,17 +656,24 @@ public boolean hasNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -603,7 +681,9 @@ public com.google.protobuf.Timestamp getNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { @@ -619,6 +699,8 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -626,10 +708,11 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNextRotationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextRotationTimeBuilder_ == null) { nextRotationTime_ = builderForValue.build(); onChanged(); @@ -640,6 +723,8 @@ public Builder setNextRotationTime( return this; } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -647,13 +732,17 @@ public Builder setNextRotationTime(
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { if (nextRotationTimeBuilder_ == null) { if (nextRotationTime_ != null) { nextRotationTime_ = - com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(nextRotationTime_) + .mergeFrom(value) + .buildPartial(); } else { nextRotationTime_ = value; } @@ -665,6 +754,8 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -672,7 +763,9 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNextRotationTime() { if (nextRotationTimeBuilder_ == null) { @@ -686,6 +779,8 @@ public Builder clearNextRotationTime() { return this; } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -693,14 +788,18 @@ public Builder clearNextRotationTime() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { - + onChanged(); return getNextRotationTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -708,17 +807,22 @@ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { if (nextRotationTimeBuilder_ != null) { return nextRotationTimeBuilder_.getMessageOrBuilder(); } else { - return nextRotationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; + return nextRotationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextRotationTime_; } } /** + * + * *
      * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
      * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -726,17 +830,22 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
      * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getNextRotationTimeFieldBuilder() { if (nextRotationTimeBuilder_ == null) { - nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getNextRotationTime(), - getParentForChildren(), - isClean()); + nextRotationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getNextRotationTime(), getParentForChildren(), isClean()); nextRotationTime_ = null; } return nextRotationTimeBuilder_; @@ -744,8 +853,13 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { private com.google.protobuf.Duration rotationPeriod_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + rotationPeriodBuilder_; /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -754,13 +868,18 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the rotationPeriod field is set. */ public boolean hasRotationPeriod() { return rotationPeriodBuilder_ != null || rotationPeriod_ != null; } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -769,17 +888,24 @@ public boolean hasRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The rotationPeriod. */ public com.google.protobuf.Duration getRotationPeriod() { if (rotationPeriodBuilder_ == null) { - return rotationPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } else { return rotationPeriodBuilder_.getMessage(); } } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -788,7 +914,9 @@ public com.google.protobuf.Duration getRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { @@ -804,6 +932,8 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -812,10 +942,11 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder setRotationPeriod( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) { if (rotationPeriodBuilder_ == null) { rotationPeriod_ = builderForValue.build(); onChanged(); @@ -826,6 +957,8 @@ public Builder setRotationPeriod( return this; } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -834,13 +967,17 @@ public Builder setRotationPeriod(
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { if (rotationPeriodBuilder_ == null) { if (rotationPeriod_ != null) { rotationPeriod_ = - com.google.protobuf.Duration.newBuilder(rotationPeriod_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(rotationPeriod_) + .mergeFrom(value) + .buildPartial(); } else { rotationPeriod_ = value; } @@ -852,6 +989,8 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -860,7 +999,9 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearRotationPeriod() { if (rotationPeriodBuilder_ == null) { @@ -874,6 +1015,8 @@ public Builder clearRotationPeriod() { return this; } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -882,14 +1025,18 @@ public Builder clearRotationPeriod() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { - + onChanged(); return getRotationPeriodFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -898,17 +1045,22 @@ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { if (rotationPeriodBuilder_ != null) { return rotationPeriodBuilder_.getMessageOrBuilder(); } else { - return rotationPeriod_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : rotationPeriod_; + return rotationPeriod_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : rotationPeriod_; } } /** + * + * *
      * Input only. The Duration between rotation notifications. Must be in seconds
      * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -917,24 +1069,29 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
      * automatically sends rotation notifications.
      * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRotationPeriodFieldBuilder() { if (rotationPeriodBuilder_ == null) { - rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRotationPeriod(), - getParentForChildren(), - isClean()); + rotationPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRotationPeriod(), getParentForChildren(), isClean()); rotationPeriod_ = null; } return rotationPeriodBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -944,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Rotation) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Rotation) private static final com.google.cloud.secretmanager.v1.Rotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Rotation(); } @@ -958,16 +1115,16 @@ public static com.google.cloud.secretmanager.v1.Rotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Rotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Rotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java index a43b5b6f..0b95542b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RotationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface RotationOrBuilder extends +public interface RotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Rotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -15,11 +33,16 @@ public interface RotationOrBuilder extends
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** + * + * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -27,11 +50,16 @@ public interface RotationOrBuilder extends
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** + * + * *
    * Optional. Timestamp in UTC at which the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to rotate. Cannot be
    * set to less than 300s (5 min) in the future and at most 3153600000s (100
@@ -39,11 +67,15 @@ public interface RotationOrBuilder extends
    * [next_rotation_time][google.cloud.secretmanager.v1.Rotation.next_rotation_time] MUST  be set if [rotation_period][google.cloud.secretmanager.v1.Rotation.rotation_period] is set.
    * 
* - * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder(); /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -52,11 +84,16 @@ public interface RotationOrBuilder extends
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -65,11 +102,16 @@ public interface RotationOrBuilder extends
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** + * + * *
    * Input only. The Duration between rotation notifications. Must be in seconds
    * and at least 3600s (1h) and at most 3153600000s (100 years).
@@ -78,7 +120,9 @@ public interface RotationOrBuilder extends
    * automatically sends rotation notifications.
    * 
* - * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java index 733a333e..c2084b9a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose value and versions can
  * be accessed.
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Secret}
  */
-public final class Secret extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Secret extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Secret)
     SecretOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Secret.newBuilder() to construct.
   private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Secret() {
     name_ = "";
     topics_ = java.util.Collections.emptyList();
@@ -30,16 +48,15 @@ private Secret() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Secret();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Secret(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,121 +76,134 @@ private Secret(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.secretmanager.v1.Replication.Builder subBuilder = null;
-            if (replication_ != null) {
-              subBuilder = replication_.toBuilder();
-            }
-            replication_ = input.readMessage(com.google.cloud.secretmanager.v1.Replication.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(replication_);
-              replication_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.secretmanager.v1.Replication.Builder subBuilder = null;
+              if (replication_ != null) {
+                subBuilder = replication_.toBuilder();
+              }
+              replication_ =
+                  input.readMessage(
+                      com.google.cloud.secretmanager.v1.Replication.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(replication_);
+                replication_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              topics_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            topics_.add(
-                input.readMessage(com.google.cloud.secretmanager.v1.Topic.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (expirationCase_ == 6) {
-              subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder();
-            }
-            expiration_ =
-                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_);
-              expiration_ = subBuilder.buildPartial();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                topics_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              topics_.add(
+                  input.readMessage(
+                      com.google.cloud.secretmanager.v1.Topic.parser(), extensionRegistry));
+              break;
             }
-            expirationCase_ = 6;
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (expirationCase_ == 7) {
-              subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder();
+          case 50:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (expirationCase_ == 6) {
+                subBuilder = ((com.google.protobuf.Timestamp) expiration_).toBuilder();
+              }
+              expiration_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protobuf.Timestamp) expiration_);
+                expiration_ = subBuilder.buildPartial();
+              }
+              expirationCase_ = 6;
+              break;
             }
-            expiration_ =
-                input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_);
-              expiration_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (expirationCase_ == 7) {
+                subBuilder = ((com.google.protobuf.Duration) expiration_).toBuilder();
+              }
+              expiration_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protobuf.Duration) expiration_);
+                expiration_ = subBuilder.buildPartial();
+              }
+              expirationCase_ = 7;
+              break;
             }
-            expirationCase_ = 7;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          case 74: {
-            com.google.cloud.secretmanager.v1.Rotation.Builder subBuilder = null;
-            if (rotation_ != null) {
-              subBuilder = rotation_.toBuilder();
+              etag_ = s;
+              break;
             }
-            rotation_ = input.readMessage(com.google.cloud.secretmanager.v1.Rotation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(rotation_);
-              rotation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.secretmanager.v1.Rotation.Builder subBuilder = null;
+              if (rotation_ != null) {
+                subBuilder = rotation_.toBuilder();
+              }
+              rotation_ =
+                  input.readMessage(
+                      com.google.cloud.secretmanager.v1.Rotation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(rotation_);
+                rotation_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         topics_ = java.util.Collections.unmodifiableList(topics_);
@@ -182,40 +212,45 @@ private Secret(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Secret_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 4:
         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.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Secret.class, com.google.cloud.secretmanager.v1.Secret.Builder.class);
+            com.google.cloud.secretmanager.v1.Secret.class,
+            com.google.cloud.secretmanager.v1.Secret.Builder.class);
   }
 
   private int expirationCase_ = 0;
   private java.lang.Object expiration_;
+
   public enum ExpirationCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     EXPIRE_TIME(6),
     TTL(7),
     EXPIRATION_NOT_SET(0);
     private final int value;
+
     private ExpirationCase(int value) {
       this.value = value;
     }
@@ -231,31 +266,37 @@ public static ExpirationCase valueOf(int value) {
 
     public static ExpirationCase forNumber(int value) {
       switch (value) {
-        case 6: return EXPIRE_TIME;
-        case 7: return TTL;
-        case 0: return EXPIRATION_NOT_SET;
-        default: return null;
+        case 6:
+          return EXPIRE_TIME;
+        case 7:
+          return TTL;
+        case 0:
+          return EXPIRATION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ExpirationCase
-  getExpirationCase() {
-    return ExpirationCase.forNumber(
-        expirationCase_);
+  public ExpirationCase getExpirationCase() {
+    return ExpirationCase.forNumber(expirationCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -264,29 +305,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -297,12 +338,17 @@ public java.lang.String getName() { public static final int REPLICATION_FIELD_NUMBER = 2; private com.google.cloud.secretmanager.v1.Replication replication_; /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the replication field is set. */ @java.lang.Override @@ -310,25 +356,36 @@ public boolean hasReplication() { return replication_ != null; } /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The replication. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Replication getReplication() { - return replication_ == null ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; + return replication_ == null + ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() + : replication_; } /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder() { @@ -338,11 +395,15 @@ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBu public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -350,11 +411,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -362,11 +427,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -374,24 +442,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -400,6 +467,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -413,22 +482,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -443,11 +512,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -462,16 +532,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -486,12 +556,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -501,76 +570,99 @@ public java.lang.String getLabelsOrThrow(
   public static final int TOPICS_FIELD_NUMBER = 5;
   private java.util.List topics_;
   /**
+   *
+   *
    * 
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsList() { return topics_; } /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getTopicsOrBuilderList() { return topics_; } /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getTopicsCount() { return topics_.size(); } /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { return topics_.get(index); } /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index) { return topics_.get(index); } public static final int EXPIRE_TIME_FIELD_NUMBER = 6; /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -578,44 +670,54 @@ public boolean hasExpireTime() { return expirationCase_ == 6; } /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 6) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expirationCase_ == 6) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int TTL_FIELD_NUMBER = 7; /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -623,21 +725,26 @@ public boolean hasTtl() { return expirationCase_ == 7; } /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 7) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
@@ -647,7 +754,7 @@ public com.google.protobuf.Duration getTtl() { @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (expirationCase_ == 7) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } @@ -655,11 +762,14 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { public static final int ETAG_FIELD_NUMBER = 8; private volatile java.lang.Object etag_; /** + * + * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -668,29 +778,29 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -701,12 +811,17 @@ public java.lang.String getEtag() { public static final int ROTATION_FIELD_NUMBER = 9; private com.google.cloud.secretmanager.v1.Rotation rotation_; /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rotation field is set. */ @java.lang.Override @@ -714,25 +829,36 @@ public boolean hasRotation() { return rotation_ != null; } /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rotation. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Rotation getRotation() { - return rotation_ == null ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; + return rotation_ == null + ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() + : rotation_; } /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder() { @@ -740,6 +866,7 @@ public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -751,8 +878,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_); } @@ -762,12 +888,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(3, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); for (int i = 0; i < topics_.size(); i++) { output.writeMessage(5, topics_.get(i)); } @@ -796,41 +918,39 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (replication_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReplication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReplication()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } for (int i = 0; i < topics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, topics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, topics_.get(i)); } if (expirationCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Timestamp) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.protobuf.Duration) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.protobuf.Duration) expiration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } if (rotation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getRotation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRotation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -840,45 +960,36 @@ 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.secretmanager.v1.Secret)) { return super.equals(obj); } com.google.cloud.secretmanager.v1.Secret other = (com.google.cloud.secretmanager.v1.Secret) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasReplication() != other.hasReplication()) return false; if (hasReplication()) { - if (!getReplication() - .equals(other.getReplication())) return false; + if (!getReplication().equals(other.getReplication())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getTopicsList() - .equals(other.getTopicsList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getTopicsList().equals(other.getTopicsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasRotation() != other.hasRotation()) return false; if (hasRotation()) { - if (!getRotation() - .equals(other.getRotation())) return false; + if (!getRotation().equals(other.getRotation())) return false; } if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 6: - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; break; case 7: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -935,97 +1046,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Secret parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Secret parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Secret parseFrom( 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.secretmanager.v1.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Secret parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Secret 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.secretmanager.v1.Secret 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.secretmanager.v1.Secret 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.secretmanager.v1.Secret prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose value and versions can
    * be accessed.
@@ -1035,43 +1153,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Secret}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Secret)
       com.google.cloud.secretmanager.v1.SecretOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           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 4:
           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.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Secret_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Secret.class, com.google.cloud.secretmanager.v1.Secret.Builder.class);
+              com.google.cloud.secretmanager.v1.Secret.class,
+              com.google.cloud.secretmanager.v1.Secret.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Secret.newBuilder()
@@ -1079,17 +1197,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTopicsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1128,9 +1246,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Secret_descriptor;
     }
 
     @java.lang.Override
@@ -1149,7 +1267,8 @@ public com.google.cloud.secretmanager.v1.Secret build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Secret buildPartial() {
-      com.google.cloud.secretmanager.v1.Secret result = new com.google.cloud.secretmanager.v1.Secret(this);
+      com.google.cloud.secretmanager.v1.Secret result =
+          new com.google.cloud.secretmanager.v1.Secret(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (replicationBuilder_ == null) {
@@ -1202,38 +1321,39 @@ public com.google.cloud.secretmanager.v1.Secret buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Secret) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Secret)other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Secret) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1252,8 +1372,7 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (topicsBuilder_ == null) {
         if (!other.topics_.isEmpty()) {
           if (topics_.isEmpty()) {
@@ -1272,9 +1391,10 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
             topicsBuilder_ = null;
             topics_ = other.topics_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            topicsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTopicsFieldBuilder() : null;
+            topicsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTopicsFieldBuilder()
+                    : null;
           } else {
             topicsBuilder_.addAllMessages(other.topics_);
           }
@@ -1288,17 +1408,20 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) {
         mergeRotation(other.getRotation());
       }
       switch (other.getExpirationCase()) {
-        case EXPIRE_TIME: {
-          mergeExpireTime(other.getExpireTime());
-          break;
-        }
-        case TTL: {
-          mergeTtl(other.getTtl());
-          break;
-        }
-        case EXPIRATION_NOT_SET: {
-          break;
-        }
+        case EXPIRE_TIME:
+          {
+            mergeExpireTime(other.getExpireTime());
+            break;
+          }
+        case TTL:
+          {
+            mergeTtl(other.getTtl());
+            break;
+          }
+        case EXPIRATION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1328,12 +1451,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int expirationCase_ = 0;
     private java.lang.Object expiration_;
-    public ExpirationCase
-        getExpirationCase() {
-      return ExpirationCase.forNumber(
-          expirationCase_);
+
+    public ExpirationCase getExpirationCase() {
+      return ExpirationCase.forNumber(expirationCase_);
     }
 
     public Builder clearExpiration() {
@@ -1347,18 +1470,20 @@ public Builder clearExpiration() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1367,20 +1492,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1388,54 +1514,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1443,42 +1576,61 @@ public Builder setNameBytes( private com.google.cloud.secretmanager.v1.Replication replication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder> replicationBuilder_; + com.google.cloud.secretmanager.v1.Replication, + com.google.cloud.secretmanager.v1.Replication.Builder, + com.google.cloud.secretmanager.v1.ReplicationOrBuilder> + replicationBuilder_; /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the replication field is set. */ public boolean hasReplication() { return replicationBuilder_ != null || replication_ != null; } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The replication. */ public com.google.cloud.secretmanager.v1.Replication getReplication() { if (replicationBuilder_ == null) { - return replication_ == null ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; + return replication_ == null + ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() + : replication_; } else { return replicationBuilder_.getMessage(); } } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReplication(com.google.cloud.secretmanager.v1.Replication value) { if (replicationBuilder_ == null) { @@ -1494,12 +1646,16 @@ public Builder setReplication(com.google.cloud.secretmanager.v1.Replication valu return this; } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReplication( com.google.cloud.secretmanager.v1.Replication.Builder builderForValue) { @@ -1513,18 +1669,24 @@ public Builder setReplication( return this; } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReplication(com.google.cloud.secretmanager.v1.Replication value) { if (replicationBuilder_ == null) { if (replication_ != null) { replication_ = - com.google.cloud.secretmanager.v1.Replication.newBuilder(replication_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.Replication.newBuilder(replication_) + .mergeFrom(value) + .buildPartial(); } else { replication_ = value; } @@ -1536,12 +1698,16 @@ public Builder mergeReplication(com.google.cloud.secretmanager.v1.Replication va return this; } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReplication() { if (replicationBuilder_ == null) { @@ -1555,51 +1721,67 @@ public Builder clearReplication() { return this; } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.Replication.Builder getReplicationBuilder() { - + onChanged(); return getReplicationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder() { if (replicationBuilder_ != null) { return replicationBuilder_.getMessageOrBuilder(); } else { - return replication_ == null ? - com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() : replication_; + return replication_ == null + ? com.google.cloud.secretmanager.v1.Replication.getDefaultInstance() + : replication_; } } /** + * + * *
      * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
      * The replication policy cannot be changed after the Secret has been created.
      * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder> + com.google.cloud.secretmanager.v1.Replication, + com.google.cloud.secretmanager.v1.Replication.Builder, + com.google.cloud.secretmanager.v1.ReplicationOrBuilder> getReplicationFieldBuilder() { if (replicationBuilder_ == null) { - replicationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Replication, com.google.cloud.secretmanager.v1.Replication.Builder, com.google.cloud.secretmanager.v1.ReplicationOrBuilder>( - getReplication(), - getParentForChildren(), - isClean()); + replicationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Replication, + com.google.cloud.secretmanager.v1.Replication.Builder, + com.google.cloud.secretmanager.v1.ReplicationOrBuilder>( + getReplication(), getParentForChildren(), isClean()); replication_ = null; } return replicationBuilder_; @@ -1607,39 +1789,58 @@ public com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBu private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1655,14 +1856,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1673,17 +1877,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1695,11 +1903,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1713,69 +1925,84 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1787,6 +2014,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1800,22 +2029,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1830,11 +2059,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1849,16 +2079,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1873,12 +2104,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1886,11 +2116,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1904,23 +2135,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1934,16 +2163,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The labels assigned to this Secret.
      * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -1957,33 +2189,38 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.util.List topics_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTopicsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         topics_ = new java.util.ArrayList(topics_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder> topicsBuilder_;
+            com.google.cloud.secretmanager.v1.Topic,
+            com.google.cloud.secretmanager.v1.Topic.Builder,
+            com.google.cloud.secretmanager.v1.TopicOrBuilder>
+        topicsBuilder_;
 
     /**
+     *
+     *
      * 
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { @@ -1993,12 +2230,16 @@ public java.util.List getTopicsList() { } } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getTopicsCount() { if (topicsBuilder_ == null) { @@ -2008,12 +2249,16 @@ public int getTopicsCount() { } } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { if (topicsBuilder_ == null) { @@ -2023,15 +2268,18 @@ public com.google.cloud.secretmanager.v1.Topic getTopics(int index) { } } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTopics( - int index, com.google.cloud.secretmanager.v1.Topic value) { + public Builder setTopics(int index, com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2045,12 +2293,16 @@ public Builder setTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTopics( int index, com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { @@ -2064,12 +2316,16 @@ public Builder setTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { @@ -2085,15 +2341,18 @@ public Builder addTopics(com.google.cloud.secretmanager.v1.Topic value) { return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addTopics( - int index, com.google.cloud.secretmanager.v1.Topic value) { + public Builder addTopics(int index, com.google.cloud.secretmanager.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2107,15 +2366,18 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addTopics( - com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { + public Builder addTopics(com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); @@ -2126,12 +2388,16 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics( int index, com.google.cloud.secretmanager.v1.Topic.Builder builderForValue) { @@ -2145,19 +2411,22 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllTopics( java.lang.Iterable values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); @@ -2165,12 +2434,16 @@ public Builder addAllTopics( return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTopics() { if (topicsBuilder_ == null) { @@ -2183,12 +2456,16 @@ public Builder clearTopics() { return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { @@ -2201,42 +2478,53 @@ public Builder removeTopics(int index) { return this; } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.Topic.Builder getTopicsBuilder( - int index) { + public com.google.cloud.secretmanager.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index) { if (topicsBuilder_ == null) { - return topics_.get(index); } else { + return topics_.get(index); + } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -2244,66 +2532,86 @@ public com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( } } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder().addBuilder( - com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); + return getTopicsFieldBuilder() + .addBuilder(com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder( - int index) { - return getTopicsFieldBuilder().addBuilder( - index, com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); + public com.google.cloud.secretmanager.v1.Topic.Builder addTopicsBuilder(int index) { + return getTopicsFieldBuilder() + .addBuilder(index, com.google.cloud.secretmanager.v1.Topic.getDefaultInstance()); } /** + * + * *
      * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
      * control plane operations are called on the secret or its versions.
      * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getTopicsBuilderList() { + public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder> + com.google.cloud.secretmanager.v1.Topic, + com.google.cloud.secretmanager.v1.Topic.Builder, + com.google.cloud.secretmanager.v1.TopicOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { - topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.secretmanager.v1.Topic, com.google.cloud.secretmanager.v1.Topic.Builder, com.google.cloud.secretmanager.v1.TopicOrBuilder>( - topics_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + topicsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.secretmanager.v1.Topic, + com.google.cloud.secretmanager.v1.Topic.Builder, + com.google.cloud.secretmanager.v1.TopicOrBuilder>( + topics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); topics_ = null; } return topicsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2311,12 +2619,16 @@ public boolean hasExpireTime() { return expirationCase_ == 6; } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ @java.lang.Override @@ -2334,12 +2646,15 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -2355,15 +2670,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -2374,19 +2691,24 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (expirationCase_ == 6 && - expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) - .mergeFrom(value).buildPartial(); + if (expirationCase_ == 6 + && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value) + .buildPartial(); } else { expiration_ = value; } @@ -2401,12 +2723,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -2425,23 +2750,29 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -2455,40 +2786,53 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } } /** + * + * *
      * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
      * always provided on output, regardless of what was sent on input.
      * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { if (!(expirationCase_ == 6)) { expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) expiration_, - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); expiration_ = null; } expirationCase_ = 6; - onChanged();; + onChanged(); + ; return expireTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -2496,11 +2840,14 @@ public boolean hasTtl() { return expirationCase_ == 7; } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ @java.lang.Override @@ -2518,6 +2865,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2538,14 +2887,15 @@ public Builder setTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); @@ -2556,6 +2906,8 @@ public Builder setTtl( return this; } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2564,10 +2916,12 @@ public Builder setTtl( */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (expirationCase_ == 7 && - expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { - expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) - .mergeFrom(value).buildPartial(); + if (expirationCase_ == 7 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); } else { expiration_ = value; } @@ -2582,6 +2936,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2605,6 +2961,8 @@ public Builder clearTtl() { return this; } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2615,6 +2973,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { return getTtlFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2633,6 +2993,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { } } /** + * + * *
      * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
      * 
@@ -2640,38 +3002,44 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTtlFieldBuilder() { if (ttlBuilder_ == null) { if (!(expirationCase_ == 7)) { expiration_ = com.google.protobuf.Duration.getDefaultInstance(); } - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) expiration_, - getParentForChildren(), - isClean()); + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); expiration_ = null; } expirationCase_ = 7; - onChanged();; + onChanged(); + ; return ttlBuilder_; } private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2680,20 +3048,21 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2701,54 +3070,61 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -2756,42 +3132,61 @@ public Builder setEtagBytes( private com.google.cloud.secretmanager.v1.Rotation rotation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder> rotationBuilder_; + com.google.cloud.secretmanager.v1.Rotation, + com.google.cloud.secretmanager.v1.Rotation.Builder, + com.google.cloud.secretmanager.v1.RotationOrBuilder> + rotationBuilder_; /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rotation field is set. */ public boolean hasRotation() { return rotationBuilder_ != null || rotation_ != null; } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rotation. */ public com.google.cloud.secretmanager.v1.Rotation getRotation() { if (rotationBuilder_ == null) { - return rotation_ == null ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; + return rotation_ == null + ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() + : rotation_; } else { return rotationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation value) { if (rotationBuilder_ == null) { @@ -2807,15 +3202,18 @@ public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation value) { return this; } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRotation( - com.google.cloud.secretmanager.v1.Rotation.Builder builderForValue) { + public Builder setRotation(com.google.cloud.secretmanager.v1.Rotation.Builder builderForValue) { if (rotationBuilder_ == null) { rotation_ = builderForValue.build(); onChanged(); @@ -2826,18 +3224,24 @@ public Builder setRotation( return this; } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRotation(com.google.cloud.secretmanager.v1.Rotation value) { if (rotationBuilder_ == null) { if (rotation_ != null) { rotation_ = - com.google.cloud.secretmanager.v1.Rotation.newBuilder(rotation_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.Rotation.newBuilder(rotation_) + .mergeFrom(value) + .buildPartial(); } else { rotation_ = value; } @@ -2849,12 +3253,16 @@ public Builder mergeRotation(com.google.cloud.secretmanager.v1.Rotation value) { return this; } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRotation() { if (rotationBuilder_ == null) { @@ -2868,58 +3276,74 @@ public Builder clearRotation() { return this; } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.secretmanager.v1.Rotation.Builder getRotationBuilder() { - + onChanged(); return getRotationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder() { if (rotationBuilder_ != null) { return rotationBuilder_.getMessageOrBuilder(); } else { - return rotation_ == null ? - com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() : rotation_; + return rotation_ == null + ? com.google.cloud.secretmanager.v1.Rotation.getDefaultInstance() + : rotation_; } } /** + * + * *
      * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
      * rotation policy.
      * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder> + com.google.cloud.secretmanager.v1.Rotation, + com.google.cloud.secretmanager.v1.Rotation.Builder, + com.google.cloud.secretmanager.v1.RotationOrBuilder> getRotationFieldBuilder() { if (rotationBuilder_ == null) { - rotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Rotation, com.google.cloud.secretmanager.v1.Rotation.Builder, com.google.cloud.secretmanager.v1.RotationOrBuilder>( - getRotation(), - getParentForChildren(), - isClean()); + rotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Rotation, + com.google.cloud.secretmanager.v1.Rotation.Builder, + com.google.cloud.secretmanager.v1.RotationOrBuilder>( + getRotation(), getParentForChildren(), isClean()); rotation_ = null; } return rotationBuilder_; } + @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); } @@ -2929,12 +3353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Secret) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Secret) private static final com.google.cloud.secretmanager.v1.Secret DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Secret(); } @@ -2943,16 +3367,16 @@ public static com.google.cloud.secretmanager.v1.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Secret parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Secret(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Secret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Secret(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2967,6 +3391,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java index 202820b0..a5007b8b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java @@ -1,90 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface SecretOrBuilder extends +public interface SecretOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Secret) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the replication field is set. */ boolean hasReplication(); /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * * @return The replication. */ com.google.cloud.secretmanager.v1.Replication getReplication(); /** + * + * *
    * Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.Secret].
    * The replication policy cannot be changed after the Secret has been created.
    * 
* - * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.ReplicationOrBuilder getReplicationOrBuilder(); /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -100,6 +148,8 @@ public interface SecretOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -113,15 +163,13 @@ public interface SecretOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -135,9 +183,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -151,11 +200,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The labels assigned to this Secret.
    * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -169,108 +217,143 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getTopicsList(); + java.util.List getTopicsList(); /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.secretmanager.v1.Topic getTopics(int index); /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getTopicsCount(); /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getTopicsOrBuilderList(); /** + * + * *
    * Optional. A list of up to 10 Pub/Sub topics to which messages are published when
    * control plane operations are called on the secret or its versions.
    * 
* - * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( - int index); + com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder(int index); /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is
    * always provided on output, regardless of what was sent on input.
    * 
* - * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * .google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
    * 
@@ -280,52 +363,71 @@ com.google.cloud.secretmanager.v1.TopicOrBuilder getTopicsOrBuilder( com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); /** + * + * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the rotation field is set. */ boolean hasRotation(); /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The rotation. */ com.google.cloud.secretmanager.v1.Rotation getRotation(); /** + * + * *
    * Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
    * rotation policy.
    * 
* - * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.secretmanager.v1.RotationOrBuilder getRotationOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java index e4526720..68cd0d88 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayload.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * A secret payload resource in the Secret Manager API. This contains the
  * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload}
  */
-public final class SecretPayload extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SecretPayload extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.SecretPayload)
     SecretPayloadOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SecretPayload.newBuilder() to construct.
   private SecretPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SecretPayload() {
     data_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretPayload();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SecretPayload(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,57 +72,63 @@ private SecretPayload(
           case 0:
             done = true;
             break;
-          case 10: {
-
-            data_ = input.readBytes();
-            break;
-          }
-          case 16: {
-            bitField0_ |= 0x00000001;
-            dataCrc32C_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              data_ = input.readBytes();
+              break;
+            }
+          case 16:
+            {
+              bitField0_ |= 0x00000001;
+              dataCrc32C_ = input.readInt64();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.SecretPayload.class, com.google.cloud.secretmanager.v1.SecretPayload.Builder.class);
+            com.google.cloud.secretmanager.v1.SecretPayload.class,
+            com.google.cloud.secretmanager.v1.SecretPayload.Builder.class);
   }
 
   private int bitField0_;
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_;
   /**
+   *
+   *
    * 
    * The secret data. Must be no larger than 64KiB.
    * 
* * bytes data = 1; + * * @return The data. */ @java.lang.Override @@ -116,6 +139,8 @@ public com.google.protobuf.ByteString getData() { public static final int DATA_CRC32C_FIELD_NUMBER = 2; private long dataCrc32C_; /** + * + * *
    * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
    * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -129,6 +154,7 @@ public com.google.protobuf.ByteString getData() {
    * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -136,6 +162,8 @@ public boolean hasDataCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
    * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -149,6 +177,7 @@ public boolean hasDataCrc32C() {
    * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataCrc32c. */ @java.lang.Override @@ -157,6 +186,7 @@ public long getDataCrc32C() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +198,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 (!data_.isEmpty()) { output.writeBytes(1, data_); } @@ -186,12 +215,10 @@ public int getSerializedSize() { size = 0; if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, dataCrc32C_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, dataCrc32C_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -201,19 +228,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.SecretPayload)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.SecretPayload other = (com.google.cloud.secretmanager.v1.SecretPayload) obj; + com.google.cloud.secretmanager.v1.SecretPayload other = + (com.google.cloud.secretmanager.v1.SecretPayload) obj; - if (!getData() - .equals(other.getData())) return false; + if (!getData().equals(other.getData())) return false; if (hasDataCrc32C() != other.hasDataCrc32C()) return false; if (hasDataCrc32C()) { - if (getDataCrc32C() - != other.getDataCrc32C()) return false; + if (getDataCrc32C() != other.getDataCrc32C()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -230,105 +256,111 @@ public int hashCode() { hash = (53 * hash) + getData().hashCode(); if (hasDataCrc32C()) { hash = (37 * hash) + DATA_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDataCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataCrc32C()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretPayload parseFrom( 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.secretmanager.v1.SecretPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.SecretPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload 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.secretmanager.v1.SecretPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A secret payload resource in the Secret Manager API. This contains the
    * sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
@@ -336,21 +368,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.SecretPayload}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.SecretPayload)
       com.google.cloud.secretmanager.v1.SecretPayloadOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.SecretPayload.class, com.google.cloud.secretmanager.v1.SecretPayload.Builder.class);
+              com.google.cloud.secretmanager.v1.SecretPayload.class,
+              com.google.cloud.secretmanager.v1.SecretPayload.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.SecretPayload.newBuilder()
@@ -358,16 +392,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -379,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor;
     }
 
     @java.lang.Override
@@ -400,7 +433,8 @@ public com.google.cloud.secretmanager.v1.SecretPayload build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.SecretPayload buildPartial() {
-      com.google.cloud.secretmanager.v1.SecretPayload result = new com.google.cloud.secretmanager.v1.SecretPayload(this);
+      com.google.cloud.secretmanager.v1.SecretPayload result =
+          new com.google.cloud.secretmanager.v1.SecretPayload(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       result.data_ = data_;
@@ -417,38 +451,39 @@ public com.google.cloud.secretmanager.v1.SecretPayload buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.SecretPayload) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.SecretPayload)other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.SecretPayload) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -456,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretPayload other) {
-      if (other == com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance()) return this;
+      if (other == com.google.cloud.secretmanager.v1.SecretPayload.getDefaultInstance())
+        return this;
       if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
         setData(other.getData());
       }
@@ -491,15 +527,19 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * The secret data. Must be no larger than 64KiB.
      * 
* * bytes data = 1; + * * @return The data. */ @java.lang.Override @@ -507,40 +547,48 @@ public com.google.protobuf.ByteString getData() { return data_; } /** + * + * *
      * The secret data. Must be no larger than 64KiB.
      * 
* * bytes data = 1; + * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** + * + * *
      * The secret data. Must be no larger than 64KiB.
      * 
* * bytes data = 1; + * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } - private long dataCrc32C_ ; + private long dataCrc32C_; /** + * + * *
      * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
      * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -554,6 +602,7 @@ public Builder clearData() {
      * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -561,6 +610,8 @@ public boolean hasDataCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
      * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -574,6 +625,7 @@ public boolean hasDataCrc32C() {
      * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataCrc32c. */ @java.lang.Override @@ -581,6 +633,8 @@ public long getDataCrc32C() { return dataCrc32C_; } /** + * + * *
      * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
      * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -594,6 +648,7 @@ public long getDataCrc32C() {
      * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dataCrc32c to set. * @return This builder for chaining. */ @@ -604,6 +659,8 @@ public Builder setDataCrc32C(long value) { return this; } /** + * + * *
      * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
      * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -617,6 +674,7 @@ public Builder setDataCrc32C(long value) {
      * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDataCrc32C() { @@ -625,9 +683,9 @@ public Builder clearDataCrc32C() { 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); } @@ -637,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.SecretPayload) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.SecretPayload) private static final com.google.cloud.secretmanager.v1.SecretPayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.SecretPayload(); } @@ -651,16 +709,16 @@ public static com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.SecretPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java index fb174dad..8037fcb5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretPayloadOrBuilder.java @@ -1,23 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface SecretPayloadOrBuilder extends +public interface SecretPayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.SecretPayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The secret data. Must be no larger than 64KiB.
    * 
* * bytes data = 1; + * * @return The data. */ com.google.protobuf.ByteString getData(); /** + * + * *
    * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
    * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -31,10 +52,13 @@ public interface SecretPayloadOrBuilder extends
    * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the dataCrc32c field is set. */ boolean hasDataCrc32C(); /** + * + * *
    * Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
    * received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
@@ -48,6 +72,7 @@ public interface SecretPayloadOrBuilder extends
    * 
* * optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dataCrc32c. */ long getDataCrc32C(); diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java index 0ae7a00c..bb376299 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * A secret version resource in the Secret Manager API.
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.SecretVersion} */ -public final class SecretVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.SecretVersion) SecretVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretVersion() { name_ = ""; state_ = 0; @@ -27,16 +45,15 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,110 +72,126 @@ private SecretVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (destroyTime_ != null) { + subBuilder = destroyTime_.toBuilder(); + } + destroyTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destroyTime_); + destroyTime_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (destroyTime_ != null) { - subBuilder = destroyTime_.toBuilder(); + state_ = rawValue; + break; } - destroyTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destroyTime_); - destroyTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder subBuilder = null; + if (replicationStatus_ != null) { + subBuilder = replicationStatus_.toBuilder(); + } + replicationStatus_ = + input.readMessage( + com.google.cloud.secretmanager.v1.ReplicationStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(replicationStatus_); + replicationStatus_ = subBuilder.buildPartial(); + } + + break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 42: { - com.google.cloud.secretmanager.v1.ReplicationStatus.Builder subBuilder = null; - if (replicationStatus_ != null) { - subBuilder = replicationStatus_.toBuilder(); + etag_ = s; + break; } - replicationStatus_ = input.readMessage(com.google.cloud.secretmanager.v1.ReplicationStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replicationStatus_); - replicationStatus_ = subBuilder.buildPartial(); + case 56: + { + clientSpecifiedPayloadChecksum_ = input.readBool(); + break; } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 56: { - - clientSpecifiedPayloadChecksum_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretVersion.class, com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); + com.google.cloud.secretmanager.v1.SecretVersion.class, + com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); } /** + * + * *
    * The state of a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion], indicating if it can be accessed.
    * 
* * Protobuf enum {@code google.cloud.secretmanager.v1.SecretVersion.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified. This value is unused and invalid.
      * 
@@ -167,6 +200,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
      * 
@@ -175,6 +210,8 @@ public enum State */ ENABLED(1), /** + * + * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
      * is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
@@ -185,6 +222,8 @@ public enum State
      */
     DISABLED(2),
     /**
+     *
+     *
      * 
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
      * stored. A version may not leave this state once entered.
@@ -197,6 +236,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Not specified. This value is unused and invalid.
      * 
@@ -205,6 +246,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may be accessed.
      * 
@@ -213,6 +256,8 @@ public enum State */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] may not be accessed, but the secret data
      * is still available and can be placed back into the [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED]
@@ -223,6 +268,8 @@ public enum State
      */
     public static final int DISABLED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] is destroyed and the secret data is no longer
      * stored. A version may not leave this state once entered.
@@ -232,7 +279,6 @@ public enum State
      */
     public static final int DESTROYED_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -257,50 +303,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ENABLED;
-        case 2: return DISABLED;
-        case 3: return DESTROYED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ENABLED;
+        case 2:
+          return DISABLED;
+        case 3:
+          return DESTROYED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.secretmanager.v1.SecretVersion.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -320,6 +367,8 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -328,6 +377,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -336,14 +386,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; } } /** + * + * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -352,16 +403,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -372,11 +422,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -384,11 +438,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -396,11 +454,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -410,13 +471,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int DESTROY_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp destroyTime_; /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the destroyTime field is set. */ @java.lang.Override @@ -424,13 +489,17 @@ public boolean hasDestroyTime() { return destroyTime_ != null; } /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The destroyTime. */ @java.lang.Override @@ -438,13 +507,16 @@ public com.google.protobuf.Timestamp getDestroyTime() { return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { @@ -454,38 +526,56 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { + @java.lang.Override + public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.secretmanager.v1.SecretVersion.State result = com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); - return result == null ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED : result; + com.google.cloud.secretmanager.v1.SecretVersion.State result = + com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); + return result == null + ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED + : result; } public static final int REPLICATION_STATUS_FIELD_NUMBER = 5; private com.google.cloud.secretmanager.v1.ReplicationStatus replicationStatus_; /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return Whether the replicationStatus field is set. */ @java.lang.Override @@ -493,18 +583,25 @@ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return The replicationStatus. */ @java.lang.Override public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus() { - return replicationStatus_ == null ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; + return replicationStatus_ == null + ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() + : replicationStatus_; } /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
@@ -512,18 +609,22 @@ public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus( * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ @java.lang.Override - public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder + getReplicationStatusOrBuilder() { return getReplicationStatus(); } public static final int ETAG_FIELD_NUMBER = 6; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -532,29 +633,29 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -565,13 +666,17 @@ public java.lang.String getEtag() { public static final int CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER = 7; private boolean clientSpecifiedPayloadChecksum_; /** + * + * *
    * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
    * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
    * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
    * 
* - * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clientSpecifiedPayloadChecksum. */ @java.lang.Override @@ -580,6 +685,7 @@ public boolean getClientSpecifiedPayloadChecksum() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -591,8 +697,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_); } @@ -602,7 +707,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (destroyTime_ != null) { output.writeMessage(3, getDestroyTime()); } - if (state_ != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (replicationStatus_ != null) { @@ -627,27 +733,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (destroyTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDestroyTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDestroyTime()); } - if (state_ != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.secretmanager.v1.SecretVersion.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (replicationStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getReplicationStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReplicationStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } if (clientSpecifiedPayloadChecksum_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, clientSpecifiedPayloadChecksum_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, clientSpecifiedPayloadChecksum_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -657,35 +760,31 @@ 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.secretmanager.v1.SecretVersion)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.SecretVersion other = (com.google.cloud.secretmanager.v1.SecretVersion) obj; + com.google.cloud.secretmanager.v1.SecretVersion other = + (com.google.cloud.secretmanager.v1.SecretVersion) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasDestroyTime() != other.hasDestroyTime()) return false; if (hasDestroyTime()) { - if (!getDestroyTime() - .equals(other.getDestroyTime())) return false; + if (!getDestroyTime().equals(other.getDestroyTime())) return false; } if (state_ != other.state_) return false; if (hasReplicationStatus() != other.hasReplicationStatus()) return false; if (hasReplicationStatus()) { - if (!getReplicationStatus() - .equals(other.getReplicationStatus())) return false; + if (!getReplicationStatus().equals(other.getReplicationStatus())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; - if (getClientSpecifiedPayloadChecksum() - != other.getClientSpecifiedPayloadChecksum()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getClientSpecifiedPayloadChecksum() != other.getClientSpecifiedPayloadChecksum()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -716,125 +815,134 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + CLIENT_SPECIFIED_PAYLOAD_CHECKSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientSpecifiedPayloadChecksum()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientSpecifiedPayloadChecksum()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretVersion parseFrom( 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.secretmanager.v1.SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.SecretVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion 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.secretmanager.v1.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A secret version resource in the Secret Manager API.
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.SecretVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.SecretVersion) com.google.cloud.secretmanager.v1.SecretVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.SecretVersion.class, com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); + com.google.cloud.secretmanager.v1.SecretVersion.class, + com.google.cloud.secretmanager.v1.SecretVersion.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.SecretVersion.newBuilder() @@ -842,16 +950,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -885,9 +992,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_SecretVersion_descriptor; } @java.lang.Override @@ -906,7 +1013,8 @@ public com.google.cloud.secretmanager.v1.SecretVersion build() { @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion buildPartial() { - com.google.cloud.secretmanager.v1.SecretVersion result = new com.google.cloud.secretmanager.v1.SecretVersion(this); + com.google.cloud.secretmanager.v1.SecretVersion result = + new com.google.cloud.secretmanager.v1.SecretVersion(this); result.name_ = name_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -934,38 +1042,39 @@ public com.google.cloud.secretmanager.v1.SecretVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.SecretVersion) { - return mergeFrom((com.google.cloud.secretmanager.v1.SecretVersion)other); + return mergeFrom((com.google.cloud.secretmanager.v1.SecretVersion) other); } else { super.mergeFrom(other); return this; @@ -973,7 +1082,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.SecretVersion other) { - if (other == com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.SecretVersion.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1028,6 +1138,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1036,13 +1148,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1051,6 +1163,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1059,15 +1173,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1075,6 +1188,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1083,20 +1198,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1105,15 +1222,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
      * format `projects/*/secrets/*/versions/*`.
@@ -1122,16 +1242,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1139,39 +1259,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1187,14 +1326,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1205,17 +1347,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1227,11 +1373,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1245,48 +1395,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1294,45 +1460,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp destroyTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + destroyTimeBuilder_; /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the destroyTime field is set. */ public boolean hasDestroyTime() { return destroyTimeBuilder_ != null || destroyTime_ != null; } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The destroyTime. */ public com.google.protobuf.Timestamp getDestroyTime() { if (destroyTimeBuilder_ == null) { - return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; + return destroyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : destroyTime_; } else { return destroyTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { @@ -1348,16 +1533,19 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDestroyTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (destroyTimeBuilder_ == null) { destroyTime_ = builderForValue.build(); onChanged(); @@ -1368,19 +1556,25 @@ public Builder setDestroyTime( return this; } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { if (destroyTime_ != null) { destroyTime_ = - com.google.protobuf.Timestamp.newBuilder(destroyTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(destroyTime_) + .mergeFrom(value) + .buildPartial(); } else { destroyTime_ = value; } @@ -1392,13 +1586,17 @@ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDestroyTime() { if (destroyTimeBuilder_ == null) { @@ -1412,54 +1610,70 @@ public Builder clearDestroyTime() { return this; } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDestroyTimeBuilder() { - + onChanged(); return getDestroyTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { if (destroyTimeBuilder_ != null) { return destroyTimeBuilder_.getMessageOrBuilder(); } else { - return destroyTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; + return destroyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : destroyTime_; } } /** + * + * *
      * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
      * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
      * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
      * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDestroyTimeFieldBuilder() { if (destroyTimeBuilder_ == null) { - destroyTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDestroyTime(), - getParentForChildren(), - isClean()); + destroyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDestroyTime(), getParentForChildren(), isClean()); destroyTime_ = null; } return destroyTimeBuilder_; @@ -1467,51 +1681,75 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretVersion.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.secretmanager.v1.SecretVersion.State result = com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); - return result == null ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED : result; + com.google.cloud.secretmanager.v1.SecretVersion.State result = + com.google.cloud.secretmanager.v1.SecretVersion.State.valueOf(state_); + return result == null + ? com.google.cloud.secretmanager.v1.SecretVersion.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1519,21 +1757,26 @@ public Builder setState(com.google.cloud.secretmanager.v1.SecretVersion.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1541,34 +1784,47 @@ public Builder clearState() { private com.google.cloud.secretmanager.v1.ReplicationStatus replicationStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> replicationStatusBuilder_; + com.google.cloud.secretmanager.v1.ReplicationStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> + replicationStatusBuilder_; /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return Whether the replicationStatus field is set. */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return The replicationStatus. */ public com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { - return replicationStatus_ == null ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; + return replicationStatus_ == null + ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() + : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1589,6 +1845,8 @@ public Builder setReplicationStatus(com.google.cloud.secretmanager.v1.Replicatio return this; } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1607,17 +1865,22 @@ public Builder setReplicationStatus( return this; } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public Builder mergeReplicationStatus(com.google.cloud.secretmanager.v1.ReplicationStatus value) { + public Builder mergeReplicationStatus( + com.google.cloud.secretmanager.v1.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = - com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.ReplicationStatus.newBuilder(replicationStatus_) + .mergeFrom(value) + .buildPartial(); } else { replicationStatus_ = value; } @@ -1629,6 +1892,8 @@ public Builder mergeReplicationStatus(com.google.cloud.secretmanager.v1.Replicat return this; } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1647,33 +1912,42 @@ public Builder clearReplicationStatus() { return this; } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public com.google.cloud.secretmanager.v1.ReplicationStatus.Builder getReplicationStatusBuilder() { - + public com.google.cloud.secretmanager.v1.ReplicationStatus.Builder + getReplicationStatusBuilder() { + onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ - public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { + public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder + getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { - return replicationStatus_ == null ? - com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() : replicationStatus_; + return replicationStatus_ == null + ? com.google.cloud.secretmanager.v1.ReplicationStatus.getDefaultInstance() + : replicationStatus_; } } /** + * + * *
      * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
@@ -1681,14 +1955,17 @@ public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicati * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> + com.google.cloud.secretmanager.v1.ReplicationStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { - replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.ReplicationStatus, com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder>( - getReplicationStatus(), - getParentForChildren(), - isClean()); + replicationStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.ReplicationStatus, + com.google.cloud.secretmanager.v1.ReplicationStatus.Builder, + com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder>( + getReplicationStatus(), getParentForChildren(), isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; @@ -1696,18 +1973,20 @@ public com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicati private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1716,20 +1995,21 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1737,68 +2017,80 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
      * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - private boolean clientSpecifiedPayloadChecksum_ ; + private boolean clientSpecifiedPayloadChecksum_; /** + * + * *
      * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
      * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
      * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
      * 
* - * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clientSpecifiedPayloadChecksum. */ @java.lang.Override @@ -1806,41 +2098,51 @@ public boolean getClientSpecifiedPayloadChecksum() { return clientSpecifiedPayloadChecksum_; } /** + * + * *
      * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
      * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
      * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
      * 
* - * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The clientSpecifiedPayloadChecksum to set. * @return This builder for chaining. */ public Builder setClientSpecifiedPayloadChecksum(boolean value) { - + clientSpecifiedPayloadChecksum_ = value; onChanged(); return this; } /** + * + * *
      * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
      * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
      * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
      * 
* - * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearClientSpecifiedPayloadChecksum() { - + clientSpecifiedPayloadChecksum_ = false; 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); } @@ -1850,12 +2152,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.SecretVersion) private static final com.google.cloud.secretmanager.v1.SecretVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.SecretVersion(); } @@ -1864,16 +2166,16 @@ public static com.google.cloud.secretmanager.v1.SecretVersion getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,6 +2190,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java index feb6a0a9..50b4f0e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface SecretVersionOrBuilder extends +public interface SecretVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.SecretVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -16,10 +34,13 @@ public interface SecretVersionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the
    * format `projects/*/secrets/*/versions/*`.
@@ -28,109 +49,149 @@ public interface SecretVersionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the destroyTime field is set. */ boolean hasDestroyTime(); /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The destroyTime. */ com.google.protobuf.Timestamp getDestroyTime(); /** + * + * *
    * Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed.
    * Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is
    * [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder(); /** + * + * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* - * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.secretmanager.v1.SecretVersion.State getState(); /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return Whether the replicationStatus field is set. */ boolean hasReplicationStatus(); /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * .google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5; + * * @return The replicationStatus. */ com.google.cloud.secretmanager.v1.ReplicationStatus getReplicationStatus(); /** + * + * *
    * The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
@@ -140,33 +201,42 @@ public interface SecretVersionOrBuilder extends com.google.cloud.secretmanager.v1.ReplicationStatusOrBuilder getReplicationStatusOrBuilder(); /** + * + * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
    * 
* * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been
    * received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on
    * [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
    * 
* - * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The clientSpecifiedPayloadChecksum. */ boolean getClientSpecifiedPayloadChecksum(); diff --git a/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java new file mode 100644 index 00000000..48e7a44f --- /dev/null +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java @@ -0,0 +1,389 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1/service.proto + +package com.google.cloud.secretmanager.v1; + +public final class ServiceProto { + private ServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/secretmanager/v1/service." + + "proto\022\035google.cloud.secretmanager.v1\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032-google/" + + "cloud/secretmanager/v1/resources.proto\032\036" + + "google/iam/v1/iam_policy.proto\032\032google/i" + + "am/v1/policy.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\"\237\001\n\022ListSecretsRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003" + + "\340A\001\"z\n\023ListSecretsResponse\0226\n\007secrets\030\001 " + + "\003(\0132%.google.cloud.secretmanager.v1.Secr" + + "et\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_siz" + + "e\030\003 \001(\005\"\256\001\n\023CreateSecretRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\026\n\tsecret_id\030\002 \001(\tB" + + "\003\340A\002\022:\n\006secret\030\003 \001(\0132%.google.cloud.secr" + + "etmanager.v1.SecretB\003\340A\002\"\232\001\n\027AddSecretVe" + + "rsionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#se" + + "cretmanager.googleapis.com/Secret\022B\n\007pay" + + "load\030\002 \001(\0132,.google.cloud.secretmanager." + + "v1.SecretPayloadB\003\340A\002\"M\n\020GetSecretReques" + + "t\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#secretmanager.g" + + "oogleapis.com/Secret\"\236\001\n\031ListSecretVersi" + + "onsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#secr" + + "etmanager.googleapis.com/Secret\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\211\001\n\032ListSecretVers" + + "ionsResponse\022>\n\010versions\030\001 \003(\0132,.google." + + "cloud.secretmanager.v1.SecretVersion\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" + + "\005\"[\n\027GetSecretVersionRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*secretmanager.googleapis.com" + + "/SecretVersion\"\207\001\n\023UpdateSecretRequest\022:" + + "\n\006secret\030\001 \001(\0132%.google.cloud.secretmana" + + "ger.v1.SecretB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"^\n\032Acce" + + "ssSecretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A" + + "\002\372A,\n*secretmanager.googleapis.com/Secre" + + "tVersion\"\233\001\n\033AccessSecretVersionResponse" + + "\022=\n\004name\030\001 \001(\tB/\372A,\n*secretmanager.googl" + + "eapis.com/SecretVersion\022=\n\007payload\030\002 \001(\013" + + "2,.google.cloud.secretmanager.v1.SecretP" + + "ayload\"c\n\023DeleteSecretRequest\0229\n\004name\030\001 " + + "\001(\tB+\340A\002\372A%\n#secretmanager.googleapis.co" + + "m/Secret\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DisableSe" + + "cretVersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*secretmanager.googleapis.com/SecretVer" + + "sion\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"q\n\032EnableSecretV" + + "ersionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*sec" + + "retmanager.googleapis.com/SecretVersion\022" + + "\021\n\004etag\030\002 \001(\tB\003\340A\001\"r\n\033DestroySecretVersi" + + "onRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*secretm" + + "anager.googleapis.com/SecretVersion\022\021\n\004e" + + "tag\030\002 \001(\tB\003\340A\0012\317\025\n\024SecretManagerService\022" + + "\246\001\n\013ListSecrets\0221.google.cloud.secretman" + + "ager.v1.ListSecretsRequest\0322.google.clou" + + "d.secretmanager.v1.ListSecretsResponse\"0" + + "\202\323\344\223\002!\022\037/v1/{parent=projects/*}/secrets\332" + + "A\006parent\022\264\001\n\014CreateSecret\0222.google.cloud" + + ".secretmanager.v1.CreateSecretRequest\032%." + + "google.cloud.secretmanager.v1.Secret\"I\202\323" + + "\344\223\002)\"\037/v1/{parent=projects/*}/secrets:\006s" + + "ecret\332A\027parent,secret_id,secret\022\302\001\n\020AddS" + + "ecretVersion\0226.google.cloud.secretmanage" + + "r.v1.AddSecretVersionRequest\032,.google.cl" + + "oud.secretmanager.v1.SecretVersion\"H\202\323\344\223" + + "\0021\",/v1/{parent=projects/*/secrets/*}:ad" + + "dVersion:\001*\332A\016parent,payload\022\223\001\n\tGetSecr" + + "et\022/.google.cloud.secretmanager.v1.GetSe" + + "cretRequest\032%.google.cloud.secretmanager" + + ".v1.Secret\".\202\323\344\223\002!\022\037/v1/{name=projects/*" + + "/secrets/*}\332A\004name\022\266\001\n\014UpdateSecret\0222.go" + + "ogle.cloud.secretmanager.v1.UpdateSecret" + + "Request\032%.google.cloud.secretmanager.v1." + + "Secret\"K\202\323\344\223\00202&/v1/{secret.name=project" + + "s/*/secrets/*}:\006secret\332A\022secret,update_m" + + "ask\022\212\001\n\014DeleteSecret\0222.google.cloud.secr" + + "etmanager.v1.DeleteSecretRequest\032\026.googl" + + "e.protobuf.Empty\".\202\323\344\223\002!*\037/v1/{name=proj" + + "ects/*/secrets/*}\332A\004name\022\306\001\n\022ListSecretV" + + "ersions\0228.google.cloud.secretmanager.v1." + + "ListSecretVersionsRequest\0329.google.cloud" + + ".secretmanager.v1.ListSecretVersionsResp" + + "onse\";\202\323\344\223\002,\022*/v1/{parent=projects/*/sec" + + "rets/*}/versions\332A\006parent\022\263\001\n\020GetSecretV" + + "ersion\0226.google.cloud.secretmanager.v1.G" + + "etSecretVersionRequest\032,.google.cloud.se" + + "cretmanager.v1.SecretVersion\"9\202\323\344\223\002,\022*/v" + + "1/{name=projects/*/secrets/*/versions/*}" + + "\332A\004name\022\316\001\n\023AccessSecretVersion\0229.google" + + ".cloud.secretmanager.v1.AccessSecretVers" + + "ionRequest\032:.google.cloud.secretmanager." + + "v1.AccessSecretVersionResponse\"@\202\323\344\223\0023\0221" + + "/v1/{name=projects/*/secrets/*/versions/" + + "*}:access\332A\004name\022\306\001\n\024DisableSecretVersio" + + "n\022:.google.cloud.secretmanager.v1.Disabl" + + "eSecretVersionRequest\032,.google.cloud.sec" + + "retmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1" + + "/{name=projects/*/secrets/*/versions/*}:" + + "disable:\001*\332A\004name\022\303\001\n\023EnableSecretVersio" + + "n\0229.google.cloud.secretmanager.v1.Enable" + + "SecretVersionRequest\032,.google.cloud.secr" + + "etmanager.v1.SecretVersion\"C\202\323\344\223\0026\"1/v1/" + + "{name=projects/*/secrets/*/versions/*}:e" + + "nable:\001*\332A\004name\022\306\001\n\024DestroySecretVersion" + + "\022:.google.cloud.secretmanager.v1.Destroy" + + "SecretVersionRequest\032,.google.cloud.secr" + + "etmanager.v1.SecretVersion\"D\202\323\344\223\0027\"2/v1/" + + "{name=projects/*/secrets/*/versions/*}:d" + + "estroy:\001*\332A\004name\022\206\001\n\014SetIamPolicy\022\".goog" + + "le.iam.v1.SetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\";\202\323\344\223\0025\"0/v1/{resource=proj" + + "ects/*/secrets/*}:setIamPolicy:\001*\022\203\001\n\014Ge" + + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"8\202\323\344\223\0022\0220/" + + "v1/{resource=projects/*/secrets/*}:getIa" + + "mPolicy\022\254\001\n\022TestIamPermissions\022(.google." + + "iam.v1.TestIamPermissionsRequest\032).googl" + + "e.iam.v1.TestIamPermissionsResponse\"A\202\323\344" + + "\223\002;\"6/v1/{resource=projects/*/secrets/*}" + + ":testIamPermissions:\001*\032P\312A\034secretmanager" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\353\001\n!com.google." + + "cloud.secretmanager.v1B\014ServiceProtoP\001ZJ" + + "google.golang.org/genproto/googleapis/cl" + + "oud/secretmanager/v1;secretmanager\370\001\001\242\002\003" + + "GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Go" + + "ogle\\Cloud\\SecretManager\\V1\352\002 Google::Cl" + + "oud::SecretManager::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.secretmanager.v1.ResourcesProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretsResponse_descriptor, + new java.lang.String[] { + "Secrets", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CreateSecretRequest_descriptor, + new java.lang.String[] { + "Parent", "SecretId", "Secret", + }); + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AddSecretVersionRequest_descriptor, + new java.lang.String[] { + "Parent", "Payload", + }); + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListSecretVersionsResponse_descriptor, + new java.lang.String[] { + "Versions", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetSecretVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor, + new java.lang.String[] { + "Secret", "UpdateMask", + }); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_AccessSecretVersionResponse_descriptor, + new java.lang.String[] { + "Name", "Payload", + }); + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DeleteSecretRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DisableSecretVersionRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_EnableSecretVersionRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DestroySecretVersionRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + 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.secretmanager.v1.ResourcesProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java index 1d4402dc..9fde0377 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * A Pub/Sub topic which Secret Manager will publish to when control plane
  * events occur on this secret.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.secretmanager.v1.Topic}
  */
-public final class Topic extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Topic extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Topic)
     TopicOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Topic.newBuilder() to construct.
   private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Topic() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Topic();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Topic(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,47 +71,52 @@ private Topic(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
+    return com.google.cloud.secretmanager.v1.ResourcesProto
+        .internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.secretmanager.v1.Topic.class, com.google.cloud.secretmanager.v1.Topic.Builder.class);
+            com.google.cloud.secretmanager.v1.Topic.class,
+            com.google.cloud.secretmanager.v1.Topic.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -102,6 +124,7 @@ private Topic(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -110,14 +133,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -125,16 +149,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -143,6 +166,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +178,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_); } @@ -179,15 +202,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.Topic)) { return super.equals(obj); } com.google.cloud.secretmanager.v1.Topic other = (com.google.cloud.secretmanager.v1.Topic) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,97 +228,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.secretmanager.v1.Topic parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.secretmanager.v1.Topic parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Topic parseFrom( 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.secretmanager.v1.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.Topic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.Topic 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.secretmanager.v1.Topic 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.secretmanager.v1.Topic 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.secretmanager.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Pub/Sub topic which Secret Manager will publish to when control plane
    * events occur on this secret.
@@ -304,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.secretmanager.v1.Topic}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Topic)
       com.google.cloud.secretmanager.v1.TopicOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Topic_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.secretmanager.v1.Topic.class, com.google.cloud.secretmanager.v1.Topic.Builder.class);
+              com.google.cloud.secretmanager.v1.Topic.class,
+              com.google.cloud.secretmanager.v1.Topic.Builder.class);
     }
 
     // Construct using com.google.cloud.secretmanager.v1.Topic.newBuilder()
@@ -326,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -345,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.secretmanager.v1.ResourcesProto.internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.secretmanager.v1.ResourcesProto
+          .internal_static_google_cloud_secretmanager_v1_Topic_descriptor;
     }
 
     @java.lang.Override
@@ -366,7 +396,8 @@ public com.google.cloud.secretmanager.v1.Topic build() {
 
     @java.lang.Override
     public com.google.cloud.secretmanager.v1.Topic buildPartial() {
-      com.google.cloud.secretmanager.v1.Topic result = new com.google.cloud.secretmanager.v1.Topic(this);
+      com.google.cloud.secretmanager.v1.Topic result =
+          new com.google.cloud.secretmanager.v1.Topic(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -376,38 +407,39 @@ public com.google.cloud.secretmanager.v1.Topic buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.secretmanager.v1.Topic) {
-        return mergeFrom((com.google.cloud.secretmanager.v1.Topic)other);
+        return mergeFrom((com.google.cloud.secretmanager.v1.Topic) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,6 +483,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -458,13 +492,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,6 +507,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -480,15 +516,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,6 +531,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -503,20 +540,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -524,15 +563,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Pub/Sub topic that will be published to, in the
      * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -540,23 +582,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @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); } @@ -566,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Topic) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Topic) private static final com.google.cloud.secretmanager.v1.Topic DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Topic(); } @@ -580,16 +622,16 @@ public static com.google.cloud.secretmanager.v1.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Topic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java index 36e17a7c..8e231332 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/resources.proto package com.google.cloud.secretmanager.v1; -public interface TopicOrBuilder extends +public interface TopicOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Topic) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -15,10 +33,13 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Pub/Sub topic that will be published to, in the
    * following format: `projects/*/topics/*`. For publication to succeed, the
@@ -26,8 +47,8 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java index a58b7f9a..bb5dfc3e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; /** + * + * *
  * Request message for [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret].
  * 
* * Protobuf type {@code google.cloud.secretmanager.v1.UpdateSecretRequest} */ -public final class UpdateSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSecretRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.UpdateSecretRequest) UpdateSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSecretRequest.newBuilder() to construct. private UpdateSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSecretRequest() { - } + + private UpdateSecretRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSecretRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSecretRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,84 @@ private UpdateSecretRequest( case 0: done = true; break; - case 10: { - com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; - if (secret_ != null) { - subBuilder = secret_.toBuilder(); - } - secret_ = input.readMessage(com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secret_); - secret_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.secretmanager.v1.Secret.Builder subBuilder = null; + if (secret_ != null) { + subBuilder = secret_.toBuilder(); + } + secret_ = + input.readMessage( + com.google.cloud.secretmanager.v1.Secret.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(secret_); + secret_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, + com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); } public static final int SECRET_FIELD_NUMBER = 1; private com.google.cloud.secretmanager.v1.Secret secret_; /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ @java.lang.Override @@ -125,23 +153,34 @@ public boolean hasSecret() { return secret_ != null; } /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ @java.lang.Override public com.google.cloud.secretmanager.v1.Secret getSecret() { - return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { @@ -151,11 +190,15 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -163,11 +206,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -175,11 +222,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -187,6 +237,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +249,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 (secret_ != null) { output.writeMessage(1, getSecret()); } @@ -216,12 +266,10 @@ public int getSerializedSize() { size = 0; if (secret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSecret()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecret()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +279,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.secretmanager.v1.UpdateSecretRequest)) { return super.equals(obj); } - com.google.cloud.secretmanager.v1.UpdateSecretRequest other = (com.google.cloud.secretmanager.v1.UpdateSecretRequest) obj; + com.google.cloud.secretmanager.v1.UpdateSecretRequest other = + (com.google.cloud.secretmanager.v1.UpdateSecretRequest) obj; if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { - if (!getSecret() - .equals(other.getSecret())) return false; + if (!getSecret().equals(other.getSecret())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseFrom( 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.secretmanager.v1.UpdateSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest 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.secretmanager.v1.UpdateSecretRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.UpdateSecretRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret].
    * 
* * Protobuf type {@code google.cloud.secretmanager.v1.UpdateSecretRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.UpdateSecretRequest) com.google.cloud.secretmanager.v1.UpdateSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); + com.google.cloud.secretmanager.v1.UpdateSecretRequest.class, + com.google.cloud.secretmanager.v1.UpdateSecretRequest.Builder.class); } // Construct using com.google.cloud.secretmanager.v1.UpdateSecretRequest.newBuilder() @@ -391,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto.internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateSecretRequest_descriptor; } @java.lang.Override @@ -441,7 +497,8 @@ public com.google.cloud.secretmanager.v1.UpdateSecretRequest build() { @java.lang.Override public com.google.cloud.secretmanager.v1.UpdateSecretRequest buildPartial() { - com.google.cloud.secretmanager.v1.UpdateSecretRequest result = new com.google.cloud.secretmanager.v1.UpdateSecretRequest(this); + com.google.cloud.secretmanager.v1.UpdateSecretRequest result = + new com.google.cloud.secretmanager.v1.UpdateSecretRequest(this); if (secretBuilder_ == null) { result.secret_ = secret_; } else { @@ -460,38 +517,39 @@ public com.google.cloud.secretmanager.v1.UpdateSecretRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.secretmanager.v1.UpdateSecretRequest) { - return mergeFrom((com.google.cloud.secretmanager.v1.UpdateSecretRequest)other); + return mergeFrom((com.google.cloud.secretmanager.v1.UpdateSecretRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.secretmanager.v1.UpdateSecretRequest other) { - if (other == com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.secretmanager.v1.UpdateSecretRequest.getDefaultInstance()) + return this; if (other.hasSecret()) { mergeSecret(other.getSecret()); } @@ -525,7 +584,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.secretmanager.v1.UpdateSecretRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.secretmanager.v1.UpdateSecretRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,39 +597,58 @@ public Builder mergeFrom( private com.google.cloud.secretmanager.v1.Secret secret_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> secretBuilder_; + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder> + secretBuilder_; /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ public boolean hasSecret() { return secretBuilder_ != null || secret_ != null; } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ public com.google.cloud.secretmanager.v1.Secret getSecret() { if (secretBuilder_ == null) { - return secret_ == null ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } else { return secretBuilder_.getMessage(); } } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { @@ -585,14 +664,17 @@ public Builder setSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSecret( - com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { + public Builder setSecret(com.google.cloud.secretmanager.v1.Secret.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); @@ -603,17 +685,23 @@ public Builder setSecret( return this; } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { if (secretBuilder_ == null) { if (secret_ != null) { secret_ = - com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_).mergeFrom(value).buildPartial(); + com.google.cloud.secretmanager.v1.Secret.newBuilder(secret_) + .mergeFrom(value) + .buildPartial(); } else { secret_ = value; } @@ -625,11 +713,15 @@ public Builder mergeSecret(com.google.cloud.secretmanager.v1.Secret value) { return this; } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecret() { if (secretBuilder_ == null) { @@ -643,48 +735,64 @@ public Builder clearSecret() { return this; } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.Secret.Builder getSecretBuilder() { - + onChanged(); return getSecretFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { - return secret_ == null ? - com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() : secret_; + return secret_ == null + ? com.google.cloud.secretmanager.v1.Secret.getDefaultInstance() + : secret_; } } /** + * + * *
      * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
      * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder> + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { - secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.secretmanager.v1.Secret, com.google.cloud.secretmanager.v1.Secret.Builder, com.google.cloud.secretmanager.v1.SecretOrBuilder>( - getSecret(), - getParentForChildren(), - isClean()); + secretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.secretmanager.v1.Secret, + com.google.cloud.secretmanager.v1.Secret.Builder, + com.google.cloud.secretmanager.v1.SecretOrBuilder>( + getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; @@ -692,39 +800,55 @@ public com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,14 +864,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -758,17 +884,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -780,11 +909,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -798,55 +930,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Specifies the fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.UpdateSecretRequest) } // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.UpdateSecretRequest) private static final com.google.cloud.secretmanager.v1.UpdateSecretRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.UpdateSecretRequest(); } @@ -870,16 +1015,16 @@ public static com.google.cloud.secretmanager.v1.UpdateSecretRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSecretRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSecretRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -894,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.secretmanager.v1.UpdateSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java rename to proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java index 21e7749c..975d3f39 100644 --- a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java +++ b/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateSecretRequestOrBuilder.java @@ -1,63 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/secretmanager/v1/service.proto package com.google.cloud.secretmanager.v1; -public interface UpdateSecretRequestOrBuilder extends +public interface UpdateSecretRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.UpdateSecretRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the secret field is set. */ boolean hasSecret(); /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The secret. */ com.google.cloud.secretmanager.v1.Secret getSecret(); /** + * + * *
    * Required. [Secret][google.cloud.secretmanager.v1.Secret] with updated field values.
    * 
* - * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.secretmanager.v1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.secretmanager.v1.SecretOrBuilder getSecretOrBuilder(); /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Specifies the fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto b/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto rename to proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto b/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto rename to proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto