From 1b635b05dd428c2596269f936253fca38c12cb42 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Feb 2023 16:20:01 +0000 Subject: [PATCH 1/2] chore(bazel): update protobuf to v3.21.12 PiperOrigin-RevId: 503267695 Source-Link: https://github.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImI5ODIzMGI5ZTY4YTM4MjhjZjEzODI5NmU5YTIwZTAzNzQ5YWUwYTAifQ== --- .../java/com/google/iam/v2/PoliciesGrpc.java | 813 -------- .../com/google/iam/v2beta/PoliciesGrpc.java | 815 -------- .../com/google/iam/v1/IamPolicyProto.java | 149 -- .../java/com/google/iam/v1/OptionsProto.java | 65 - .../java/com/google/iam/v1/PolicyProto.java | 161 -- .../java/com/google/iam/v2/DenyRuleProto.java | 75 - .../java/com/google/iam/v2/PolicyProto.java | 256 --- .../com/google/iam/v2beta/DenyRuleProto.java | 77 - .../com/google/iam/v2beta/PolicyProto.java | 257 --- .../java/com/google/iam/v1/IAMPolicyGrpc.java | 385 ++-- .../java/com/google/iam/v1/AuditConfig.java | 494 ++--- .../com/google/iam/v1/AuditConfigDelta.java | 625 +++--- .../iam/v1/AuditConfigDeltaOrBuilder.java | 51 +- .../google/iam/v1/AuditConfigOrBuilder.java | 45 +- .../com/google/iam/v1/AuditLogConfig.java | 489 ++--- .../iam/v1/AuditLogConfigOrBuilder.java | 42 +- .../main/java/com/google/iam/v1/Binding.java | 547 +++--- .../java/com/google/iam/v1/BindingDelta.java | 646 +++---- .../google/iam/v1/BindingDeltaOrBuilder.java | 50 +- .../com/google/iam/v1/BindingOrBuilder.java | 53 +- .../google/iam/v1/GetIamPolicyRequest.java | 492 ++--- .../iam/v1/GetIamPolicyRequestOrBuilder.java | 43 +- .../com/google/iam/v1/GetPolicyOptions.java | 284 ++- .../iam/v1/GetPolicyOptionsOrBuilder.java | 21 +- .../com/google/iam/v1/IamPolicyProto.java | 131 ++ .../java/com/google/iam/v1/OptionsProto.java | 52 + .../main/java/com/google/iam/v1/Policy.java | 669 +++---- .../java/com/google/iam/v1/PolicyDelta.java | 540 +++--- .../google/iam/v1/PolicyDeltaOrBuilder.java | 55 +- .../com/google/iam/v1/PolicyOrBuilder.java | 62 +- .../java/com/google/iam/v1/PolicyProto.java | 144 ++ .../google/iam/v1/SetIamPolicyRequest.java | 614 +++--- .../iam/v1/SetIamPolicyRequestOrBuilder.java | 51 +- .../iam/v1/TestIamPermissionsRequest.java | 486 ++--- .../TestIamPermissionsRequestOrBuilder.java | 53 +- .../iam/v1/TestIamPermissionsResponse.java | 358 ++-- .../TestIamPermissionsResponseOrBuilder.java | 36 +- .../java/com/google/iam/v2/PoliciesGrpc.java | 683 +++++++ .../google/iam/v2/CreatePolicyRequest.java | 540 +++--- .../iam/v2/CreatePolicyRequestOrBuilder.java | 44 +- .../google/iam/v2/DeletePolicyRequest.java | 416 ++-- .../iam/v2/DeletePolicyRequestOrBuilder.java | 36 +- .../main/java/com/google/iam/v2/DenyRule.java | 763 +++----- .../com/google/iam/v2/DenyRuleOrBuilder.java | 98 +- .../java/com/google/iam/v2/DenyRuleProto.java | 57 + .../com/google/iam/v2/GetPolicyRequest.java | 324 ++-- .../iam/v2/GetPolicyRequestOrBuilder.java | 27 +- .../google/iam/v2/ListPoliciesRequest.java | 459 ++--- .../iam/v2/ListPoliciesRequestOrBuilder.java | 39 +- .../google/iam/v2/ListPoliciesResponse.java | 501 +++-- .../iam/v2/ListPoliciesResponseOrBuilder.java | 46 +- .../main/java/com/google/iam/v2/Policy.java | 1722 +++++++---------- .../iam/v2/PolicyOperationMetadata.java | 383 ++-- .../v2/PolicyOperationMetadataOrBuilder.java | 26 +- .../com/google/iam/v2/PolicyOrBuilder.java | 173 +- .../java/com/google/iam/v2/PolicyProto.java | 224 +++ .../java/com/google/iam/v2/PolicyRule.java | 459 ++--- .../google/iam/v2/PolicyRuleOrBuilder.java | 35 +- .../google/iam/v2/UpdatePolicyRequest.java | 371 ++-- .../iam/v2/UpdatePolicyRequestOrBuilder.java | 26 +- .../src/main/proto/google/iam/v2/deny.proto | 0 .../src/main/proto/google/iam/v2/policy.proto | 0 .../com/google/iam/v2beta/PoliciesGrpc.java | 683 +++++++ .../iam/v2beta/CreatePolicyRequest.java | 546 +++--- .../v2beta/CreatePolicyRequestOrBuilder.java | 44 +- .../iam/v2beta/DeletePolicyRequest.java | 420 ++-- .../v2beta/DeletePolicyRequestOrBuilder.java | 36 +- .../java/com/google/iam/v2beta/DenyRule.java | 775 +++----- .../google/iam/v2beta/DenyRuleOrBuilder.java | 98 +- .../com/google/iam/v2beta/DenyRuleProto.java | 58 + .../google/iam/v2beta/GetPolicyRequest.java | 327 ++-- .../iam/v2beta/GetPolicyRequestOrBuilder.java | 27 +- .../iam/v2beta/ListPoliciesRequest.java | 463 ++--- .../v2beta/ListPoliciesRequestOrBuilder.java | 39 +- .../iam/v2beta/ListPoliciesResponse.java | 505 +++-- .../v2beta/ListPoliciesResponseOrBuilder.java | 46 +- .../java/com/google/iam/v2beta/Policy.java | 1639 +++++++--------- .../iam/v2beta/PolicyOperationMetadata.java | 383 ++-- .../PolicyOperationMetadataOrBuilder.java | 26 +- .../google/iam/v2beta/PolicyOrBuilder.java | 164 +- .../com/google/iam/v2beta/PolicyProto.java | 225 +++ .../com/google/iam/v2beta/PolicyRule.java | 474 ++--- .../iam/v2beta/PolicyRuleOrBuilder.java | 35 +- .../iam/v2beta/UpdatePolicyRequest.java | 377 ++-- .../v2beta/UpdatePolicyRequestOrBuilder.java | 26 +- .../main/proto/google/iam/v2beta/deny.proto | 0 .../main/proto/google/iam/v2beta/policy.proto | 0 87 files changed, 10276 insertions(+), 14778 deletions(-) delete mode 100644 java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java delete mode 100644 java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java delete mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java delete mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java delete mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java delete mode 100644 java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java delete mode 100644 java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java delete mode 100644 java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java delete mode 100644 java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java rename {java-iam => owl-bot-staging/java-iam/v1}/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java (61%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java (75%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java (71%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java (73%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java (70%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java (73%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java (71%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java (85%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java (71%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java (73%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java (92%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java (64%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java (59%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java (70%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java create mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java (84%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java (76%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java (71%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java (86%) create mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java (69%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java (75%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java (69%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java (68%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java (68%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java (61%) create mode 100644 owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java (79%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java (75%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java (86%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java (92%) create mode 100644 owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java (70%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java (75%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java (71%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java (64%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java (64%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java (58%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java (69%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java (63%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java (69%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java (69%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto (100%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto (100%) create mode 100644 owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java (79%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java (75%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java (86%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java (92%) create mode 100644 owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java (70%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java (71%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java (75%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java (72%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java (66%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java (64%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java (59%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java (64%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java (68%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java (69%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto (100%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto (100%) diff --git a/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java b/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java deleted file mode 100644 index bfd3857e07..0000000000 --- a/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java +++ /dev/null @@ -1,813 +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.iam.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An interface for managing Identity and Access Management (IAM) policies.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/v2/policy.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PoliciesGrpc { - - private PoliciesGrpc() {} - - public static final String SERVICE_NAME = "google.iam.v2.Policies"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> - getListPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicies", - requestType = com.google.iam.v2.ListPoliciesRequest.class, - responseType = com.google.iam.v2.ListPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> - getListPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> - getListPoliciesMethod; - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - PoliciesGrpc.getListPoliciesMethod = - getListPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.ListPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.ListPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) - .build(); - } - } - } - return getListPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2.GetPolicyRequest, com.google.iam.v2.Policy> - getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = com.google.iam.v2.GetPolicyRequest.class, - responseType = com.google.iam.v2.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2.GetPolicyRequest, com.google.iam.v2.Policy> - getGetPolicyMethod() { - io.grpc.MethodDescriptor - getGetPolicyMethod; - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - PoliciesGrpc.getGetPolicyMethod = - getGetPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.Policy.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", - requestType = com.google.iam.v2.CreatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - PoliciesGrpc.getCreatePolicyMethod = - getCreatePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.CreatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) - .build(); - } - } - } - return getCreatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = com.google.iam.v2.UpdatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - PoliciesGrpc.getUpdatePolicyMethod = - getUpdatePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", - requestType = com.google.iam.v2.DeletePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - PoliciesGrpc.getDeletePolicyMethod = - getDeletePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.DeletePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) - .build(); - } - } - } - return getDeletePolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PoliciesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - }; - return PoliciesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - }; - return PoliciesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PoliciesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - }; - return PoliciesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public abstract static class PoliciesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies( - com.google.iam.v2.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy( - com.google.iam.v2.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy( - com.google.iam.v2.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy( - com.google.iam.v2.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.ListPoliciesRequest, - com.google.iam.v2.ListPoliciesResponse>(this, METHODID_LIST_POLICIES))) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - this, METHODID_GET_POLICY))) - .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_CREATE_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_DELETE_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { - private PoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies( - com.google.iam.v2.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy( - com.google.iam.v2.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy( - com.google.iam.v2.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy( - com.google.iam.v2.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.iam.v2.ListPoliciesResponse listPolicies( - com.google.iam.v2.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public com.google.longrunning.Operation createPolicy( - com.google.iam.v2.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.longrunning.Operation updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.longrunning.Operation deletePolicy( - com.google.iam.v2.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v2.ListPoliciesResponse> - listPolicies(com.google.iam.v2.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPolicy( - com.google.iam.v2.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPolicy(com.google.iam.v2.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicy(com.google.iam.v2.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICIES = 0; - private static final int METHODID_GET_POLICY = 1; - private static final int METHODID_CREATE_POLICY = 2; - private static final int METHODID_UPDATE_POLICY = 3; - private static final int METHODID_DELETE_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final PoliciesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PoliciesImplBase 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_POLICIES: - serviceImpl.listPolicies( - (com.google.iam.v2.ListPoliciesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_POLICY: - serviceImpl.getPolicy( - (com.google.iam.v2.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_POLICY: - serviceImpl.createPolicy( - (com.google.iam.v2.CreatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy( - (com.google.iam.v2.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY: - serviceImpl.deletePolicy( - (com.google.iam.v2.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PoliciesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.v2.PolicyProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Policies"); - } - } - - private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { - PoliciesFileDescriptorSupplier() {} - } - - private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) - .addMethod(getListPoliciesMethod()) - .addMethod(getGetPolicyMethod()) - .addMethod(getCreatePolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getDeletePolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java b/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java deleted file mode 100644 index 57458d9ec7..0000000000 --- a/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java +++ /dev/null @@ -1,815 +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.iam.v2beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An interface for managing Identity and Access Management (IAM) policies.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/v2beta/policy.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PoliciesGrpc { - - private PoliciesGrpc() {} - - public static final String SERVICE_NAME = "google.iam.v2beta.Policies"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> - getListPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicies", - requestType = com.google.iam.v2beta.ListPoliciesRequest.class, - responseType = com.google.iam.v2beta.ListPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> - getListPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> - getListPoliciesMethod; - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - PoliciesGrpc.getListPoliciesMethod = - getListPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.ListPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.ListPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) - .build(); - } - } - } - return getListPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy> - getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = com.google.iam.v2beta.GetPolicyRequest.class, - responseType = com.google.iam.v2beta.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy> - getGetPolicyMethod() { - io.grpc.MethodDescriptor - getGetPolicyMethod; - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - PoliciesGrpc.getGetPolicyMethod = - getGetPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.Policy.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", - requestType = com.google.iam.v2beta.CreatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - PoliciesGrpc.getCreatePolicyMethod = - getCreatePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.CreatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) - .build(); - } - } - } - return getCreatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = com.google.iam.v2beta.UpdatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - PoliciesGrpc.getUpdatePolicyMethod = - getUpdatePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", - requestType = com.google.iam.v2beta.DeletePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - PoliciesGrpc.getDeletePolicyMethod = - getDeletePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.DeletePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) - .build(); - } - } - } - return getDeletePolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PoliciesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - }; - return PoliciesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - }; - return PoliciesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PoliciesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - }; - return PoliciesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public abstract static class PoliciesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy( - com.google.iam.v2beta.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.ListPoliciesRequest, - com.google.iam.v2beta.ListPoliciesResponse>(this, METHODID_LIST_POLICIES))) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy>( - this, METHODID_GET_POLICY))) - .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_CREATE_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation>( - this, METHODID_DELETE_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { - private PoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy( - com.google.iam.v2beta.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.iam.v2beta.ListPoliciesResponse listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public com.google.longrunning.Operation createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.longrunning.Operation updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.longrunning.Operation deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v2beta.ListPoliciesResponse> - listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPolicy(com.google.iam.v2beta.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICIES = 0; - private static final int METHODID_GET_POLICY = 1; - private static final int METHODID_CREATE_POLICY = 2; - private static final int METHODID_UPDATE_POLICY = 3; - private static final int METHODID_DELETE_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final PoliciesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PoliciesImplBase 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_POLICIES: - serviceImpl.listPolicies( - (com.google.iam.v2beta.ListPoliciesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_POLICY: - serviceImpl.getPolicy( - (com.google.iam.v2beta.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_POLICY: - serviceImpl.createPolicy( - (com.google.iam.v2beta.CreatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy( - (com.google.iam.v2beta.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY: - serviceImpl.deletePolicy( - (com.google.iam.v2beta.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PoliciesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.v2beta.PolicyProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Policies"); - } - } - - private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { - PoliciesFileDescriptorSupplier() {} - } - - private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) - .addMethod(getListPoliciesMethod()) - .addMethod(getGetPolicyMethod()) - .addMethod(getCreatePolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getDeletePolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java deleted file mode 100644 index 57652c10d9..0000000000 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java +++ /dev/null @@ -1,149 +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/iam/v1/iam_policy.proto - -package com.google.iam.v1; - -public final class IamPolicyProto { - private IamPolicyProto() {} - - 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_iam_v1_SetIamPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_TestIamPermissionsResponse_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\036google/iam/v1/iam_policy.proto\022\rgoogle" - + ".iam.v1\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032\033google/iam/v1/options.proto\032\032google/" - + "iam/v1/policy.proto\032 google/protobuf/fie" - + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" - + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" - + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" - + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" - + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" - + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" - + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" - + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" - + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" - + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" - + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." - + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" - + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" - + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" - + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" - + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" - + "am.v1.TestIamPermissionsRequest\032).google" - + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" - + "\002)\"$/v1/{resource=**}:testIamPermissions" - + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" - + "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" - + "gle.golang.org/genproto/googleapis/iam/v" - + "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" - + "Cloud\\Iam\\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.iam.v1.OptionsProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, - new java.lang.String[] { - "Resource", "Policy", "UpdateMask", - }); - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, - new java.lang.String[] { - "Resource", "Options", - }); - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, - new java.lang.String[] { - "Resource", "Permissions", - }); - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, - new java.lang.String[] { - "Permissions", - }); - 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.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.iam.v1.OptionsProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java deleted file mode 100644 index 9c13280b2b..0000000000 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java +++ /dev/null @@ -1,65 +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/iam/v1/options.proto - -package com.google.iam.v1; - -public final class OptionsProto { - private OptionsProto() {} - - 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_iam_v1_GetPolicyOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_GetPolicyOptions_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\033google/iam/v1/options.proto\022\rgoogle.ia" - + "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" - + "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" - + "B\014OptionsProtoP\001Z0google.golang.org/genp" - + "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" - + "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_iam_v1_GetPolicyOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_GetPolicyOptions_descriptor, - new java.lang.String[] { - "RequestedPolicyVersion", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java deleted file mode 100644 index 8ba3e50af0..0000000000 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java +++ /dev/null @@ -1,161 +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/iam/v1/policy.proto - -package com.google.iam.v1; - -public final class PolicyProto { - private PolicyProto() {} - - 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_iam_v1_Policy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_Binding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_Binding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_AuditConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_AuditConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_AuditLogConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_PolicyDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_BindingDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_AuditConfigDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_AuditConfigDelta_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\032google/iam/v1/policy.proto\022\rgoogle.iam" - + ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" - + "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" - + "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" - + "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" - + "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" - + " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" - + "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" - + "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" - + "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" - + "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" - + ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" - + "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" - + "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" - + "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" - + ".google.iam.v1.BindingDelta\022<\n\023audit_con" - + "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" - + "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" - + "(\0162\".google.iam.v1.BindingDelta.Action\022\014" - + "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" - + "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" - + "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" - + "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" - + ".google.iam.v1.AuditConfigDelta.Action\022\017" - + "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" - + "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" - + "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" - + "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" - + "olang.org/genproto/googleapis/iam/v1;iam" - + "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" - + "\\Iam\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_v1_Policy_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_Policy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_Policy_descriptor, - new java.lang.String[] { - "Version", "Bindings", "AuditConfigs", "Etag", - }); - internal_static_google_iam_v1_Binding_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v1_Binding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_Binding_descriptor, - new java.lang.String[] { - "Role", "Members", "Condition", - }); - internal_static_google_iam_v1_AuditConfig_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_AuditConfig_descriptor, - new java.lang.String[] { - "Service", "AuditLogConfigs", - }); - internal_static_google_iam_v1_AuditLogConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_AuditLogConfig_descriptor, - new java.lang.String[] { - "LogType", "ExemptedMembers", - }); - internal_static_google_iam_v1_PolicyDelta_descriptor = getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_PolicyDelta_descriptor, - new java.lang.String[] { - "BindingDeltas", "AuditConfigDeltas", - }); - internal_static_google_iam_v1_BindingDelta_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_BindingDelta_descriptor, - new java.lang.String[] { - "Action", "Role", "Member", "Condition", - }); - internal_static_google_iam_v1_AuditConfigDelta_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_AuditConfigDelta_descriptor, - new java.lang.String[] { - "Action", "Service", "ExemptedMember", "LogType", - }); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java deleted file mode 100644 index 55a5ff758b..0000000000 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java +++ /dev/null @@ -1,75 +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/iam/v2/deny.proto - -package com.google.iam.v2; - -public final class DenyRuleProto { - private DenyRuleProto() {} - - 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_iam_v2_DenyRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_DenyRule_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\030google/iam/v2/deny.proto\022\rgoogle.iam.v" - + "2\032\026google/type/expr.proto\"\253\001\n\010DenyRule\022\031" - + "\n\021denied_principals\030\001 \003(\t\022\034\n\024exception_p" - + "rincipals\030\002 \003(\t\022\032\n\022denied_permissions\030\003 " - + "\003(\t\022\035\n\025exception_permissions\030\004 \003(\t\022+\n\020de" - + "nial_condition\030\005 \001(\0132\021.google.type.ExprB" - + "\202\001\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z0" - + "google.golang.org/genproto/googleapis/ia" - + "m/v2;iam\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\" - + "Cloud\\Iam\\V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_v2_DenyRule_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2_DenyRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_DenyRule_descriptor, - new java.lang.String[] { - "DeniedPrincipals", - "ExceptionPrincipals", - "DeniedPermissions", - "ExceptionPermissions", - "DenialCondition", - }); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java deleted file mode 100644 index 9cbab03385..0000000000 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ /dev/null @@ -1,256 +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/iam/v2/policy.proto - -package com.google.iam.v2; - -public final class PolicyProto { - private PolicyProto() {} - - 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_iam_v2_Policy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_PolicyRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_PolicyRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_ListPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_ListPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_GetPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_CreatePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_DeletePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_PolicyOperationMetadata_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\032google/iam/v2/policy.proto\022\rgoogle.iam" - + ".v2\032\034google/api/annotations.proto\032\027googl" - + "e/api/client.proto\032\037google/api/field_beh" - + "avior.proto\032\030google/iam/v2/deny.proto\032#g" - + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" - + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" - + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" - + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" - + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" - + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" - + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" - + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" - + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" - + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" - + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" - + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" - + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" - + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" - + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" - + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" - + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" - + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" - + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" - + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" - + "es\022\".google.iam.v2.ListPoliciesRequest\032#" - + ".google.iam.v2.ListPoliciesResponse\"*\202\323\344" - + "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022" - + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" - + "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v" - + "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat" - + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" - + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" - + "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027" - + "parent,policy,policy_id\312A!\n\006Policy\022\027Poli" - + "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g" - + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" - + "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po" - + "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po" - + "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete" - + "Policy\022\".google.iam.v2.DeletePolicyReque" - + "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002" - + "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006" - + "Policy\022\027PolicyOperationMetadata\032F\312A\022iam." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\200\001\n\021com.google.i" - + "am.v2B\013PolicyProtoP\001Z0google.golang.org/" - + "genproto/googleapis/iam/v2;iam\252\002\023Google." - + "Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2b\006prot" - + "o3" - }; - 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.iam.v2.DenyRuleProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_iam_v2_Policy_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2_Policy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_Policy_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Kind", - "DisplayName", - "Annotations", - "Etag", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Rules", - "ManagingAuthority", - }); - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor = - internal_static_google_iam_v2_Policy_descriptor.getNestedTypes().get(0); - internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_iam_v2_PolicyRule_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v2_PolicyRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_PolicyRule_descriptor, - new java.lang.String[] { - "DenyRule", "Description", "Kind", - }); - internal_static_google_iam_v2_ListPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_ListPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_iam_v2_ListPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_ListPoliciesResponse_descriptor, - new java.lang.String[] { - "Policies", "NextPageToken", - }); - internal_static_google_iam_v2_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_GetPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_iam_v2_CreatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_CreatePolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "Policy", "PolicyId", - }); - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor, - new java.lang.String[] { - "Policy", - }); - internal_static_google_iam_v2_DeletePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_DeletePolicyRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.iam.v2.DenyRuleProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java deleted file mode 100644 index ef77af915a..0000000000 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java +++ /dev/null @@ -1,77 +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/iam/v2beta/deny.proto - -package com.google.iam.v2beta; - -public final class DenyRuleProto { - private DenyRuleProto() {} - - 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_iam_v2beta_DenyRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_DenyRule_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\034google/iam/v2beta/deny.proto\022\021google.i" - + "am.v2beta\032\026google/type/expr.proto\"\253\001\n\010De" - + "nyRule\022\031\n\021denied_principals\030\001 \003(\t\022\034\n\024exc" - + "eption_principals\030\002 \003(\t\022\032\n\022denied_permis" - + "sions\030\003 \003(\t\022\035\n\025exception_permissions\030\004 \003" - + "(\t\022+\n\020denial_condition\030\005 \001(\0132\021.google.ty" - + "pe.ExprB\222\001\n\025com.google.iam.v2betaB\rDenyR" - + "uleProtoP\001Z4google.golang.org/genproto/g" - + "oogleapis/iam/v2beta;iam\252\002\027Google.Cloud." - + "Iam.V2Beta\312\002\027Google\\Cloud\\Iam\\V2betab\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_v2beta_DenyRule_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_DenyRule_descriptor, - new java.lang.String[] { - "DeniedPrincipals", - "ExceptionPrincipals", - "DeniedPermissions", - "ExceptionPermissions", - "DenialCondition", - }); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java deleted file mode 100644 index fd7363e931..0000000000 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java +++ /dev/null @@ -1,257 +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/iam/v2beta/policy.proto - -package com.google.iam.v2beta; - -public final class PolicyProto { - private PolicyProto() {} - - 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_iam_v2beta_Policy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_PolicyRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_PolicyOperationMetadata_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\036google/iam/v2beta/policy.proto\022\021google" - + ".iam.v2beta\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\034google/iam/v2beta/d" - + "eny.proto\032#google/longrunning/operations" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" - + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" - + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" - + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" - + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" - + "elete_time\030\t \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" - + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" - + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" - + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" - + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" - + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" - + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" - + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" - + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" - + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" - + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" - + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" - + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" - + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" - + "icies\022&.google.iam.v2beta.ListPoliciesRe" - + "quest\032\'.google.iam.v2beta.ListPoliciesRe" - + "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies" - + "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam" - + ".v2beta.GetPolicyRequest\032\031.google.iam.v2" - + "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic" - + "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo" - + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" - + "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be" - + "ta/{parent=policies/*/*}:\006policy\332A\027paren" - + "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe" - + "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google" - + ".iam.v2beta.UpdatePolicyRequest\032\035.google" - + ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/" - + "{policy.name=policies/*/*/*}:\006policy\312A!\n" - + "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del" - + "etePolicy\022&.google.iam.v2beta.DeletePoli" - + "cyRequest\032\035.google.longrunning.Operation" - + "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332" - + "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada" - + "ta\032F\312A\022iam.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\220\001\n\025c" - + "om.google.iam.v2betaB\013PolicyProtoP\001Z4goo" - + "gle.golang.org/genproto/googleapis/iam/v" - + "2beta;iam\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Go" - + "ogle\\Cloud\\Iam\\V2betab\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.iam.v2beta.DenyRuleProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_iam_v2beta_Policy_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2beta_Policy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_Policy_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Kind", - "DisplayName", - "Annotations", - "Etag", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Rules", - }); - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor = - internal_static_google_iam_v2beta_Policy_descriptor.getNestedTypes().get(0); - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_iam_v2beta_PolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_PolicyRule_descriptor, - new java.lang.String[] { - "DenyRule", "Description", "Kind", - }); - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor, - new java.lang.String[] { - "Policies", "NextPageToken", - }); - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "Policy", "PolicyId", - }); - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor, - new java.lang.String[] { - "Policy", - }); - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor, - new java.lang.String[] { - "Name", "Etag", - }); - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.iam.v2beta.DenyRuleProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java b/owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java similarity index 61% rename from java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java rename to owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java index dc9f5653e5..5237721079 100644 --- a/java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java +++ b/owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.iam.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * API Overview
  * Manages Identity and Access Management (IAM) policies.
@@ -52,168 +35,144 @@ private IAMPolicyGrpc() {}
   public static final String SERVICE_NAME = "google.iam.v1.IAMPolicy";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod;
+  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<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getSetIamPolicyMethod;
     if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
-                      .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
+              .build();
         }
       }
     }
     return getSetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod;
+  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<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getGetIamPolicyMethod;
     if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
-                      .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
+              .build();
         }
       }
     }
     return getGetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
-      getTestIamPermissionsMethod;
+  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<
-          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;
+  public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
+    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
     if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
-                      .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
+              .build();
         }
       }
     }
     return getTestIamPermissionsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static IAMPolicyStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyStub(channel, callOptions);
+        }
+      };
     return IAMPolicyStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static IAMPolicyBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static IAMPolicyBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyBlockingStub(channel, callOptions);
+        }
+      };
     return IAMPolicyBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static IAMPolicyFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static IAMPolicyFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyFutureStub(channel, callOptions);
+        }
+      };
     return IAMPolicyFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -235,43 +194,33 @@ public IAMPolicyFutureStub newStub(
    * attached.
    * 
*/ - public abstract static class IAMPolicyImplBase implements io.grpc.BindableService { + public static abstract class IAMPolicyImplBase implements io.grpc.BindableService { /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -281,43 +230,39 @@ public void getIamPolicy(
      * 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); + 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() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + 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))) + 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))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** - * - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -340,54 +285,44 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private IAMPolicyStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyStub(channel, callOptions); } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + 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); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + 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); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -397,20 +332,14 @@ public void getIamPolicy(
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + 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); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -432,9 +361,9 @@ public void testIamPermissions(
    * attached.
    * 
*/ - public static final class IAMPolicyBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private IAMPolicyBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -445,8 +374,6 @@ protected IAMPolicyBlockingStub build( } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
@@ -459,8 +386,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
     }
 
     /**
-     *
-     *
      * 
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
@@ -473,8 +398,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
-     *
-     *
      * 
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -484,16 +407,13 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
      * may "fail open" without warning.
      * 
*/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** - * - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -515,50 +435,45 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
    * attached.
    * 
*/ - public static final class IAMPolicyFutureStub - extends io.grpc.stub.AbstractFutureStub { - private IAMPolicyFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyFutureStub extends io.grpc.stub.AbstractFutureStub { + private IAMPolicyFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyFutureStub(channel, callOptions); } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + 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 resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + 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 on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -568,9 +483,8 @@ protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * may "fail open" without warning.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + 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); } @@ -580,11 +494,11 @@ protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_GET_IAM_POLICY = 1; private static final int METHODID_TEST_IAM_PERMISSIONS = 2; - 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 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 IAMPolicyImplBase serviceImpl; private final int methodId; @@ -598,20 +512,16 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + 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, + 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); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -629,9 +539,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class IAMPolicyBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class IAMPolicyBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IAMPolicyBaseDescriptorSupplier() {} @java.lang.Override @@ -673,14 +582,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (IAMPolicyGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); } } } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java similarity index 75% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java index 7d07f32436..aefa690418 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * Specifies the audit configuration for a service.
  * The configuration determines which permission types are logged, and what
@@ -73,16 +56,15 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfig}
  */
-public final class AuditConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuditConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfig)
     AuditConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuditConfig.newBuilder() to construct.
   private AuditConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuditConfig() {
     service_ = "";
     auditLogConfigs_ = java.util.Collections.emptyList();
@@ -90,33 +72,33 @@ private AuditConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuditConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
   }
 
   public static final int SERVICE_FIELD_NUMBER = 1;
-  private volatile java.lang.Object service_;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object service_ = "";
   /**
-   *
-   *
    * 
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -124,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string service = 1; - * * @return The service. */ @java.lang.Override @@ -133,15 +114,14 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -149,15 +129,16 @@ public java.lang.String getService() {
    * 
* * string service = 1; - * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -166,10 +147,9 @@ public com.google.protobuf.ByteString getServiceBytes() { } public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List auditLogConfigs_; /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -181,8 +161,6 @@ public java.util.List getAuditLogConfigsList() return auditLogConfigs_; } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -190,13 +168,11 @@ public java.util.List getAuditLogConfigsList() * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getAuditLogConfigsOrBuilderList() { return auditLogConfigs_; } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -208,8 +184,6 @@ public int getAuditLogConfigsCount() { return auditLogConfigs_.size(); } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -221,8 +195,6 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { return auditLogConfigs_.get(index); } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -230,12 +202,12 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index) { return auditLogConfigs_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +219,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(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -267,7 +240,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } for (int i = 0; i < auditLogConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, auditLogConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, auditLogConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -277,15 +251,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.iam.v1.AuditConfig)) { return super.equals(obj); } com.google.iam.v1.AuditConfig other = (com.google.iam.v1.AuditConfig) obj; - if (!getService().equals(other.getService())) return false; - if (!getAuditLogConfigsList().equals(other.getAuditLogConfigsList())) return false; + if (!getService() + .equals(other.getService())) return false; + if (!getAuditLogConfigsList() + .equals(other.getAuditLogConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -308,103 +284,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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; } /** - * - * *
    * Specifies the audit configuration for a service.
    * The configuration determines which permission types are logged, and what
@@ -457,47 +427,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.AuditConfig}
    */
-  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.iam.v1.AuditConfig)
       com.google.iam.v1.AuditConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       service_ = "";
-
       if (auditLogConfigsBuilder_ == null) {
         auditLogConfigs_ = java.util.Collections.emptyList();
       } else {
         auditLogConfigs_ = null;
         auditLogConfigsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000001);
+      bitField0_ = (bitField0_ & ~0x00000002);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
@@ -518,58 +492,67 @@ public com.google.iam.v1.AuditConfig build() {
     @java.lang.Override
     public com.google.iam.v1.AuditConfig buildPartial() {
       com.google.iam.v1.AuditConfig result = new com.google.iam.v1.AuditConfig(this);
-      int from_bitField0_ = bitField0_;
-      result.service_ = service_;
+      buildPartialRepeatedFields(result);
+      if (bitField0_ != 0) { buildPartial0(result); }
+      onBuilt();
+      return result;
+    }
+
+    private void buildPartialRepeatedFields(com.google.iam.v1.AuditConfig result) {
       if (auditLogConfigsBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)) {
+        if (((bitField0_ & 0x00000002) != 0)) {
           auditLogConfigs_ = java.util.Collections.unmodifiableList(auditLogConfigs_);
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.auditLogConfigs_ = auditLogConfigs_;
       } else {
         result.auditLogConfigs_ = auditLogConfigsBuilder_.build();
       }
-      onBuilt();
-      return result;
+    }
+
+    private void buildPartial0(com.google.iam.v1.AuditConfig result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.service_ = service_;
+      }
     }
 
     @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) {
+        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.iam.v1.AuditConfig) {
-        return mergeFrom((com.google.iam.v1.AuditConfig) other);
+        return mergeFrom((com.google.iam.v1.AuditConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -580,13 +563,14 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
       if (other == com.google.iam.v1.AuditConfig.getDefaultInstance()) return this;
       if (!other.getService().isEmpty()) {
         service_ = other.service_;
+        bitField0_ |= 0x00000001;
         onChanged();
       }
       if (auditLogConfigsBuilder_ == null) {
         if (!other.auditLogConfigs_.isEmpty()) {
           if (auditLogConfigs_.isEmpty()) {
             auditLogConfigs_ = other.auditLogConfigs_;
-            bitField0_ = (bitField0_ & ~0x00000001);
+            bitField0_ = (bitField0_ & ~0x00000002);
           } else {
             ensureAuditLogConfigsIsMutable();
             auditLogConfigs_.addAll(other.auditLogConfigs_);
@@ -599,11 +583,10 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
             auditLogConfigsBuilder_.dispose();
             auditLogConfigsBuilder_ = null;
             auditLogConfigs_ = other.auditLogConfigs_;
-            bitField0_ = (bitField0_ & ~0x00000001);
-            auditLogConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAuditLogConfigsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x00000002);
+            auditLogConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAuditLogConfigsFieldBuilder() : null;
           } else {
             auditLogConfigsBuilder_.addAllMessages(other.auditLogConfigs_);
           }
@@ -635,31 +618,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                service_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.iam.v1.AuditLogConfig m =
-                    input.readMessage(com.google.iam.v1.AuditLogConfig.parser(), extensionRegistry);
-                if (auditLogConfigsBuilder_ == null) {
-                  ensureAuditLogConfigsIsMutable();
-                  auditLogConfigs_.add(m);
-                } else {
-                  auditLogConfigsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              service_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              com.google.iam.v1.AuditLogConfig m =
+                  input.readMessage(
+                      com.google.iam.v1.AuditLogConfig.parser(),
+                      extensionRegistry);
+              if (auditLogConfigsBuilder_ == null) {
+                ensureAuditLogConfigsIsMutable();
+                auditLogConfigs_.add(m);
+              } else {
+                auditLogConfigsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -669,13 +651,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object service_ = "";
     /**
-     *
-     *
      * 
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -683,13 +662,13 @@ public Builder mergeFrom(
      * 
* * string service = 1; - * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -698,8 +677,6 @@ public java.lang.String getService() { } } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -707,14 +684,15 @@ public java.lang.String getService() {
      * 
* * string service = 1; - * * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -722,8 +700,6 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -731,22 +707,18 @@ public com.google.protobuf.ByteString getServiceBytes() {
      * 
* * string service = 1; - * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } service_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -754,18 +726,15 @@ public Builder setService(java.lang.String value) {
      * 
* * string service = 1; - * * @return This builder for chaining. */ public Builder clearService() { - service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -773,41 +742,32 @@ public Builder clearService() {
      * 
* * string service = 1; - * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - service_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List auditLogConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAuditLogConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - auditLogConfigs_ = - new java.util.ArrayList(auditLogConfigs_); - bitField0_ |= 0x00000001; - } + if (!((bitField0_ & 0x00000002) != 0)) { + auditLogConfigs_ = new java.util.ArrayList(auditLogConfigs_); + bitField0_ |= 0x00000002; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, - com.google.iam.v1.AuditLogConfig.Builder, - com.google.iam.v1.AuditLogConfigOrBuilder> - auditLogConfigsBuilder_; + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> auditLogConfigsBuilder_; /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -822,8 +782,6 @@ public java.util.List getAuditLogConfigsList() } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -838,8 +796,6 @@ public int getAuditLogConfigsCount() { } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -854,15 +810,14 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder setAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { + public Builder setAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -876,8 +831,6 @@ public Builder setAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig va return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -896,8 +849,6 @@ public Builder setAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -918,15 +869,14 @@ public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig value) { return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { + public Builder addAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -940,15 +890,14 @@ public Builder addAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig va return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + public Builder addAuditLogConfigs( + com.google.iam.v1.AuditLogConfig.Builder builderForValue) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); auditLogConfigs_.add(builderForValue.build()); @@ -959,8 +908,6 @@ public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig.Builder build return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -979,8 +926,6 @@ public Builder addAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -991,7 +936,8 @@ public Builder addAllAuditLogConfigs( java.lang.Iterable values) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditLogConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditLogConfigs_); onChanged(); } else { auditLogConfigsBuilder_.addAllMessages(values); @@ -999,8 +945,6 @@ public Builder addAllAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1010,7 +954,7 @@ public Builder addAllAuditLogConfigs( public Builder clearAuditLogConfigs() { if (auditLogConfigsBuilder_ == null) { auditLogConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { auditLogConfigsBuilder_.clear(); @@ -1018,8 +962,6 @@ public Builder clearAuditLogConfigs() { return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1037,44 +979,39 @@ public Builder removeAuditLogConfigs(int index) { return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder(int index) { + public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder( + int index) { return getAuditLogConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index) { if (auditLogConfigsBuilder_ == null) { - return auditLogConfigs_.get(index); - } else { + return auditLogConfigs_.get(index); } else { return auditLogConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsOrBuilderList() { + public java.util.List + getAuditLogConfigsOrBuilderList() { if (auditLogConfigsBuilder_ != null) { return auditLogConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1082,8 +1019,6 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1091,58 +1026,49 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder() { - return getAuditLogConfigsFieldBuilder() - .addBuilder(com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + return getAuditLogConfigsFieldBuilder().addBuilder( + com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder(int index) { - return getAuditLogConfigsFieldBuilder() - .addBuilder(index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( + int index) { + return getAuditLogConfigsFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsBuilderList() { + public java.util.List + getAuditLogConfigsBuilderList() { return getAuditLogConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, - com.google.iam.v1.AuditLogConfig.Builder, - com.google.iam.v1.AuditLogConfigOrBuilder> + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> getAuditLogConfigsFieldBuilder() { if (auditLogConfigsBuilder_ == null) { - auditLogConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, - com.google.iam.v1.AuditLogConfig.Builder, - com.google.iam.v1.AuditLogConfigOrBuilder>( + auditLogConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder>( auditLogConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); auditLogConfigs_ = null; } return auditLogConfigsBuilder_; } - @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); } @@ -1152,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfig) private static final com.google.iam.v1.AuditConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfig(); } @@ -1166,27 +1092,27 @@ public static com.google.iam.v1.AuditConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1201,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java similarity index 71% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index 622b64143c..79a287393a 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * One delta entry for AuditConfig. Each individual change (only one
  * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfigDelta}
  */
-public final class AuditConfigDelta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuditConfigDelta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfigDelta)
     AuditConfigDeltaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuditConfigDelta.newBuilder() to construct.
   private AuditConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuditConfigDelta() {
     action_ = 0;
     service_ = "";
@@ -47,42 +29,39 @@ private AuditConfigDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuditConfigDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.iam.v1.AuditConfigDelta.class,
-            com.google.iam.v1.AuditConfigDelta.Builder.class);
+            com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of action performed on an audit configuration in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.AuditConfigDelta.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -91,8 +70,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -101,8 +78,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -114,8 +89,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -124,8 +97,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -134,8 +105,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -144,6 +113,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -168,49 +138,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return ADD; - case 2: - return REMOVE; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return ADD; + case 2: return REMOVE; + 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< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.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.iam.v1.AuditConfigDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -228,48 +198,37 @@ private Action(int value) { } public static final int ACTION_FIELD_NUMBER = 1; - private int action_; + private int action_ = 0; /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.iam.v1.AuditConfigDelta.Action getAction() { - @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = - com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { + com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } public static final int SERVICE_FIELD_NUMBER = 2; - private volatile java.lang.Object service_; + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -278,7 +237,6 @@ public com.google.iam.v1.AuditConfigDelta.Action getAction() {
    * 
* * string service = 2; - * * @return The service. */ @java.lang.Override @@ -287,15 +245,14 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -304,15 +261,16 @@ public java.lang.String getService() {
    * 
* * string service = 2; - * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -321,10 +279,9 @@ public com.google.protobuf.ByteString getServiceBytes() { } public static final int EXEMPTED_MEMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object exemptedMember_; + @SuppressWarnings("serial") + private volatile java.lang.Object exemptedMember_ = ""; /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -332,7 +289,6 @@ public com.google.protobuf.ByteString getServiceBytes() {
    * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ @java.lang.Override @@ -341,15 +297,14 @@ public java.lang.String getExemptedMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; } } /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -357,15 +312,16 @@ public java.lang.String getExemptedMember() {
    * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ @java.lang.Override - public com.google.protobuf.ByteString getExemptedMemberBytes() { + public com.google.protobuf.ByteString + getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -374,10 +330,9 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { } public static final int LOG_TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object logType_; + @SuppressWarnings("serial") + private volatile java.lang.Object logType_ = ""; /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -385,7 +340,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() {
    * 
* * string log_type = 4; - * * @return The logType. */ @java.lang.Override @@ -394,15 +348,14 @@ public java.lang.String getLogType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; } } /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -410,15 +363,16 @@ public java.lang.String getLogType() {
    * 
* * string log_type = 4; - * * @return The bytes for logType. */ @java.lang.Override - public com.google.protobuf.ByteString getLogTypeBytes() { + public com.google.protobuf.ByteString + getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logType_ = b; return b; } else { @@ -427,7 +381,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,7 +392,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 (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -462,7 +416,8 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); @@ -481,7 +436,7 @@ 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.iam.v1.AuditConfigDelta)) { return super.equals(obj); @@ -489,9 +444,12 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditConfigDelta other = (com.google.iam.v1.AuditConfigDelta) obj; if (action_ != other.action_) return false; - if (!getService().equals(other.getService())) return false; - if (!getExemptedMember().equals(other.getExemptedMember())) return false; - if (!getLogType().equals(other.getLogType())) return false; + if (!getService() + .equals(other.getService())) return false; + if (!getExemptedMember() + .equals(other.getExemptedMember())) return false; + if (!getLogType() + .equals(other.getLogType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -516,103 +474,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfigDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfigDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.AuditConfigDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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; } /** - * - * *
    * One delta entry for AuditConfig. Each individual change (only one
    * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -620,50 +572,48 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.AuditConfigDelta}
    */
-  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.iam.v1.AuditConfigDelta)
       com.google.iam.v1.AuditConfigDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditConfigDelta.class,
-              com.google.iam.v1.AuditConfigDelta.Builder.class);
+              com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfigDelta.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       action_ = 0;
-
       service_ = "";
-
       exemptedMember_ = "";
-
       logType_ = "";
-
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
@@ -683,51 +633,63 @@ public com.google.iam.v1.AuditConfigDelta build() {
     @java.lang.Override
     public com.google.iam.v1.AuditConfigDelta buildPartial() {
       com.google.iam.v1.AuditConfigDelta result = new com.google.iam.v1.AuditConfigDelta(this);
-      result.action_ = action_;
-      result.service_ = service_;
-      result.exemptedMember_ = exemptedMember_;
-      result.logType_ = logType_;
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.action_ = action_;
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.service_ = service_;
+      }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.exemptedMember_ = exemptedMember_;
+      }
+      if (((from_bitField0_ & 0x00000008) != 0)) {
+        result.logType_ = logType_;
+      }
+    }
+
     @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) {
+        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.iam.v1.AuditConfigDelta) {
-        return mergeFrom((com.google.iam.v1.AuditConfigDelta) other);
+        return mergeFrom((com.google.iam.v1.AuditConfigDelta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -741,14 +703,17 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfigDelta other) {
       }
       if (!other.getService().isEmpty()) {
         service_ = other.service_;
+        bitField0_ |= 0x00000002;
         onChanged();
       }
       if (!other.getExemptedMember().isEmpty()) {
         exemptedMember_ = other.exemptedMember_;
+        bitField0_ |= 0x00000004;
         onChanged();
       }
       if (!other.getLogType().isEmpty()) {
         logType_ = other.logType_;
+        bitField0_ |= 0x00000008;
         onChanged();
       }
       this.mergeUnknownFields(other.getUnknownFields());
@@ -777,37 +742,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                action_ = input.readEnum();
-
-                break;
-              } // case 8
-            case 18:
-              {
-                service_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                exemptedMember_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 34:
-              {
-                logType_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              action_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              service_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              exemptedMember_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              logType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -817,72 +777,58 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+    private int bitField0_;
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - action_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { - @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = - com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -890,25 +836,22 @@ public Builder setAction(com.google.iam.v1.AuditConfigDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + bitField0_ = (bitField0_ & ~0x00000001); action_ = 0; onChanged(); return this; @@ -916,8 +859,6 @@ public Builder clearAction() { private java.lang.Object service_ = ""; /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -926,13 +867,13 @@ public Builder clearAction() {
      * 
* * string service = 2; - * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -941,8 +882,6 @@ public java.lang.String getService() { } } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -951,14 +890,15 @@ public java.lang.String getService() {
      * 
* * string service = 2; - * * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -966,8 +906,6 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -976,22 +914,18 @@ public com.google.protobuf.ByteString getServiceBytes() {
      * 
* * string service = 2; - * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } service_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1000,18 +934,15 @@ public Builder setService(java.lang.String value) {
      * 
* * string service = 2; - * * @return This builder for chaining. */ public Builder clearService() { - service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1020,25 +951,21 @@ public Builder clearService() {
      * 
* * string service = 2; - * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - service_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object exemptedMember_ = ""; /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1046,13 +973,13 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
      * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ public java.lang.String getExemptedMember() { java.lang.Object ref = exemptedMember_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; @@ -1061,8 +988,6 @@ public java.lang.String getExemptedMember() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1070,14 +995,15 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ - public com.google.protobuf.ByteString getExemptedMemberBytes() { + public com.google.protobuf.ByteString + getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -1085,8 +1011,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1094,22 +1018,18 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() {
      * 
* * string exempted_member = 3; - * * @param value The exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMember(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setExemptedMember( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } exemptedMember_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1117,18 +1037,15 @@ public Builder setExemptedMember(java.lang.String value) {
      * 
* * string exempted_member = 3; - * * @return This builder for chaining. */ public Builder clearExemptedMember() { - exemptedMember_ = getDefaultInstance().getExemptedMember(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1136,25 +1053,21 @@ public Builder clearExemptedMember() {
      * 
* * string exempted_member = 3; - * * @param value The bytes for exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExemptedMemberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - exemptedMember_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object logType_ = ""; /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1162,13 +1075,13 @@ public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) {
      * 
* * string log_type = 4; - * * @return The logType. */ public java.lang.String getLogType() { java.lang.Object ref = logType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; @@ -1177,8 +1090,6 @@ public java.lang.String getLogType() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1186,14 +1097,15 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; - * * @return The bytes for logType. */ - public com.google.protobuf.ByteString getLogTypeBytes() { + public com.google.protobuf.ByteString + getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logType_ = b; return b; } else { @@ -1201,8 +1113,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1210,22 +1120,18 @@ public com.google.protobuf.ByteString getLogTypeBytes() {
      * 
* * string log_type = 4; - * * @param value The logType to set. * @return This builder for chaining. */ - public Builder setLogType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setLogType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1233,18 +1139,15 @@ public Builder setLogType(java.lang.String value) {
      * 
* * string log_type = 4; - * * @return This builder for chaining. */ public Builder clearLogType() { - logType_ = getDefaultInstance().getLogType(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1252,23 +1155,21 @@ public Builder clearLogType() {
      * 
* * string log_type = 4; - * * @param value The bytes for logType to set. * @return This builder for chaining. */ - public Builder setLogTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - logType_ = value; + bitField0_ |= 0x00000008; 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); } @@ -1278,12 +1179,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfigDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfigDelta) private static final com.google.iam.v1.AuditConfigDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfigDelta(); } @@ -1292,27 +1193,27 @@ public static com.google.iam.v1.AuditConfigDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfigDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfigDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1327,4 +1228,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfigDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java similarity index 73% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e1bea6c244..e16f3aa510 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigDeltaOrBuilder - extends +public interface AuditConfigDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfigDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ com.google.iam.v1.AuditConfigDelta.Action getAction(); /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -61,13 +37,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string service = 2; - * * @return The service. */ java.lang.String getService(); /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -76,14 +49,12 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string service = 2; - * * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -91,13 +62,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ java.lang.String getExemptedMember(); /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -105,14 +73,12 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ - com.google.protobuf.ByteString getExemptedMemberBytes(); + com.google.protobuf.ByteString + getExemptedMemberBytes(); /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -120,13 +86,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string log_type = 4; - * * @return The logType. */ java.lang.String getLogType(); /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -134,8 +97,8 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string log_type = 4; - * * @return The bytes for logType. */ - com.google.protobuf.ByteString getLogTypeBytes(); + com.google.protobuf.ByteString + getLogTypeBytes(); } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java similarity index 70% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java index 06911aaf2b..05b40d39c0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.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/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigOrBuilder - extends +public interface AuditConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -33,13 +15,10 @@ public interface AuditConfigOrBuilder
    * 
* * string service = 1; - * * @return The service. */ java.lang.String getService(); /** - * - * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -47,24 +26,21 @@ public interface AuditConfigOrBuilder
    * 
* * string service = 1; - * * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List getAuditLogConfigsList(); + java.util.List + getAuditLogConfigsList(); /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -73,8 +49,6 @@ public interface AuditConfigOrBuilder */ com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index); /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -83,24 +57,21 @@ public interface AuditConfigOrBuilder */ int getAuditLogConfigsCount(); /** - * - * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List + java.util.List getAuditLogConfigsOrBuilderList(); /** - * - * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index); + com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index); } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java similarity index 73% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index 645f2c04db..9a79ac904c 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * Provides the configuration for logging a type of permissions.
  * Example:
@@ -43,16 +26,15 @@
  *
  * Protobuf type {@code google.iam.v1.AuditLogConfig}
  */
-public final class AuditLogConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuditLogConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditLogConfig)
     AuditLogConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuditLogConfig.newBuilder() to construct.
   private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuditLogConfig() {
     logType_ = 0;
     exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -60,31 +42,30 @@ private AuditLogConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuditLogConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The list of valid permission types for which logging can be configured.
    * Admin writes are always logged, and are not configurable.
@@ -92,10 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.iam.v1.AuditLogConfig.LogType}
    */
-  public enum LogType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum LogType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default case. Should never be this.
      * 
@@ -104,8 +84,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ LOG_TYPE_UNSPECIFIED(0), /** - * - * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -114,8 +92,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ ADMIN_READ(1), /** - * - * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -124,8 +100,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ DATA_WRITE(2), /** - * - * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -137,8 +111,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default case. Should never be this.
      * 
@@ -147,8 +119,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -157,8 +127,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADMIN_READ_VALUE = 1; /** - * - * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -167,8 +135,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_WRITE_VALUE = 2; /** - * - * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -177,6 +143,7 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_READ_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -201,51 +168,50 @@ public static LogType valueOf(int value) { */ public static LogType forNumber(int value) { switch (value) { - case 0: - return LOG_TYPE_UNSPECIFIED; - case 1: - return ADMIN_READ; - case 2: - return DATA_WRITE; - case 3: - return DATA_READ; - default: - return null; + case 0: return LOG_TYPE_UNSPECIFIED; + case 1: return ADMIN_READ; + case 2: return DATA_WRITE; + case 3: return DATA_READ; + 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< + LogType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogType findValueByNumber(int number) { + return LogType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogType findValueByNumber(int number) { - return LogType.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.iam.v1.AuditLogConfig.getDescriptor().getEnumTypes().get(0); } private static final LogType[] VALUES = values(); - public static LogType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogType 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; @@ -263,46 +229,35 @@ private LogType(int value) { } public static final int LOG_TYPE_FIELD_NUMBER = 1; - private int logType_; + private int logType_ = 0; /** - * - * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override - public int getLogTypeValue() { + @java.lang.Override public int getLogTypeValue() { return logType_; } /** - * - * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The logType. */ - @java.lang.Override - public com.google.iam.v1.AuditLogConfig.LogType getLogType() { - @SuppressWarnings("deprecation") - com.google.iam.v1.AuditLogConfig.LogType result = - com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { + com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exemptedMembers_; /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -310,15 +265,13 @@ public com.google.iam.v1.AuditLogConfig.LogType getLogType() {
    * 
* * repeated string exempted_members = 2; - * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList + getExemptedMembersList() { return exemptedMembers_; } /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -326,15 +279,12 @@ public com.google.protobuf.ProtocolStringList getExemptedMembersList() {
    * 
* * repeated string exempted_members = 2; - * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -342,7 +292,6 @@ public int getExemptedMembersCount() {
    * 
* * repeated string exempted_members = 2; - * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -350,8 +299,6 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -359,16 +306,15 @@ public java.lang.String getExemptedMembers(int index) {
    * 
* * repeated string exempted_members = 2; - * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString + getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +326,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 (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, logType_); } @@ -397,7 +344,8 @@ public int getSerializedSize() { size = 0; if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, logType_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, logType_); } { int dataSize = 0; @@ -415,7 +363,7 @@ 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.iam.v1.AuditLogConfig)) { return super.equals(obj); @@ -423,7 +371,8 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditLogConfig other = (com.google.iam.v1.AuditLogConfig) obj; if (logType_ != other.logType_) return false; - if (!getExemptedMembersList().equals(other.getExemptedMembersList())) return false; + if (!getExemptedMembersList() + .equals(other.getExemptedMembersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,103 +395,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditLogConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditLogConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.AuditLogConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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; } /** - * - * *
    * Provides the configuration for logging a type of permissions.
    * Example:
@@ -565,43 +508,46 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.AuditLogConfig}
    */
-  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.iam.v1.AuditLogConfig)
       com.google.iam.v1.AuditLogConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditLogConfig.class,
-              com.google.iam.v1.AuditLogConfig.Builder.class);
+              com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditLogConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       logType_ = 0;
-
       exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000001);
+      bitField0_ = (bitField0_ & ~0x00000002);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
@@ -622,54 +568,63 @@ public com.google.iam.v1.AuditLogConfig build() {
     @java.lang.Override
     public com.google.iam.v1.AuditLogConfig buildPartial() {
       com.google.iam.v1.AuditLogConfig result = new com.google.iam.v1.AuditLogConfig(this);
-      int from_bitField0_ = bitField0_;
-      result.logType_ = logType_;
-      if (((bitField0_ & 0x00000001) != 0)) {
+      buildPartialRepeatedFields(result);
+      if (bitField0_ != 0) { buildPartial0(result); }
+      onBuilt();
+      return result;
+    }
+
+    private void buildPartialRepeatedFields(com.google.iam.v1.AuditLogConfig result) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         exemptedMembers_ = exemptedMembers_.getUnmodifiableView();
-        bitField0_ = (bitField0_ & ~0x00000001);
+        bitField0_ = (bitField0_ & ~0x00000002);
       }
       result.exemptedMembers_ = exemptedMembers_;
-      onBuilt();
-      return result;
+    }
+
+    private void buildPartial0(com.google.iam.v1.AuditLogConfig result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.logType_ = logType_;
+      }
     }
 
     @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) {
+        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.iam.v1.AuditLogConfig) {
-        return mergeFrom((com.google.iam.v1.AuditLogConfig) other);
+        return mergeFrom((com.google.iam.v1.AuditLogConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -684,7 +639,7 @@ public Builder mergeFrom(com.google.iam.v1.AuditLogConfig other) {
       if (!other.exemptedMembers_.isEmpty()) {
         if (exemptedMembers_.isEmpty()) {
           exemptedMembers_ = other.exemptedMembers_;
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ = (bitField0_ & ~0x00000002);
         } else {
           ensureExemptedMembersIsMutable();
           exemptedMembers_.addAll(other.exemptedMembers_);
@@ -717,26 +672,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                logType_ = input.readEnum();
-
-                break;
-              } // case 8
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureExemptedMembersIsMutable();
-                exemptedMembers_.add(s);
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              logType_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureExemptedMembersIsMutable();
+              exemptedMembers_.add(s);
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -746,70 +698,54 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int logType_ = 0;
     /**
-     *
-     *
      * 
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override - public int getLogTypeValue() { + @java.lang.Override public int getLogTypeValue() { return logType_; } /** - * - * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @param value The enum numeric value on the wire for logType to set. * @return This builder for chaining. */ public Builder setLogTypeValue(int value) { - logType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The logType. */ @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { - @SuppressWarnings("deprecation") - com.google.iam.v1.AuditLogConfig.LogType result = - com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } /** - * - * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @param value The logType to set. * @return This builder for chaining. */ @@ -817,41 +753,34 @@ public Builder setLogType(com.google.iam.v1.AuditLogConfig.LogType value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; logType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return This builder for chaining. */ public Builder clearLogType() { - + bitField0_ = (bitField0_ & ~0x00000001); logType_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList exemptedMembers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExemptedMembersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); - bitField0_ |= 0x00000001; - } + bitField0_ |= 0x00000002; + } } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -859,15 +788,13 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; - * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList + getExemptedMembersList() { return exemptedMembers_.getUnmodifiableView(); } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -875,15 +802,12 @@ public com.google.protobuf.ProtocolStringList getExemptedMembersList() {
      * 
* * repeated string exempted_members = 2; - * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -891,7 +815,6 @@ public int getExemptedMembersCount() {
      * 
* * repeated string exempted_members = 2; - * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -899,8 +822,6 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -908,16 +829,14 @@ public java.lang.String getExemptedMembers(int index) {
      * 
* * repeated string exempted_members = 2; - * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString + getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -925,23 +844,19 @@ public com.google.protobuf.ByteString getExemptedMembersBytes(int index) {
      * 
* * repeated string exempted_members = 2; - * * @param index The index to set the value at. * @param value The exemptedMembers to set. * @return This builder for chaining. */ - public Builder setExemptedMembers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExemptedMembers( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExemptedMembersIsMutable(); exemptedMembers_.set(index, value); onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -949,22 +864,18 @@ public Builder setExemptedMembers(int index, java.lang.String value) {
      * 
* * repeated string exempted_members = 2; - * * @param value The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExemptedMembers( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -972,19 +883,18 @@ public Builder addExemptedMembers(java.lang.String value) {
      * 
* * repeated string exempted_members = 2; - * * @param values The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addAllExemptedMembers(java.lang.Iterable values) { + public Builder addAllExemptedMembers( + java.lang.Iterable values) { ensureExemptedMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptedMembers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exemptedMembers_); onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -992,18 +902,15 @@ public Builder addAllExemptedMembers(java.lang.Iterable values
      * 
* * repeated string exempted_members = 2; - * * @return This builder for chaining. */ public Builder clearExemptedMembers() { exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -1011,23 +918,21 @@ public Builder clearExemptedMembers() {
      * 
* * repeated string exempted_members = 2; - * * @param value The bytes of the exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExemptedMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExemptedMembersIsMutable(); exemptedMembers_.add(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); } @@ -1037,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditLogConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditLogConfig) private static final com.google.iam.v1.AuditLogConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditLogConfig(); } @@ -1051,27 +956,27 @@ public static com.google.iam.v1.AuditLogConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditLogConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditLogConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1086,4 +991,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditLogConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java similarity index 71% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java index c6371c5c0a..cc82e2e856 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditLogConfigOrBuilder - extends +public interface AuditLogConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditLogConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The enum numeric value on the wire for logType. */ int getLogTypeValue(); /** - * - * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * * @return The logType. */ com.google.iam.v1.AuditLogConfig.LogType getLogType(); /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -58,13 +34,11 @@ public interface AuditLogConfigOrBuilder
    * 
* * repeated string exempted_members = 2; - * * @return A list containing the exemptedMembers. */ - java.util.List getExemptedMembersList(); + java.util.List + getExemptedMembersList(); /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -72,13 +46,10 @@ public interface AuditLogConfigOrBuilder
    * 
* * repeated string exempted_members = 2; - * * @return The count of exemptedMembers. */ int getExemptedMembersCount(); /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -86,14 +57,11 @@ public interface AuditLogConfigOrBuilder
    * 
* * repeated string exempted_members = 2; - * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ java.lang.String getExemptedMembers(int index); /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -101,9 +69,9 @@ public interface AuditLogConfigOrBuilder
    * 
* * repeated string exempted_members = 2; - * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - com.google.protobuf.ByteString getExemptedMembersBytes(int index); + com.google.protobuf.ByteString + getExemptedMembersBytes(int index); } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java similarity index 85% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index d4cb1d80f7..8b1b11904d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * Associates `members`, or principals, with a `role`.
  * 
* * Protobuf type {@code google.iam.v1.Binding} */ -public final class Binding extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.Binding) BindingOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Binding() { role_ = ""; members_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,16 +26,18 @@ private Binding() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Binding(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -66,17 +50,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object role_; + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; /** - * - * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The role. */ @java.lang.Override @@ -85,30 +67,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -117,10 +99,9 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int MEMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList members_; /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -156,15 +137,13 @@ public com.google.protobuf.ByteString getRoleBytes() {
    * 
* * repeated string members = 2; - * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList getMembersList() { + public com.google.protobuf.ProtocolStringList + getMembersList() { return members_; } /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -200,15 +179,12 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
    * 
* * repeated string members = 2; - * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -244,7 +220,6 @@ public int getMembersCount() {
    * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -252,8 +227,6 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -289,19 +262,17 @@ public java.lang.String getMembers(int index) {
    * 
* * repeated string members = 2; - * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString getMembersBytes(int index) { + public com.google.protobuf.ByteString + getMembersBytes(int index) { return members_.getByteString(index); } public static final int CONDITION_FIELD_NUMBER = 3; private com.google.type.Expr condition_; /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -315,7 +286,6 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
    * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -323,8 +293,6 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -338,7 +306,6 @@ public boolean hasCondition() {
    * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ @java.lang.Override @@ -346,8 +313,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -364,11 +329,10 @@ public com.google.type.Expr getCondition() {
    */
   @java.lang.Override
   public com.google.type.ExprOrBuilder getConditionOrBuilder() {
-    return getCondition();
+    return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -380,7 +344,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(role_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
     }
@@ -411,7 +376,8 @@ public int getSerializedSize() {
       size += 1 * getMembersList().size();
     }
     if (condition_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -421,18 +387,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.iam.v1.Binding)) {
       return super.equals(obj);
     }
     com.google.iam.v1.Binding other = (com.google.iam.v1.Binding) obj;
 
-    if (!getRole().equals(other.getRole())) return false;
-    if (!getMembersList().equals(other.getMembersList())) return false;
+    if (!getRole()
+        .equals(other.getRole())) return false;
+    if (!getMembersList()
+        .equals(other.getMembersList())) return false;
     if (hasCondition() != other.hasCondition()) return false;
     if (hasCondition()) {
-      if (!getCondition().equals(other.getCondition())) return false;
+      if (!getCondition()
+          .equals(other.getCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -460,114 +429,109 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.Binding parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v1.Binding parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v1.Binding parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.Binding 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.iam.v1.Binding 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.iam.v1.Binding 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.iam.v1.Binding parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.iam.v1.Binding parseFrom(
+      com.google.protobuf.CodedInputStream 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.iam.v1.Binding 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.iam.v1.Binding 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;
   }
   /**
-   *
-   *
    * 
    * Associates `members`, or principals, with a `role`.
    * 
* * Protobuf type {@code google.iam.v1.Binding} */ - 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.iam.v1.Binding) com.google.iam.v1.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -580,30 +544,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.Binding.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; role_ = ""; - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (conditionBuilder_ == null) { - condition_ = null; - } else { - condition_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); conditionBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -624,59 +591,68 @@ public com.google.iam.v1.Binding build() { @java.lang.Override public com.google.iam.v1.Binding buildPartial() { com.google.iam.v1.Binding result = new com.google.iam.v1.Binding(this); - int from_bitField0_ = bitField0_; - result.role_ = role_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v1.Binding result) { + if (((bitField0_ & 0x00000002) != 0)) { members_ = members_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; - if (conditionBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = conditionBuilder_.build(); + } + + private void buildPartial0(com.google.iam.v1.Binding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.condition_ = conditionBuilder_ == null + ? condition_ + : conditionBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v1.Binding) { - return mergeFrom((com.google.iam.v1.Binding) other); + return mergeFrom((com.google.iam.v1.Binding)other); } else { super.mergeFrom(other); return this; @@ -687,12 +663,13 @@ public Builder mergeFrom(com.google.iam.v1.Binding other) { if (other == com.google.iam.v1.Binding.getDefaultInstance()) return this; if (!other.getRole().isEmpty()) { role_ = other.role_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); @@ -728,32 +705,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - role_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMembersIsMutable(); - members_.add(s); - break; - } // case 18 - case 26: - { - input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMembersIsMutable(); + members_.add(s); + break; + } // case 18 + case 26: { + input.readMessage( + getConditionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -763,26 +738,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -791,22 +763,21 @@ public java.lang.String getRole() { } } /** - * - * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -814,81 +785,66 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { - role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - role_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList members_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { members_ = new com.google.protobuf.LazyStringArrayList(members_); - bitField0_ |= 0x00000001; - } + bitField0_ |= 0x00000002; + } } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -924,15 +880,13 @@ private void ensureMembersIsMutable() {
      * 
* * repeated string members = 2; - * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList getMembersList() { + public com.google.protobuf.ProtocolStringList + getMembersList() { return members_.getUnmodifiableView(); } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -968,15 +922,12 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
      * 
* * repeated string members = 2; - * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1012,7 +963,6 @@ public int getMembersCount() {
      * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -1020,8 +970,6 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1057,16 +1005,14 @@ public java.lang.String getMembers(int index) {
      * 
* * repeated string members = 2; - * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString getMembersBytes(int index) { + public com.google.protobuf.ByteString + getMembersBytes(int index) { return members_.getByteString(index); } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1102,23 +1048,19 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
      * 
* * repeated string members = 2; - * * @param index The index to set the value at. * @param value The members to set. * @return This builder for chaining. */ - public Builder setMembers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMembers( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1154,22 +1096,18 @@ public Builder setMembers(int index, java.lang.String value) {
      * 
* * repeated string members = 2; - * * @param value The members to add. * @return This builder for chaining. */ - public Builder addMembers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMembers( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1205,19 +1143,18 @@ public Builder addMembers(java.lang.String value) {
      * 
* * repeated string members = 2; - * * @param values The members to add. * @return This builder for chaining. */ - public Builder addAllMembers(java.lang.Iterable values) { + public Builder addAllMembers( + java.lang.Iterable values) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1253,18 +1190,15 @@ public Builder addAllMembers(java.lang.Iterable values) {
      * 
* * repeated string members = 2; - * * @return This builder for chaining. */ public Builder clearMembers() { members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1300,14 +1234,12 @@ public Builder clearMembers() {
      * 
* * repeated string members = 2; - * * @param value The bytes of the members to add. * @return This builder for chaining. */ - public Builder addMembersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMembersIsMutable(); members_.add(value); @@ -1317,11 +1249,8 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) { private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; /** - * - * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1335,15 +1264,12 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1357,7 +1283,6 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1368,8 +1293,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1390,16 +1313,14 @@ public Builder setCondition(com.google.type.Expr value) {
           throw new NullPointerException();
         }
         condition_ = value;
-        onChanged();
       } else {
         conditionBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1414,19 +1335,18 @@ public Builder setCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr condition = 3;
      */
-    public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
+    public Builder setCondition(
+        com.google.type.Expr.Builder builderForValue) {
       if (conditionBuilder_ == null) {
         condition_ = builderForValue.build();
-        onChanged();
       } else {
         conditionBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1443,21 +1363,21 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
      */
     public Builder mergeCondition(com.google.type.Expr value) {
       if (conditionBuilder_ == null) {
-        if (condition_ != null) {
-          condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000004) != 0) &&
+          condition_ != null &&
+          condition_ != com.google.type.Expr.getDefaultInstance()) {
+          getConditionBuilder().mergeFrom(value);
         } else {
           condition_ = value;
         }
-        onChanged();
       } else {
         conditionBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1473,19 +1393,16 @@ public Builder mergeCondition(com.google.type.Expr value) {
      * .google.type.Expr condition = 3;
      */
     public Builder clearCondition() {
-      if (conditionBuilder_ == null) {
-        condition_ = null;
-        onChanged();
-      } else {
-        condition_ = null;
+      bitField0_ = (bitField0_ & ~0x00000004);
+      condition_ = null;
+      if (conditionBuilder_ != null) {
+        conditionBuilder_.dispose();
         conditionBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1501,13 +1418,11 @@ public Builder clearCondition() {
      * .google.type.Expr condition = 3;
      */
     public com.google.type.Expr.Builder getConditionBuilder() {
-
+      bitField0_ |= 0x00000004;
       onChanged();
       return getConditionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1526,12 +1441,11 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
       if (conditionBuilder_ != null) {
         return conditionBuilder_.getMessageOrBuilder();
       } else {
-        return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
+        return condition_ == null ?
+            com.google.type.Expr.getDefaultInstance() : condition_;
       }
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1547,20 +1461,21 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
      * .google.type.Expr condition = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
         getConditionFieldBuilder() {
       if (conditionBuilder_ == null) {
-        conditionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getCondition(), getParentForChildren(), isClean());
+        conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getCondition(),
+                getParentForChildren(),
+                isClean());
         condition_ = null;
       }
       return conditionBuilder_;
     }
-
     @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);
     }
 
@@ -1570,12 +1485,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v1.Binding)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.Binding)
   private static final com.google.iam.v1.Binding DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.Binding();
   }
@@ -1584,27 +1499,27 @@ public static com.google.iam.v1.Binding getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Binding parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Binding parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1619,4 +1534,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.Binding getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
similarity index 71%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
index f6d46a10be..7d16cebc64 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.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/iam/v1/policy.proto
 
 package com.google.iam.v1;
 
 /**
- *
- *
  * 
  * One delta entry for Binding. Each individual change (only one member in each
  * entry) to a binding will be a separate entry.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.iam.v1.BindingDelta}
  */
-public final class BindingDelta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BindingDelta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.BindingDelta)
     BindingDeltaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BindingDelta.newBuilder() to construct.
   private BindingDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BindingDelta() {
     action_ = 0;
     role_ = "";
@@ -46,41 +28,39 @@ private BindingDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.BindingDelta.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -89,8 +69,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of a Binding.
      * 
@@ -99,8 +77,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of a Binding.
      * 
@@ -112,8 +88,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -122,8 +96,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of a Binding.
      * 
@@ -132,8 +104,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of a Binding.
      * 
@@ -142,6 +112,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,49 +137,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return ADD; - case 2: - return REMOVE; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return ADD; + case 2: return REMOVE; + 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< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.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.iam.v1.BindingDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -226,48 +197,37 @@ private Action(int value) { } public static final int ACTION_FIELD_NUMBER = 1; - private int action_; + private int action_ = 0; /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.iam.v1.BindingDelta.Action getAction() { - @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = - com.google.iam.v1.BindingDelta.Action.valueOf(action_); + @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { + com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; - private volatile java.lang.Object role_; + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -275,7 +235,6 @@ public com.google.iam.v1.BindingDelta.Action getAction() {
    * 
* * string role = 2; - * * @return The role. */ @java.lang.Override @@ -284,15 +243,14 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -300,15 +258,16 @@ public java.lang.String getRole() {
    * 
* * string role = 2; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -317,10 +276,9 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int MEMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object member_; + @SuppressWarnings("serial") + private volatile java.lang.Object member_ = ""; /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -328,7 +286,6 @@ public com.google.protobuf.ByteString getRoleBytes() {
    * 
* * string member = 3; - * * @return The member. */ @java.lang.Override @@ -337,15 +294,14 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -353,15 +309,16 @@ public java.lang.String getMember() {
    * 
* * string member = 3; - * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -372,14 +329,11 @@ public com.google.protobuf.ByteString getMemberBytes() { public static final int CONDITION_FIELD_NUMBER = 4; private com.google.type.Expr condition_; /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -387,14 +341,11 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ @java.lang.Override @@ -402,8 +353,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
    * The condition that is associated with this binding.
    * 
@@ -412,11 +361,10 @@ public com.google.type.Expr getCondition() { */ @java.lang.Override public com.google.type.ExprOrBuilder getConditionOrBuilder() { - return getCondition(); + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,7 +376,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 (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -451,7 +400,8 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -460,7 +410,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -470,7 +421,7 @@ 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.iam.v1.BindingDelta)) { return super.equals(obj); @@ -478,11 +429,14 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.BindingDelta other = (com.google.iam.v1.BindingDelta) obj; if (action_ != other.action_) return false; - if (!getRole().equals(other.getRole())) return false; - if (!getMember().equals(other.getMember())) return false; + if (!getRole() + .equals(other.getRole())) return false; + if (!getMember() + .equals(other.getMember())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -510,103 +464,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.BindingDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.BindingDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.BindingDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.BindingDelta parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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; } /** - * - * *
    * One delta entry for Binding. Each individual change (only one member in each
    * entry) to a binding will be a separate entry.
@@ -614,50 +562,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.BindingDelta}
    */
-  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.iam.v1.BindingDelta)
       com.google.iam.v1.BindingDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.BindingDelta.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       action_ = 0;
-
       role_ = "";
-
       member_ = "";
-
-      if (conditionBuilder_ == null) {
-        condition_ = null;
-      } else {
-        condition_ = null;
+      condition_ = null;
+      if (conditionBuilder_ != null) {
+        conditionBuilder_.dispose();
         conditionBuilder_ = null;
       }
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
@@ -678,55 +627,65 @@ public com.google.iam.v1.BindingDelta build() {
     @java.lang.Override
     public com.google.iam.v1.BindingDelta buildPartial() {
       com.google.iam.v1.BindingDelta result = new com.google.iam.v1.BindingDelta(this);
-      result.action_ = action_;
-      result.role_ = role_;
-      result.member_ = member_;
-      if (conditionBuilder_ == null) {
-        result.condition_ = condition_;
-      } else {
-        result.condition_ = conditionBuilder_.build();
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.iam.v1.BindingDelta result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.action_ = action_;
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.role_ = role_;
+      }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.member_ = member_;
+      }
+      if (((from_bitField0_ & 0x00000008) != 0)) {
+        result.condition_ = conditionBuilder_ == null
+            ? condition_
+            : conditionBuilder_.build();
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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.iam.v1.BindingDelta) {
-        return mergeFrom((com.google.iam.v1.BindingDelta) other);
+        return mergeFrom((com.google.iam.v1.BindingDelta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -740,10 +699,12 @@ public Builder mergeFrom(com.google.iam.v1.BindingDelta other) {
       }
       if (!other.getRole().isEmpty()) {
         role_ = other.role_;
+        bitField0_ |= 0x00000002;
         onChanged();
       }
       if (!other.getMember().isEmpty()) {
         member_ = other.member_;
+        bitField0_ |= 0x00000004;
         onChanged();
       }
       if (other.hasCondition()) {
@@ -775,37 +736,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                action_ = input.readEnum();
-
-                break;
-              } // case 8
-            case 18:
-              {
-                role_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                member_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              action_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              role_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              member_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getConditionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -815,72 +773,58 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+    private int bitField0_;
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - action_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { - @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = - com.google.iam.v1.BindingDelta.Action.valueOf(action_); + com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -888,25 +832,22 @@ public Builder setAction(com.google.iam.v1.BindingDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + bitField0_ = (bitField0_ & ~0x00000001); action_ = 0; onChanged(); return this; @@ -914,8 +855,6 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -923,13 +862,13 @@ public Builder clearAction() {
      * 
* * string role = 2; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -938,8 +877,6 @@ public java.lang.String getRole() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -947,14 +884,15 @@ public java.lang.String getRole() {
      * 
* * string role = 2; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -962,8 +900,6 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -971,22 +907,18 @@ public com.google.protobuf.ByteString getRoleBytes() {
      * 
* * string role = 2; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -994,18 +926,15 @@ public Builder setRole(java.lang.String value) {
      * 
* * string role = 2; - * * @return This builder for chaining. */ public Builder clearRole() { - role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -1013,25 +942,21 @@ public Builder clearRole() {
      * 
* * string role = 2; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - role_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object member_ = ""; /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1039,13 +964,13 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) {
      * 
* * string member = 3; - * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -1054,8 +979,6 @@ public java.lang.String getMember() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1063,14 +986,15 @@ public java.lang.String getMember() {
      * 
* * string member = 3; - * * @return The bytes for member. */ - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -1078,8 +1002,6 @@ public com.google.protobuf.ByteString getMemberBytes() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1087,22 +1009,18 @@ public com.google.protobuf.ByteString getMemberBytes() {
      * 
* * string member = 3; - * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setMember( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } member_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1110,18 +1028,15 @@ public Builder setMember(java.lang.String value) {
      * 
* * string member = 3; - * * @return This builder for chaining. */ public Builder clearMember() { - member_ = getDefaultInstance().getMember(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1129,48 +1044,39 @@ public Builder clearMember() {
      * 
* * string member = 3; - * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMemberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - member_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1181,8 +1087,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1195,35 +1099,32 @@ public Builder setCondition(com.google.type.Expr value) { throw new NullPointerException(); } condition_ = value; - onChanged(); } else { conditionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; */ - public Builder setCondition(com.google.type.Expr.Builder builderForValue) { + public Builder setCondition( + com.google.type.Expr.Builder builderForValue) { if (conditionBuilder_ == null) { condition_ = builderForValue.build(); - onChanged(); } else { conditionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1232,21 +1133,21 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { */ public Builder mergeCondition(com.google.type.Expr value) { if (conditionBuilder_ == null) { - if (condition_ != null) { - condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) && + condition_ != null && + condition_ != com.google.type.Expr.getDefaultInstance()) { + getConditionBuilder().mergeFrom(value); } else { condition_ = value; } - onChanged(); } else { conditionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1254,19 +1155,16 @@ public Builder mergeCondition(com.google.type.Expr value) { * .google.type.Expr condition = 4; */ public Builder clearCondition() { - if (conditionBuilder_ == null) { - condition_ = null; - onChanged(); - } else { - condition_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); conditionBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1274,13 +1172,11 @@ public Builder clearCondition() { * .google.type.Expr condition = 4; */ public com.google.type.Expr.Builder getConditionBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getConditionFieldBuilder().getBuilder(); } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1291,12 +1187,11 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + return condition_ == null ? + com.google.type.Expr.getDefaultInstance() : condition_; } } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1304,20 +1199,21 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * .google.type.Expr condition = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getCondition(), getParentForChildren(), isClean()); + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); condition_ = null; } return conditionBuilder_; } - @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); } @@ -1327,12 +1223,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.BindingDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.BindingDelta) private static final com.google.iam.v1.BindingDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.BindingDelta(); } @@ -1341,27 +1237,27 @@ public static com.google.iam.v1.BindingDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1376,4 +1272,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.BindingDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java similarity index 73% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index a2959294d9..3d33038cfe 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingDeltaOrBuilder - extends +public interface BindingDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.BindingDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ com.google.iam.v1.BindingDelta.Action getAction(); /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -60,13 +36,10 @@ public interface BindingDeltaOrBuilder
    * 
* * string role = 2; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -74,14 +47,12 @@ public interface BindingDeltaOrBuilder
    * 
* * string role = 2; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -89,13 +60,10 @@ public interface BindingDeltaOrBuilder
    * 
* * string member = 3; - * * @return The member. */ java.lang.String getMember(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -103,38 +71,30 @@ public interface BindingDeltaOrBuilder
    * 
* * string member = 3; - * * @return The bytes for member. */ - com.google.protobuf.ByteString getMemberBytes(); + com.google.protobuf.ByteString + getMemberBytes(); /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ com.google.type.Expr getCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * 
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java similarity index 92% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java index b5e660fa3a..7139dde2f6 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingOrBuilder - extends +public interface BindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Binding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -88,13 +65,11 @@ public interface BindingOrBuilder
    * 
* * repeated string members = 2; - * * @return A list containing the members. */ - java.util.List getMembersList(); + java.util.List + getMembersList(); /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -130,13 +105,10 @@ public interface BindingOrBuilder
    * 
* * repeated string members = 2; - * * @return The count of members. */ int getMembersCount(); /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -172,14 +144,11 @@ public interface BindingOrBuilder
    * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ java.lang.String getMembers(int index); /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -215,15 +184,13 @@ public interface BindingOrBuilder
    * 
* * repeated string members = 2; - * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - com.google.protobuf.ByteString getMembersBytes(int index); + com.google.protobuf.ByteString + getMembersBytes(int index); /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -237,13 +204,10 @@ public interface BindingOrBuilder
    * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -257,13 +221,10 @@ public interface BindingOrBuilder
    * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ com.google.type.Expr getCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
similarity index 64%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
index 883feeaae9..9ad8daecc0 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
@@ -1,86 +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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
- *
- *
  * 
  * Request message for `GetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ -public final class GetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetIamPolicyRequest) GetIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetIamPolicyRequest.newBuilder() to construct. private GetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, - com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object resource_; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -89,32 +66,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -125,15 +100,12 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int OPTIONS_FIELD_NUMBER = 2; private com.google.iam.v1.GetPolicyOptions options_; /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ @java.lang.Override @@ -141,15 +113,12 @@ public boolean hasOptions() { return options_ != null; } /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ @java.lang.Override @@ -157,8 +126,6 @@ public com.google.iam.v1.GetPolicyOptions getOptions() { return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
@@ -168,11 +135,10 @@ public com.google.iam.v1.GetPolicyOptions getOptions() {
    */
   @java.lang.Override
   public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
-    return getOptions();
+    return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,7 +150,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(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -204,7 +171,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (options_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getOptions());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -214,17 +182,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.iam.v1.GetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.GetIamPolicyRequest other = (com.google.iam.v1.GetIamPolicyRequest) obj;
 
-    if (!getResource().equals(other.getResource())) return false;
+    if (!getResource()
+        .equals(other.getResource())) return false;
     if (hasOptions() != other.hasOptions()) return false;
     if (hasOptions()) {
-      if (!getOptions().equals(other.getOptions())) return false;
+      if (!getOptions()
+          .equals(other.getOptions())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -248,153 +218,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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 `GetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ - 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.iam.v1.GetIamPolicyRequest) com.google.iam.v1.GetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, - com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; resource_ = ""; - - if (optionsBuilder_ == null) { - options_ = null; - } else { - options_ = null; + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); optionsBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override @@ -413,55 +377,60 @@ public com.google.iam.v1.GetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.GetIamPolicyRequest buildPartial() { - com.google.iam.v1.GetIamPolicyRequest result = - new com.google.iam.v1.GetIamPolicyRequest(this); - result.resource_ = resource_; - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } + com.google.iam.v1.GetIamPolicyRequest result = new com.google.iam.v1.GetIamPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.options_ = optionsBuilder_ == null + ? options_ + : optionsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v1.GetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.GetIamPolicyRequest) other); + return mergeFrom((com.google.iam.v1.GetIamPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -472,6 +441,7 @@ public Builder mergeFrom(com.google.iam.v1.GetIamPolicyRequest other) { if (other == com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasOptions()) { @@ -503,25 +473,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -531,26 +500,23 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -559,24 +525,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -584,120 +547,90 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.iam.v1.GetPolicyOptions options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, - com.google.iam.v1.GetPolicyOptions.Builder, - com.google.iam.v1.GetPolicyOptionsOrBuilder> - optionsBuilder_; + com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> optionsBuilder_; /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ public boolean hasOptions() { - return optionsBuilder_ != null || options_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ public com.google.iam.v1.GetPolicyOptions getOptions() { if (optionsBuilder_ == null) { - return options_ == null - ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() - : options_; + return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -711,16 +644,14 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
           throw new NullPointerException();
         }
         options_ = value;
-        onChanged();
       } else {
         optionsBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -728,19 +659,18 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
      *
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
-    public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
+    public Builder setOptions(
+        com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
       if (optionsBuilder_ == null) {
         options_ = builderForValue.build();
-        onChanged();
       } else {
         optionsBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -750,24 +680,21 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForV
      */
     public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       if (optionsBuilder_ == null) {
-        if (options_ != null) {
-          options_ =
-              com.google.iam.v1.GetPolicyOptions.newBuilder(options_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000002) != 0) &&
+          options_ != null &&
+          options_ != com.google.iam.v1.GetPolicyOptions.getDefaultInstance()) {
+          getOptionsBuilder().mergeFrom(value);
         } else {
           options_ = value;
         }
-        onChanged();
       } else {
         optionsBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -776,19 +703,16 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     public Builder clearOptions() {
-      if (optionsBuilder_ == null) {
-        options_ = null;
-        onChanged();
-      } else {
-        options_ = null;
+      bitField0_ = (bitField0_ & ~0x00000002);
+      options_ = null;
+      if (optionsBuilder_ != null) {
+        optionsBuilder_.dispose();
         optionsBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -797,13 +721,11 @@ public Builder clearOptions() {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() {
-
+      bitField0_ |= 0x00000002;
       onChanged();
       return getOptionsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -815,14 +737,11 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
       if (optionsBuilder_ != null) {
         return optionsBuilder_.getMessageOrBuilder();
       } else {
-        return options_ == null
-            ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance()
-            : options_;
+        return options_ == null ?
+            com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_;
       }
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -831,24 +750,21 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.GetPolicyOptions,
-            com.google.iam.v1.GetPolicyOptions.Builder,
-            com.google.iam.v1.GetPolicyOptionsOrBuilder>
+        com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> 
         getOptionsFieldBuilder() {
       if (optionsBuilder_ == null) {
-        optionsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.GetPolicyOptions,
-                com.google.iam.v1.GetPolicyOptions.Builder,
-                com.google.iam.v1.GetPolicyOptionsOrBuilder>(
-                getOptions(), getParentForChildren(), isClean());
+        optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder>(
+                getOptions(),
+                getParentForChildren(),
+                isClean());
         options_ = null;
       }
       return optionsBuilder_;
     }
-
     @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);
     }
 
@@ -858,12 +774,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v1.GetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.GetIamPolicyRequest)
   private static final com.google.iam.v1.GetIamPolicyRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.GetIamPolicyRequest();
   }
@@ -872,27 +788,27 @@ public static com.google.iam.v1.GetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GetIamPolicyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GetIamPolicyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -907,4 +823,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.GetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
similarity index 59%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
index 5f90592d42..1107e27878 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
@@ -1,88 +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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface GetIamPolicyRequestOrBuilder
-    extends
+public interface GetIamPolicyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.GetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ boolean hasOptions(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ com.google.iam.v1.GetPolicyOptions getOptions(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
similarity index 70%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
index 1c427ecb8d..783eba9255 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
@@ -1,74 +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/iam/v1/options.proto
 
 package com.google.iam.v1;
 
 /**
- *
- *
  * 
  * Encapsulates settings provided to GetIamPolicy.
  * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ -public final class GetPolicyOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPolicyOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetPolicyOptions) GetPolicyOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPolicyOptions.newBuilder() to construct. private GetPolicyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GetPolicyOptions() {} + private GetPolicyOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, - com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); } public static final int REQUESTED_POLICY_VERSION_FIELD_NUMBER = 1; - private int requestedPolicyVersion_; + private int requestedPolicyVersion_ = 0; /** - * - * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -87,7 +68,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -96,7 +76,6 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,7 +87,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 (requestedPolicyVersion_ != 0) { output.writeInt32(1, requestedPolicyVersion_); } @@ -122,7 +102,8 @@ public int getSerializedSize() { size = 0; if (requestedPolicyVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, requestedPolicyVersion_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, requestedPolicyVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -132,14 +113,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.iam.v1.GetPolicyOptions)) { return super.equals(obj); } com.google.iam.v1.GetPolicyOptions other = (com.google.iam.v1.GetPolicyOptions) obj; - if (getRequestedPolicyVersion() != other.getRequestedPolicyVersion()) return false; + if (getRequestedPolicyVersion() + != other.getRequestedPolicyVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,147 +140,142 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.GetPolicyOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.GetPolicyOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.GetPolicyOptions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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; } /** - * - * *
    * Encapsulates settings provided to GetIamPolicy.
    * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ - 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.iam.v1.GetPolicyOptions) com.google.iam.v1.GetPolicyOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, - com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); } // Construct using com.google.iam.v1.GetPolicyOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; requestedPolicyVersion_ = 0; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override @@ -318,48 +295,54 @@ public com.google.iam.v1.GetPolicyOptions build() { @java.lang.Override public com.google.iam.v1.GetPolicyOptions buildPartial() { com.google.iam.v1.GetPolicyOptions result = new com.google.iam.v1.GetPolicyOptions(this); - result.requestedPolicyVersion_ = requestedPolicyVersion_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestedPolicyVersion_ = requestedPolicyVersion_; + } + } + @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) { + 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.iam.v1.GetPolicyOptions) { - return mergeFrom((com.google.iam.v1.GetPolicyOptions) other); + return mergeFrom((com.google.iam.v1.GetPolicyOptions)other); } else { super.mergeFrom(other); return this; @@ -397,19 +380,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - requestedPolicyVersion_ = input.readInt32(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + requestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,11 +400,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int requestedPolicyVersion_; + private int requestedPolicyVersion_ ; /** - * - * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -442,7 +422,6 @@ public Builder mergeFrom(
      * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -450,8 +429,6 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** - * - * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -470,19 +447,17 @@ public int getRequestedPolicyVersion() {
      * 
* * int32 requested_policy_version = 1; - * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ public Builder setRequestedPolicyVersion(int value) { - + requestedPolicyVersion_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -501,18 +476,17 @@ public Builder setRequestedPolicyVersion(int value) {
      * 
* * int32 requested_policy_version = 1; - * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { - + bitField0_ = (bitField0_ & ~0x00000001); requestedPolicyVersion_ = 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); } @@ -522,12 +496,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.GetPolicyOptions) } // @@protoc_insertion_point(class_scope:google.iam.v1.GetPolicyOptions) private static final com.google.iam.v1.GetPolicyOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.GetPolicyOptions(); } @@ -536,27 +510,27 @@ public static com.google.iam.v1.GetPolicyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -571,4 +545,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.GetPolicyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java similarity index 64% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java index 1cd51a9971..64770ef737 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.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/iam/v1/options.proto package com.google.iam.v1; -public interface GetPolicyOptionsOrBuilder - extends +public interface GetPolicyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.GetPolicyOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -44,7 +26,6 @@ public interface GetPolicyOptionsOrBuilder
    * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ int getRequestedPolicyVersion(); diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java new file mode 100644 index 0000000000..1636f34c79 --- /dev/null +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/iam_policy.proto + +package com.google.iam.v1; + +public final class IamPolicyProto { + private IamPolicyProto() {} + 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_iam_v1_SetIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsResponse_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\036google/iam/v1/iam_policy.proto\022\rgoogle" + + ".iam.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032\033google/iam/v1/options.proto\032\032google/" + + "iam/v1/policy.proto\032 google/protobuf/fie" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" + + "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" + + "gle.golang.org/genproto/googleapis/iam/v" + + "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" + + "Cloud\\Iam\\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.iam.v1.OptionsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, + new java.lang.String[] { "Resource", "Policy", "UpdateMask", }); + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, + new java.lang.String[] { "Resource", "Options", }); + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, + new java.lang.String[] { "Resource", "Permissions", }); + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, + new java.lang.String[] { "Permissions", }); + 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.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.iam.v1.OptionsProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java new file mode 100644 index 0000000000..6c60c51bcd --- /dev/null +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/options.proto + +package com.google.iam.v1; + +public final class OptionsProto { + private OptionsProto() {} + 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_iam_v1_GetPolicyOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetPolicyOptions_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\033google/iam/v1/options.proto\022\rgoogle.ia" + + "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" + + "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" + + "B\014OptionsProtoP\001Z0google.golang.org/genp" + + "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" + + "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_iam_v1_GetPolicyOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetPolicyOptions_descriptor, + new java.lang.String[] { "RequestedPolicyVersion", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java similarity index 84% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java index b03aa80d06..2248e71782 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * An Identity and Access Management (IAM) policy, which specifies access
  * controls for Google Cloud resources.
@@ -85,16 +68,15 @@
  *
  * Protobuf type {@code google.iam.v1.Policy}
  */
-public final class Policy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Policy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.Policy)
     PolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Policy.newBuilder() to construct.
   private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Policy() {
     bindings_ = java.util.Collections.emptyList();
     auditConfigs_ = java.util.Collections.emptyList();
@@ -103,16 +85,18 @@ private Policy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Policy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
   }
 
@@ -125,10 +109,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   public static final int VERSION_FIELD_NUMBER = 1;
-  private int version_;
+  private int version_ = 0;
   /**
-   *
-   *
    * 
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -151,7 +133,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 version = 1; - * * @return The version. */ @java.lang.Override @@ -160,10 +141,9 @@ public int getVersion() { } public static final int BINDINGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List bindings_; /** - * - * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -183,8 +163,6 @@ public java.util.List getBindingsList() {
     return bindings_;
   }
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -200,12 +178,11 @@ public java.util.List getBindingsList() {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public java.util.List getBindingsOrBuilderList() {
+  public java.util.List 
+      getBindingsOrBuilderList() {
     return bindings_;
   }
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -225,8 +202,6 @@ public int getBindingsCount() {
     return bindings_.size();
   }
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -246,8 +221,6 @@ public com.google.iam.v1.Binding getBindings(int index) {
     return bindings_.get(index);
   }
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -263,15 +236,15 @@ public com.google.iam.v1.Binding getBindings(int index) {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
+  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
+      int index) {
     return bindings_.get(index);
   }
 
   public static final int AUDIT_CONFIGS_FIELD_NUMBER = 6;
+  @SuppressWarnings("serial")
   private java.util.List auditConfigs_;
   /**
-   *
-   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -283,8 +256,6 @@ public java.util.List getAuditConfigsList() { return auditConfigs_; } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -292,13 +263,11 @@ public java.util.List getAuditConfigsList() { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigsOrBuilderList() { return auditConfigs_; } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -310,8 +279,6 @@ public int getAuditConfigsCount() { return auditConfigs_.size(); } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -323,8 +290,6 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { return auditConfigs_.get(index); } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -332,15 +297,14 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index) { return auditConfigs_.get(index); } public static final int ETAG_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString etag_; + private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -356,7 +320,6 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index
    * 
* * bytes etag = 3; - * * @return The etag. */ @java.lang.Override @@ -365,7 +328,6 @@ public com.google.protobuf.ByteString getEtag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +339,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 (version_ != 0) { output.writeInt32(1, version_); } @@ -400,16 +363,20 @@ public int getSerializedSize() { size = 0; if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, version_); } if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, etag_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, etag_); } for (int i = 0; i < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, bindings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, bindings_.get(i)); } for (int i = 0; i < auditConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, auditConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, auditConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -419,17 +386,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.iam.v1.Policy)) { return super.equals(obj); } com.google.iam.v1.Policy other = (com.google.iam.v1.Policy) obj; - if (getVersion() != other.getVersion()) return false; - if (!getBindingsList().equals(other.getBindingsList())) return false; - if (!getAuditConfigsList().equals(other.getAuditConfigsList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (getVersion() + != other.getVersion()) return false; + if (!getBindingsList() + .equals(other.getBindingsList())) return false; + if (!getAuditConfigsList() + .equals(other.getAuditConfigsList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -458,103 +429,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.Policy parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.Policy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Policy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Policy 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.iam.v1.Policy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.Policy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v1.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An Identity and Access Management (IAM) policy, which specifies access
    * controls for Google Cloud resources.
@@ -619,11 +584,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.Policy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy)
       com.google.iam.v1.PolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -636,38 +602,41 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     // Construct using com.google.iam.v1.Policy.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       version_ = 0;
-
       if (bindingsBuilder_ == null) {
         bindings_ = java.util.Collections.emptyList();
       } else {
         bindings_ = null;
         bindingsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000001);
+      bitField0_ = (bitField0_ & ~0x00000002);
       if (auditConfigsBuilder_ == null) {
         auditConfigs_ = java.util.Collections.emptyList();
       } else {
         auditConfigs_ = null;
         auditConfigsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000004);
       etag_ = com.google.protobuf.ByteString.EMPTY;
-
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -688,68 +657,79 @@ public com.google.iam.v1.Policy build() {
     @java.lang.Override
     public com.google.iam.v1.Policy buildPartial() {
       com.google.iam.v1.Policy result = new com.google.iam.v1.Policy(this);
-      int from_bitField0_ = bitField0_;
-      result.version_ = version_;
+      buildPartialRepeatedFields(result);
+      if (bitField0_ != 0) { buildPartial0(result); }
+      onBuilt();
+      return result;
+    }
+
+    private void buildPartialRepeatedFields(com.google.iam.v1.Policy result) {
       if (bindingsBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)) {
+        if (((bitField0_ & 0x00000002) != 0)) {
           bindings_ = java.util.Collections.unmodifiableList(bindings_);
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.bindings_ = bindings_;
       } else {
         result.bindings_ = bindingsBuilder_.build();
       }
       if (auditConfigsBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000004) != 0)) {
           auditConfigs_ = java.util.Collections.unmodifiableList(auditConfigs_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000004);
         }
         result.auditConfigs_ = auditConfigs_;
       } else {
         result.auditConfigs_ = auditConfigsBuilder_.build();
       }
-      result.etag_ = etag_;
-      onBuilt();
-      return result;
+    }
+
+    private void buildPartial0(com.google.iam.v1.Policy result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.version_ = version_;
+      }
+      if (((from_bitField0_ & 0x00000008) != 0)) {
+        result.etag_ = etag_;
+      }
     }
 
     @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) {
+        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.iam.v1.Policy) {
-        return mergeFrom((com.google.iam.v1.Policy) other);
+        return mergeFrom((com.google.iam.v1.Policy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -765,7 +745,7 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
         if (!other.bindings_.isEmpty()) {
           if (bindings_.isEmpty()) {
             bindings_ = other.bindings_;
-            bitField0_ = (bitField0_ & ~0x00000001);
+            bitField0_ = (bitField0_ & ~0x00000002);
           } else {
             ensureBindingsIsMutable();
             bindings_.addAll(other.bindings_);
@@ -778,11 +758,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             bindingsBuilder_.dispose();
             bindingsBuilder_ = null;
             bindings_ = other.bindings_;
-            bitField0_ = (bitField0_ & ~0x00000001);
-            bindingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBindingsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x00000002);
+            bindingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBindingsFieldBuilder() : null;
           } else {
             bindingsBuilder_.addAllMessages(other.bindings_);
           }
@@ -792,7 +771,7 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
         if (!other.auditConfigs_.isEmpty()) {
           if (auditConfigs_.isEmpty()) {
             auditConfigs_ = other.auditConfigs_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000004);
           } else {
             ensureAuditConfigsIsMutable();
             auditConfigs_.addAll(other.auditConfigs_);
@@ -805,11 +784,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             auditConfigsBuilder_.dispose();
             auditConfigsBuilder_ = null;
             auditConfigs_ = other.auditConfigs_;
-            bitField0_ = (bitField0_ & ~0x00000002);
-            auditConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAuditConfigsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x00000004);
+            auditConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAuditConfigsFieldBuilder() : null;
           } else {
             auditConfigsBuilder_.addAllMessages(other.auditConfigs_);
           }
@@ -844,49 +822,48 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                version_ = input.readInt32();
-
-                break;
-              } // case 8
-            case 26:
-              {
-                etag_ = input.readBytes();
-
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.iam.v1.Binding m =
-                    input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry);
-                if (bindingsBuilder_ == null) {
-                  ensureBindingsIsMutable();
-                  bindings_.add(m);
-                } else {
-                  bindingsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 34
-            case 50:
-              {
-                com.google.iam.v1.AuditConfig m =
-                    input.readMessage(com.google.iam.v1.AuditConfig.parser(), extensionRegistry);
-                if (auditConfigsBuilder_ == null) {
-                  ensureAuditConfigsIsMutable();
-                  auditConfigs_.add(m);
-                } else {
-                  auditConfigsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              version_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 26: {
+              etag_ = input.readBytes();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 34: {
+              com.google.iam.v1.Binding m =
+                  input.readMessage(
+                      com.google.iam.v1.Binding.parser(),
+                      extensionRegistry);
+              if (bindingsBuilder_ == null) {
+                ensureBindingsIsMutable();
+                bindings_.add(m);
+              } else {
+                bindingsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 34
+            case 50: {
+              com.google.iam.v1.AuditConfig m =
+                  input.readMessage(
+                      com.google.iam.v1.AuditConfig.parser(),
+                      extensionRegistry);
+              if (auditConfigsBuilder_ == null) {
+                ensureAuditConfigsIsMutable();
+                auditConfigs_.add(m);
+              } else {
+                auditConfigsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -896,13 +873,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int version_;
+    private int version_ ;
     /**
-     *
-     *
      * 
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -925,7 +899,6 @@ public Builder mergeFrom(
      * 
* * int32 version = 1; - * * @return The version. */ @java.lang.Override @@ -933,8 +906,6 @@ public int getVersion() { return version_; } /** - * - * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -957,19 +928,17 @@ public int getVersion() {
      * 
* * int32 version = 1; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -992,34 +961,28 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } - private java.util.List bindings_ = java.util.Collections.emptyList(); - + private java.util.List bindings_ = + java.util.Collections.emptyList(); private void ensureBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { bindings_ = new java.util.ArrayList(bindings_); - bitField0_ |= 0x00000001; - } + bitField0_ |= 0x00000002; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder> - bindingsBuilder_; + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> bindingsBuilder_; /** - * - * *
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1042,8 +1005,6 @@ public java.util.List getBindingsList() {
       }
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1066,8 +1027,6 @@ public int getBindingsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1090,8 +1049,6 @@ public com.google.iam.v1.Binding getBindings(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1106,7 +1063,8 @@ public com.google.iam.v1.Binding getBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(int index, com.google.iam.v1.Binding value) {
+    public Builder setBindings(
+        int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1120,8 +1078,6 @@ public Builder setBindings(int index, com.google.iam.v1.Binding value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1136,7 +1092,8 @@ public Builder setBindings(int index, com.google.iam.v1.Binding value) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder setBindings(
+        int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.set(index, builderForValue.build());
@@ -1147,8 +1104,6 @@ public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1177,8 +1132,6 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1193,7 +1146,8 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(int index, com.google.iam.v1.Binding value) {
+    public Builder addBindings(
+        int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1207,8 +1161,6 @@ public Builder addBindings(int index, com.google.iam.v1.Binding value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1223,7 +1175,8 @@ public Builder addBindings(int index, com.google.iam.v1.Binding value) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(
+        com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(builderForValue.build());
@@ -1234,8 +1187,6 @@ public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1250,7 +1201,8 @@ public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(
+        int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(index, builderForValue.build());
@@ -1261,8 +1213,6 @@ public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1277,10 +1227,12 @@ public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderF
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addAllBindings(java.lang.Iterable values) {
+    public Builder addAllBindings(
+        java.lang.Iterable values) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, bindings_);
         onChanged();
       } else {
         bindingsBuilder_.addAllMessages(values);
@@ -1288,8 +1240,6 @@ public Builder addAllBindings(java.lang.Iterable
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1307,7 +1257,7 @@ public Builder addAllBindings(java.lang.Iterable
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1342,8 +1290,6 @@ public Builder removeBindings(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1358,12 +1304,11 @@ public Builder removeBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) {
+    public com.google.iam.v1.Binding.Builder getBindingsBuilder(
+        int index) {
       return getBindingsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1378,16 +1323,14 @@ public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
+    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
+        int index) {
       if (bindingsBuilder_ == null) {
-        return bindings_.get(index);
-      } else {
+        return bindings_.get(index);  } else {
         return bindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1402,7 +1345,8 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List getBindingsOrBuilderList() {
+    public java.util.List 
+         getBindingsOrBuilderList() {
       if (bindingsBuilder_ != null) {
         return bindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1410,8 +1354,6 @@ public java.util.List getBindingsO
       }
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1427,11 +1369,10 @@ public java.util.List getBindingsO
      * repeated .google.iam.v1.Binding bindings = 4;
      */
     public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
-      return getBindingsFieldBuilder().addBuilder(com.google.iam.v1.Binding.getDefaultInstance());
+      return getBindingsFieldBuilder().addBuilder(
+          com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1446,13 +1387,12 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
-      return getBindingsFieldBuilder()
-          .addBuilder(index, com.google.iam.v1.Binding.getDefaultInstance());
+    public com.google.iam.v1.Binding.Builder addBindingsBuilder(
+        int index) {
+      return getBindingsFieldBuilder().addBuilder(
+          index, com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1467,46 +1407,38 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List getBindingsBuilderList() {
+    public java.util.List 
+         getBindingsBuilderList() {
       return getBindingsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v1.Binding,
-            com.google.iam.v1.Binding.Builder,
-            com.google.iam.v1.BindingOrBuilder>
+        com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> 
         getBindingsFieldBuilder() {
       if (bindingsBuilder_ == null) {
-        bindingsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.iam.v1.Binding,
-                com.google.iam.v1.Binding.Builder,
-                com.google.iam.v1.BindingOrBuilder>(
-                bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>(
+                bindings_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         bindings_ = null;
       }
       return bindingsBuilder_;
     }
 
     private java.util.List auditConfigs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureAuditConfigsIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!((bitField0_ & 0x00000004) != 0)) {
         auditConfigs_ = new java.util.ArrayList(auditConfigs_);
-        bitField0_ |= 0x00000002;
-      }
+        bitField0_ |= 0x00000004;
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v1.AuditConfig,
-            com.google.iam.v1.AuditConfig.Builder,
-            com.google.iam.v1.AuditConfigOrBuilder>
-        auditConfigsBuilder_;
+        com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> auditConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1521,8 +1453,6 @@ public java.util.List getAuditConfigsList() { } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1537,8 +1467,6 @@ public int getAuditConfigsCount() { } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1553,15 +1481,14 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder setAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { + public Builder setAuditConfigs( + int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1575,8 +1502,6 @@ public Builder setAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1595,8 +1520,6 @@ public Builder setAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1617,15 +1540,14 @@ public Builder addAuditConfigs(com.google.iam.v1.AuditConfig value) { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { + public Builder addAuditConfigs( + int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1639,15 +1561,14 @@ public Builder addAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs(com.google.iam.v1.AuditConfig.Builder builderForValue) { + public Builder addAuditConfigs( + com.google.iam.v1.AuditConfig.Builder builderForValue) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); auditConfigs_.add(builderForValue.build()); @@ -1658,8 +1579,6 @@ public Builder addAuditConfigs(com.google.iam.v1.AuditConfig.Builder builderForV return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1678,8 +1597,6 @@ public Builder addAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1690,7 +1607,8 @@ public Builder addAllAuditConfigs( java.lang.Iterable values) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditConfigs_); onChanged(); } else { auditConfigsBuilder_.addAllMessages(values); @@ -1698,8 +1616,6 @@ public Builder addAllAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1709,7 +1625,7 @@ public Builder addAllAuditConfigs( public Builder clearAuditConfigs() { if (auditConfigsBuilder_ == null) { auditConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { auditConfigsBuilder_.clear(); @@ -1717,8 +1633,6 @@ public Builder clearAuditConfigs() { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1736,44 +1650,39 @@ public Builder removeAuditConfigs(int index) { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder(int index) { + public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder( + int index) { return getAuditConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index) { if (auditConfigsBuilder_ == null) { - return auditConfigs_.get(index); - } else { + return auditConfigs_.get(index); } else { return auditConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List - getAuditConfigsOrBuilderList() { + public java.util.List + getAuditConfigsOrBuilderList() { if (auditConfigsBuilder_ != null) { return auditConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1781,8 +1690,6 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1790,47 +1697,42 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder() { - return getAuditConfigsFieldBuilder() - .addBuilder(com.google.iam.v1.AuditConfig.getDefaultInstance()); + return getAuditConfigsFieldBuilder().addBuilder( + com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(int index) { - return getAuditConfigsFieldBuilder() - .addBuilder(index, com.google.iam.v1.AuditConfig.getDefaultInstance()); + public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( + int index) { + return getAuditConfigsFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List getAuditConfigsBuilderList() { + public java.util.List + getAuditConfigsBuilderList() { return getAuditConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, - com.google.iam.v1.AuditConfig.Builder, - com.google.iam.v1.AuditConfigOrBuilder> + com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> getAuditConfigsFieldBuilder() { if (auditConfigsBuilder_ == null) { - auditConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, - com.google.iam.v1.AuditConfig.Builder, - com.google.iam.v1.AuditConfigOrBuilder>( - auditConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + auditConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder>( + auditConfigs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); auditConfigs_ = null; } return auditConfigsBuilder_; @@ -1838,8 +1740,6 @@ public java.util.List getAuditConfigsBuil private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1855,7 +1755,6 @@ public java.util.List getAuditConfigsBuil
      * 
* * bytes etag = 3; - * * @return The etag. */ @java.lang.Override @@ -1863,8 +1762,6 @@ public com.google.protobuf.ByteString getEtag() { return etag_; } /** - * - * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1880,22 +1777,17 @@ public com.google.protobuf.ByteString getEtag() {
      * 
* * bytes etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - + if (value == null) { throw new NullPointerException(); } etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1911,18 +1803,17 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * 
* * bytes etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { - + bitField0_ = (bitField0_ & ~0x00000008); etag_ = getDefaultInstance().getEtag(); 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); } @@ -1932,12 +1823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) private static final com.google.iam.v1.Policy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.Policy(); } @@ -1946,27 +1837,27 @@ public static com.google.iam.v1.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1981,4 +1872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java similarity index 76% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index 536ede1a7c..bc89a99d1e 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.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/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * The difference delta between two policies.
  * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ -public final class PolicyDelta extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyDelta extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.PolicyDelta) PolicyDeltaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyDelta.newBuilder() to construct. private PolicyDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyDelta() { bindingDeltas_ = java.util.Collections.emptyList(); auditConfigDeltas_ = java.util.Collections.emptyList(); @@ -44,33 +26,33 @@ private PolicyDelta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyDelta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto - .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } public static final int BINDING_DELTAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List bindingDeltas_; /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -82,8 +64,6 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -91,13 +71,11 @@ public java.util.List getBindingDeltasList() { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBindingDeltasOrBuilderList() { return bindingDeltas_; } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -109,8 +87,6 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -122,8 +98,6 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -131,15 +105,15 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index) { return bindingDeltas_.get(index); } public static final int AUDIT_CONFIG_DELTAS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List auditConfigDeltas_; /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -151,8 +125,6 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -160,13 +132,11 @@ public java.util.List getAuditConfigDeltasLi * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigDeltasOrBuilderList() { return auditConfigDeltas_; } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -178,8 +148,6 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -191,8 +159,6 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -200,12 +166,12 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index) { return auditConfigDeltas_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +183,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 < bindingDeltas_.size(); i++) { output.writeMessage(1, bindingDeltas_.get(i)); } @@ -234,11 +201,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bindingDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindingDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindingDeltas_.get(i)); } for (int i = 0; i < auditConfigDeltas_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, auditConfigDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, auditConfigDeltas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -248,15 +216,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.PolicyDelta)) { return super.equals(obj); } com.google.iam.v1.PolicyDelta other = (com.google.iam.v1.PolicyDelta) obj; - if (!getBindingDeltasList().equals(other.getBindingDeltasList())) return false; - if (!getAuditConfigDeltasList().equals(other.getAuditConfigDeltasList())) return false; + if (!getBindingDeltasList() + .equals(other.getBindingDeltasList())) return false; + if (!getAuditConfigDeltasList() + .equals(other.getAuditConfigDeltasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,136 +251,134 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.PolicyDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.PolicyDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.PolicyDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.PolicyDelta parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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 difference delta between two policies.
    * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ - 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.iam.v1.PolicyDelta) com.google.iam.v1.PolicyDeltaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto - .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } // Construct using com.google.iam.v1.PolicyDelta.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (bindingDeltasBuilder_ == null) { bindingDeltas_ = java.util.Collections.emptyList(); } else { @@ -429,7 +397,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @@ -450,7 +419,13 @@ public com.google.iam.v1.PolicyDelta build() { @java.lang.Override public com.google.iam.v1.PolicyDelta buildPartial() { com.google.iam.v1.PolicyDelta result = new com.google.iam.v1.PolicyDelta(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v1.PolicyDelta result) { if (bindingDeltasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = java.util.Collections.unmodifiableList(bindingDeltas_); @@ -469,47 +444,48 @@ public com.google.iam.v1.PolicyDelta buildPartial() { } else { result.auditConfigDeltas_ = auditConfigDeltasBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v1.PolicyDelta result) { + int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v1.PolicyDelta) { - return mergeFrom((com.google.iam.v1.PolicyDelta) other); + return mergeFrom((com.google.iam.v1.PolicyDelta)other); } else { super.mergeFrom(other); return this; @@ -536,10 +512,9 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { bindingDeltasBuilder_ = null; bindingDeltas_ = other.bindingDeltas_; bitField0_ = (bitField0_ & ~0x00000001); - bindingDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBindingDeltasFieldBuilder() - : null; + bindingDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingDeltasFieldBuilder() : null; } else { bindingDeltasBuilder_.addAllMessages(other.bindingDeltas_); } @@ -563,10 +538,9 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { auditConfigDeltasBuilder_ = null; auditConfigDeltas_ = other.auditConfigDeltas_; bitField0_ = (bitField0_ & ~0x00000002); - auditConfigDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAuditConfigDeltasFieldBuilder() - : null; + auditConfigDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuditConfigDeltasFieldBuilder() : null; } else { auditConfigDeltasBuilder_.addAllMessages(other.auditConfigDeltas_); } @@ -598,38 +572,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.iam.v1.BindingDelta m = - input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry); - if (bindingDeltasBuilder_ == null) { - ensureBindingDeltasIsMutable(); - bindingDeltas_.add(m); - } else { - bindingDeltasBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.iam.v1.AuditConfigDelta m = - input.readMessage( - com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry); - if (auditConfigDeltasBuilder_ == null) { - ensureAuditConfigDeltasIsMutable(); - auditConfigDeltas_.add(m); - } else { - auditConfigDeltasBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.iam.v1.BindingDelta m = + input.readMessage( + com.google.iam.v1.BindingDelta.parser(), + extensionRegistry); + if (bindingDeltasBuilder_ == null) { + ensureBindingDeltasIsMutable(); + bindingDeltas_.add(m); + } else { + bindingDeltasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.iam.v1.AuditConfigDelta m = + input.readMessage( + com.google.iam.v1.AuditConfigDelta.parser(), + extensionRegistry); + if (auditConfigDeltasBuilder_ == null) { + ensureAuditConfigDeltasIsMutable(); + auditConfigDeltas_.add(m); + } else { + auditConfigDeltasBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,28 +613,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List bindingDeltas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBindingDeltasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = new java.util.ArrayList(bindingDeltas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder> - bindingDeltasBuilder_; + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> bindingDeltasBuilder_; /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -675,8 +642,6 @@ public java.util.List getBindingDeltasList() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -691,8 +656,6 @@ public int getBindingDeltasCount() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -707,15 +670,14 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { + public Builder setBindingDeltas( + int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,8 +691,6 @@ public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -749,8 +709,6 @@ public Builder setBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -771,15 +729,14 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta value) { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { + public Builder addBindingDeltas( + int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -793,15 +750,14 @@ public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderForValue) { + public Builder addBindingDeltas( + com.google.iam.v1.BindingDelta.Builder builderForValue) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); bindingDeltas_.add(builderForValue.build()); @@ -812,8 +768,6 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderFo return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -832,8 +786,6 @@ public Builder addBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -844,7 +796,8 @@ public Builder addAllBindingDeltas( java.lang.Iterable values) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingDeltas_); onChanged(); } else { bindingDeltasBuilder_.addAllMessages(values); @@ -852,8 +805,6 @@ public Builder addAllBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -871,8 +822,6 @@ public Builder clearBindingDeltas() { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -890,44 +839,39 @@ public Builder removeBindingDeltas(int index) { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder(int index) { + public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder( + int index) { return getBindingDeltasFieldBuilder().getBuilder(index); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index) { if (bindingDeltasBuilder_ == null) { - return bindingDeltas_.get(index); - } else { + return bindingDeltas_.get(index); } else { return bindingDeltasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasOrBuilderList() { + public java.util.List + getBindingDeltasOrBuilderList() { if (bindingDeltasBuilder_ != null) { return bindingDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -935,8 +879,6 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int ind } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -944,46 +886,38 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int ind * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder() { - return getBindingDeltasFieldBuilder() - .addBuilder(com.google.iam.v1.BindingDelta.getDefaultInstance()); + return getBindingDeltasFieldBuilder().addBuilder( + com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder(int index) { - return getBindingDeltasFieldBuilder() - .addBuilder(index, com.google.iam.v1.BindingDelta.getDefaultInstance()); + public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( + int index) { + return getBindingDeltasFieldBuilder().addBuilder( + index, com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List getBindingDeltasBuilderList() { + public java.util.List + getBindingDeltasBuilderList() { return getBindingDeltasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder> + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> getBindingDeltasFieldBuilder() { if (bindingDeltasBuilder_ == null) { - bindingDeltasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder>( + bindingDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder>( bindingDeltas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,25 +928,18 @@ public java.util.List getBindingDeltasBu } private java.util.List auditConfigDeltas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAuditConfigDeltasIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = - new java.util.ArrayList(auditConfigDeltas_); + auditConfigDeltas_ = new java.util.ArrayList(auditConfigDeltas_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder> - auditConfigDeltasBuilder_; + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> auditConfigDeltasBuilder_; /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1027,8 +954,6 @@ public java.util.List getAuditConfigDeltasLi } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1043,8 +968,6 @@ public int getAuditConfigDeltasCount() { } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1059,15 +982,14 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder setAuditConfigDeltas( + int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1081,8 +1003,6 @@ public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1101,8 +1021,6 @@ public Builder setAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1123,15 +1041,14 @@ public Builder addAuditConfigDeltas(com.google.iam.v1.AuditConfigDelta value) { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder addAuditConfigDeltas( + int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1145,8 +1062,6 @@ public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1165,8 +1080,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1185,8 +1098,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1197,7 +1108,8 @@ public Builder addAllAuditConfigDeltas( java.lang.Iterable values) { if (auditConfigDeltasBuilder_ == null) { ensureAuditConfigDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditConfigDeltas_); onChanged(); } else { auditConfigDeltasBuilder_.addAllMessages(values); @@ -1205,8 +1117,6 @@ public Builder addAllAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1224,8 +1134,6 @@ public Builder clearAuditConfigDeltas() { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1243,44 +1151,39 @@ public Builder removeAuditConfigDeltas(int index) { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder(int index) { + public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder( + int index) { return getAuditConfigDeltasFieldBuilder().getBuilder(index); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index) { if (auditConfigDeltasBuilder_ == null) { - return auditConfigDeltas_.get(index); - } else { + return auditConfigDeltas_.get(index); } else { return auditConfigDeltasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasOrBuilderList() { + public java.util.List + getAuditConfigDeltasOrBuilderList() { if (auditConfigDeltasBuilder_ != null) { return auditConfigDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -1288,8 +1191,6 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1297,47 +1198,38 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder() { - return getAuditConfigDeltasFieldBuilder() - .addBuilder(com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + return getAuditConfigDeltasFieldBuilder().addBuilder( + com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(int index) { - return getAuditConfigDeltasFieldBuilder() - .addBuilder(index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( + int index) { + return getAuditConfigDeltasFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasBuilderList() { + public java.util.List + getAuditConfigDeltasBuilderList() { return getAuditConfigDeltasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder> + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> getAuditConfigDeltasFieldBuilder() { if (auditConfigDeltasBuilder_ == null) { - auditConfigDeltasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder>( + auditConfigDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder>( auditConfigDeltas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1346,9 +1238,9 @@ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(in } return auditConfigDeltasBuilder_; } - @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); } @@ -1358,12 +1250,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.PolicyDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.PolicyDelta) private static final com.google.iam.v1.PolicyDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.PolicyDelta(); } @@ -1372,27 +1264,27 @@ public static com.google.iam.v1.PolicyDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1407,4 +1299,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.PolicyDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java similarity index 71% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index fd3e1c0ddc..4deb8c1b7d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyDeltaOrBuilder - extends +public interface PolicyDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.PolicyDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List getBindingDeltasList(); + java.util.List + getBindingDeltasList(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -44,8 +25,6 @@ public interface PolicyDeltaOrBuilder */ com.google.iam.v1.BindingDelta getBindingDeltas(int index); /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -54,39 +33,34 @@ public interface PolicyDeltaOrBuilder */ int getBindingDeltasCount(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List getBindingDeltasOrBuilderList(); + java.util.List + getBindingDeltasOrBuilderList(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index); + com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List getAuditConfigDeltasList(); + java.util.List + getAuditConfigDeltasList(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -95,8 +69,6 @@ public interface PolicyDeltaOrBuilder */ com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -105,24 +77,21 @@ public interface PolicyDeltaOrBuilder */ int getAuditConfigDeltasCount(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List + java.util.List getAuditConfigDeltasOrBuilderList(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index); + com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index); } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java similarity index 86% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java index 571dcb8057..70e913de0c 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.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/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyOrBuilder - extends +public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Policy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -48,14 +30,11 @@ public interface PolicyOrBuilder
    * 
* * int32 version = 1; - * * @return The version. */ int getVersion(); /** - * - * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -70,10 +49,9 @@ public interface PolicyOrBuilder
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List getBindingsList();
+  java.util.List 
+      getBindingsList();
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -90,8 +68,6 @@ public interface PolicyOrBuilder
    */
   com.google.iam.v1.Binding getBindings(int index);
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -108,8 +84,6 @@ public interface PolicyOrBuilder
    */
   int getBindingsCount();
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -124,10 +98,9 @@ public interface PolicyOrBuilder
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List getBindingsOrBuilderList();
+  java.util.List 
+      getBindingsOrBuilderList();
   /**
-   *
-   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -142,21 +115,19 @@ public interface PolicyOrBuilder
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index);
+  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List getAuditConfigsList(); + java.util.List + getAuditConfigsList(); /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -165,8 +136,6 @@ public interface PolicyOrBuilder */ com.google.iam.v1.AuditConfig getAuditConfigs(int index); /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -175,29 +144,25 @@ public interface PolicyOrBuilder */ int getAuditConfigsCount(); /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List getAuditConfigsOrBuilderList(); + java.util.List + getAuditConfigsOrBuilderList(); /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index); + com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index); /** - * - * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -213,7 +178,6 @@ public interface PolicyOrBuilder
    * 
* * bytes etag = 3; - * * @return The etag. */ com.google.protobuf.ByteString getEtag(); diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java new file mode 100644 index 0000000000..37ca956d15 --- /dev/null +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public final class PolicyProto { + private PolicyProto() {} + 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_iam_v1_Policy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Binding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Binding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditLogConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_PolicyDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_BindingDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfigDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfigDelta_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\032google/iam/v1/policy.proto\022\rgoogle.iam" + + ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" + + "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" + + "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" + + "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" + + "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" + + " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" + + "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" + + "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" + + "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" + + "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" + + ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" + + "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" + + "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" + + "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" + + ".google.iam.v1.BindingDelta\022<\n\023audit_con" + + "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" + + "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" + + "(\0162\".google.iam.v1.BindingDelta.Action\022\014" + + "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" + + "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" + + "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" + + "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" + + ".google.iam.v1.AuditConfigDelta.Action\022\017" + + "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" + + "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" + + "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" + + "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" + + "olang.org/genproto/googleapis/iam/v1;iam" + + "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" + + "\\Iam\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v1_Policy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_Policy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Policy_descriptor, + new java.lang.String[] { "Version", "Bindings", "AuditConfigs", "Etag", }); + internal_static_google_iam_v1_Binding_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Binding_descriptor, + new java.lang.String[] { "Role", "Members", "Condition", }); + internal_static_google_iam_v1_AuditConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfig_descriptor, + new java.lang.String[] { "Service", "AuditLogConfigs", }); + internal_static_google_iam_v1_AuditLogConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditLogConfig_descriptor, + new java.lang.String[] { "LogType", "ExemptedMembers", }); + internal_static_google_iam_v1_PolicyDelta_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_PolicyDelta_descriptor, + new java.lang.String[] { "BindingDeltas", "AuditConfigDeltas", }); + internal_static_google_iam_v1_BindingDelta_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_BindingDelta_descriptor, + new java.lang.String[] { "Action", "Role", "Member", "Condition", }); + internal_static_google_iam_v1_AuditConfigDelta_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfigDelta_descriptor, + new java.lang.String[] { "Action", "Service", "ExemptedMember", "LogType", }); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java similarity index 69% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 78d0c7aa01..9118c80f97 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -1,86 +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/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Request message for `SetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ -public final class SetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.SetIamPolicyRequest) SetIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetIamPolicyRequest.newBuilder() to construct. private SetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, - com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object resource_; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -89,32 +66,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -125,8 +100,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -143,8 +115,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -153,7 +123,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -161,8 +130,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -174,14 +141,12 @@ public com.google.iam.v1.Policy getPolicy() {
    */
   @java.lang.Override
   public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
-    return getPolicy();
+    return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -190,7 +155,6 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -198,8 +162,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -208,7 +170,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -216,8 +177,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -229,11 +188,10 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    */
   @java.lang.Override
   public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
-    return getUpdateMask();
+    return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,7 +203,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(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -268,10 +227,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getPolicy());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -281,21 +242,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.iam.v1.SetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.SetIamPolicyRequest other = (com.google.iam.v1.SetIamPolicyRequest) obj;
 
-    if (!getResource().equals(other.getResource())) return false;
+    if (!getResource()
+        .equals(other.getResource())) return false;
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -323,159 +287,152 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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 `SetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ - 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.iam.v1.SetIamPolicyRequest) com.google.iam.v1.SetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, - com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; resource_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override @@ -494,60 +451,65 @@ public com.google.iam.v1.SetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.SetIamPolicyRequest buildPartial() { - com.google.iam.v1.SetIamPolicyRequest result = - new com.google.iam.v1.SetIamPolicyRequest(this); - result.resource_ = resource_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } + com.google.iam.v1.SetIamPolicyRequest result = new com.google.iam.v1.SetIamPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v1.SetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.SetIamPolicyRequest) other); + return mergeFrom((com.google.iam.v1.SetIamPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -558,6 +520,7 @@ public Builder mergeFrom(com.google.iam.v1.SetIamPolicyRequest other) { if (other == com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPolicy()) { @@ -592,31 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -626,26 +589,23 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -654,24 +614,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -679,84 +636,62 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -765,15 +700,12 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -782,7 +714,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -793,8 +724,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -810,16 +739,14 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
           throw new NullPointerException();
         }
         policy_ = value;
-        onChanged();
       } else {
         policyBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -829,19 +756,18 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
-        onChanged();
       } else {
         policyBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -853,21 +779,21 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (policy_ != null) {
-          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000002) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+          getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
         }
-        onChanged();
       } else {
         policyBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -878,19 +804,16 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public Builder clearPolicy() {
-      if (policyBuilder_ == null) {
-        policy_ = null;
-        onChanged();
-      } else {
-        policy_ = null;
+      bitField0_ = (bitField0_ & ~0x00000002);
+      policy_ = null;
+      if (policyBuilder_ != null) {
+        policyBuilder_.dispose();
         policyBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -901,13 +824,11 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      bitField0_ |= 0x00000002;
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -921,12 +842,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -937,16 +857,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -954,13 +872,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     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_;
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -969,15 +882,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -986,21 +896,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @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(); } } /** - * - * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1016,16 +921,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
           throw new NullPointerException();
         }
         updateMask_ = value;
-        onChanged();
       } else {
         updateMaskBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1035,19 +938,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    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();
       } else {
         updateMaskBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1059,22 +961,21 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (updateMask_ != null) {
-          updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000004) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+          getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
         }
-        onChanged();
       } else {
         updateMaskBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1085,19 +986,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public Builder clearUpdateMask() {
-      if (updateMaskBuilder_ == null) {
-        updateMask_ = null;
-        onChanged();
-      } else {
-        updateMask_ = null;
+      bitField0_ = (bitField0_ & ~0x00000004);
+      updateMask_ = null;
+      if (updateMaskBuilder_ != null) {
+        updateMaskBuilder_.dispose();
         updateMaskBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1108,13 +1006,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      bitField0_ |= 0x00000004;
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1128,14 +1024,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1146,24 +1039,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     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);
     }
 
@@ -1173,12 +1063,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v1.SetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.SetIamPolicyRequest)
   private static final com.google.iam.v1.SetIamPolicyRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.SetIamPolicyRequest();
   }
@@ -1187,27 +1077,27 @@ public static com.google.iam.v1.SetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SetIamPolicyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SetIamPolicyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1222,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.SetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
similarity index 75%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
index 48ab0dff5d..e13b8ea24e 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface SetIamPolicyRequestOrBuilder
-    extends
+public interface SetIamPolicyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.SetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -65,13 +38,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -80,13 +50,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -99,8 +66,6 @@ public interface SetIamPolicyRequestOrBuilder
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -109,13 +74,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -124,13 +86,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
similarity index 69%
rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
index cb5dab7d8f..22fb69068f 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
+++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
- *
- *
  * 
  * Request message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ -public final class TestIamPermissionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TestIamPermissionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsRequest) TestIamPermissionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TestIamPermissionsRequest.newBuilder() to construct. private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TestIamPermissionsRequest() { resource_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,44 +26,39 @@ private TestIamPermissionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, - com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object resource_; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -90,32 +67,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -124,10 +99,9 @@ public com.google.protobuf.ByteString getResourceBytes() { } public static final int PERMISSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList permissions_; /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -136,15 +110,13 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -153,15 +125,12 @@ public com.google.protobuf.ProtocolStringList getPermissionsList() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -170,7 +139,6 @@ public int getPermissionsCount() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -178,8 +146,6 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -188,16 +154,15 @@ public java.lang.String getPermissions(int index) {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,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(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -244,16 +210,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.iam.v1.TestIamPermissionsRequest)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsRequest other = - (com.google.iam.v1.TestIamPermissionsRequest) obj; + com.google.iam.v1.TestIamPermissionsRequest other = (com.google.iam.v1.TestIamPermissionsRequest) obj; - if (!getResource().equals(other.getResource())) return false; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,150 +243,144 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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 `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ - 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.iam.v1.TestIamPermissionsRequest) com.google.iam.v1.TestIamPermissionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, - com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; resource_ = ""; - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override @@ -438,56 +399,64 @@ public com.google.iam.v1.TestIamPermissionsRequest build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { - com.google.iam.v1.TestIamPermissionsRequest result = - new com.google.iam.v1.TestIamPermissionsRequest(this); - int from_bitField0_ = bitField0_; - result.resource_ = resource_; - if (((bitField0_ & 0x00000001) != 0)) { + com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { permissions_ = permissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.permissions_ = permissions_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v1.TestIamPermissionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } } @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) { + 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.iam.v1.TestIamPermissionsRequest) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest) other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest)other); } else { super.mergeFrom(other); return this; @@ -498,12 +467,13 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsRequest other) { if (other == com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); @@ -536,26 +506,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,28 +532,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -595,24 +557,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -620,87 +579,66 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000001; - } + bitField0_ |= 0x00000002; + } } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -709,15 +647,13 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -726,15 +662,12 @@ public com.google.protobuf.ProtocolStringList getPermissionsList() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -743,7 +676,6 @@ public int getPermissionsCount() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -751,8 +683,6 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -761,16 +691,14 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -779,23 +707,19 @@ public com.google.protobuf.ByteString getPermissionsBytes(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -804,22 +728,18 @@ public Builder setPermissions(int index, java.lang.String value) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -828,19 +748,18 @@ public Builder addPermissions(java.lang.String value) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -849,18 +768,15 @@ public Builder addAllPermissions(java.lang.Iterable values) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPermissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -869,23 +785,21 @@ public Builder clearPermissions() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(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); } @@ -895,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsRequest) private static final com.google.iam.v1.TestIamPermissionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsRequest(); } @@ -909,27 +823,27 @@ public static com.google.iam.v1.TestIamPermissionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +858,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java similarity index 68% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 53b56f2781..262da4483e 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.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/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsRequestOrBuilder - extends +public interface TestIamPermissionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -65,13 +38,11 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -80,13 +51,10 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -95,14 +63,11 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -111,9 +76,9 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java similarity index 68% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index fbe4f1a3e7..837fce3580 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -1,114 +1,88 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Response message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ -public final class TestIamPermissionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TestIamPermissionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsResponse) TestIamPermissionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TestIamPermissionsResponse.newBuilder() to construct. private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TestIamPermissionsResponse() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, - com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList permissions_; /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -116,24 +90,21 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +116,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 < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -174,15 +146,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.iam.v1.TestIamPermissionsResponse)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsResponse other = - (com.google.iam.v1.TestIamPermissionsResponse) obj; + com.google.iam.v1.TestIamPermissionsResponse other = (com.google.iam.v1.TestIamPermissionsResponse) obj; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -203,148 +175,143 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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 `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ - 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.iam.v1.TestIamPermissionsResponse) com.google.iam.v1.TestIamPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, - com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override @@ -363,55 +330,61 @@ public com.google.iam.v1.TestIamPermissionsResponse build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { - com.google.iam.v1.TestIamPermissionsResponse result = - new com.google.iam.v1.TestIamPermissionsResponse(this); - int from_bitField0_ = bitField0_; + com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.permissions_ = permissions_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v1.TestIamPermissionsResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v1.TestIamPermissionsResponse) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse) other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse)other); } else { super.mergeFrom(other); return this; @@ -456,20 +429,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -479,58 +450,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -538,95 +498,81 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -636,31 +582,27 @@ public Builder clearPermissions() { return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(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); } @@ -670,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsResponse) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsResponse) private static final com.google.iam.v1.TestIamPermissionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsResponse(); } @@ -684,27 +626,27 @@ public static com.google.iam.v1.TestIamPermissionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -719,4 +661,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java similarity index 61% rename from java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java rename to owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index da677cbe54..ace164f534 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -1,80 +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/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsResponseOrBuilder - extends +public interface TestIamPermissionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } diff --git a/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java b/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java new file mode 100644 index 0000000000..4d18065a31 --- /dev/null +++ b/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java @@ -0,0 +1,683 @@ +package com.google.iam.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * An interface for managing Identity and Access Management (IAM) policies.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/iam/v2/policy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PoliciesGrpc { + + private PoliciesGrpc() {} + + public static final String SERVICE_NAME = "google.iam.v2.Policies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicies", + requestType = com.google.iam.v2.ListPoliciesRequest.class, + responseType = com.google.iam.v2.ListPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPoliciesMethod() { + io.grpc.MethodDescriptor getListPoliciesMethod; + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + PoliciesGrpc.getListPoliciesMethod = getListPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.ListPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.ListPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) + .build(); + } + } + } + return getListPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.iam.v2.GetPolicyRequest.class, + responseType = com.google.iam.v2.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPolicyMethod() { + io.grpc.MethodDescriptor getGetPolicyMethod; + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + PoliciesGrpc.getGetPolicyMethod = getGetPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.Policy.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", + requestType = com.google.iam.v2.CreatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePolicyMethod() { + io.grpc.MethodDescriptor getCreatePolicyMethod; + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + PoliciesGrpc.getCreatePolicyMethod = getCreatePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.CreatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) + .build(); + } + } + } + return getCreatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.iam.v2.UpdatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { + io.grpc.MethodDescriptor getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + PoliciesGrpc.getUpdatePolicyMethod = getUpdatePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", + requestType = com.google.iam.v2.DeletePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePolicyMethod() { + io.grpc.MethodDescriptor getDeletePolicyMethod; + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + PoliciesGrpc.getDeletePolicyMethod = getDeletePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.DeletePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) + .build(); + } + } + } + return getDeletePolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + }; + return PoliciesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PoliciesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + }; + return PoliciesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PoliciesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + }; + return PoliciesFutureStub.newStub(factory, channel); + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static abstract class PoliciesImplBase implements io.grpc.BindableService { + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies(com.google.iam.v2.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy(com.google.iam.v2.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy(com.google.iam.v2.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.ListPoliciesRequest, + com.google.iam.v2.ListPoliciesResponse>( + this, METHODID_LIST_POLICIES))) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.GetPolicyRequest, + com.google.iam.v2.Policy>( + this, METHODID_GET_POLICY))) + .addMethod( + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.CreatePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.UpdatePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.DeletePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_POLICY))) + .build(); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { + private PoliciesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies(com.google.iam.v2.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy(com.google.iam.v2.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy(com.google.iam.v2.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PoliciesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.iam.v2.ListPoliciesResponse listPolicies(com.google.iam.v2.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public com.google.longrunning.Operation createPolicy(com.google.iam.v2.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.longrunning.Operation updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicy(com.google.iam.v2.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesFutureStub extends io.grpc.stub.AbstractFutureStub { + private PoliciesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPolicies( + com.google.iam.v2.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPolicy( + com.google.iam.v2.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPolicy( + com.google.iam.v2.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePolicy( + com.google.iam.v2.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePolicy( + com.google.iam.v2.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICIES = 0; + private static final int METHODID_GET_POLICY = 1; + private static final int METHODID_CREATE_POLICY = 2; + private static final int METHODID_UPDATE_POLICY = 3; + private static final int METHODID_DELETE_POLICY = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final PoliciesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PoliciesImplBase 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_POLICIES: + serviceImpl.listPolicies((com.google.iam.v2.ListPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_POLICY: + serviceImpl.getPolicy((com.google.iam.v2.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_POLICY: + serviceImpl.createPolicy((com.google.iam.v2.CreatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy((com.google.iam.v2.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY: + serviceImpl.deletePolicy((com.google.iam.v2.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v2.PolicyProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Policies"); + } + } + + private static final class PoliciesFileDescriptorSupplier + extends PoliciesBaseDescriptorSupplier { + PoliciesFileDescriptorSupplier() {} + } + + private static final class PoliciesMethodDescriptorSupplier + extends PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java similarity index 72% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java index 3566ce1abd..a34f8c5995 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Request message for `CreatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.CreatePolicyRequest} */ -public final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.CreatePolicyRequest) CreatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePolicyRequest.newBuilder() to construct. private CreatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePolicyRequest() { parent_ = ""; policyId_ = ""; @@ -44,35 +26,33 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.CreatePolicyRequest.class, - com.google.iam.v2.CreatePolicyRequest.Builder.class); + com.google.iam.v2.CreatePolicyRequest.class, com.google.iam.v2.CreatePolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -85,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -94,15 +73,14 @@ 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 that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -115,15 +93,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -134,14 +113,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v2.Policy policy_; /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -149,14 +125,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -164,8 +137,6 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to create.
    * 
@@ -174,14 +145,13 @@ public com.google.iam.v2.Policy getPolicy() { */ @java.lang.Override public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); + return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } public static final int POLICY_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object policyId_; + @SuppressWarnings("serial") + private volatile java.lang.Object policyId_ = ""; /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -190,7 +160,6 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; - * * @return The policyId. */ @java.lang.Override @@ -199,15 +168,14 @@ public java.lang.String getPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -216,15 +184,16 @@ public java.lang.String getPolicyId() {
    * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyIdBytes() { + public com.google.protobuf.ByteString + getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyId_ = b; return b; } else { @@ -233,7 +202,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,7 +213,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_); } @@ -268,7 +237,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyId_); @@ -281,19 +251,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.iam.v2.CreatePolicyRequest)) { return super.equals(obj); } com.google.iam.v2.CreatePolicyRequest other = (com.google.iam.v2.CreatePolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } - if (!getPolicyId().equals(other.getPolicyId())) return false; + if (!getPolicyId() + .equals(other.getPolicyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,155 +291,148 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.CreatePolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.CreatePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.CreatePolicyRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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 `CreatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.CreatePolicyRequest} */ - 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.iam.v2.CreatePolicyRequest) com.google.iam.v2.CreatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.CreatePolicyRequest.class, - com.google.iam.v2.CreatePolicyRequest.Builder.class); + com.google.iam.v2.CreatePolicyRequest.class, com.google.iam.v2.CreatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } policyId_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override @@ -485,56 +451,63 @@ public com.google.iam.v2.CreatePolicyRequest build() { @java.lang.Override public com.google.iam.v2.CreatePolicyRequest buildPartial() { - com.google.iam.v2.CreatePolicyRequest result = - new com.google.iam.v2.CreatePolicyRequest(this); - result.parent_ = parent_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.build(); - } - result.policyId_ = policyId_; + com.google.iam.v2.CreatePolicyRequest result = new com.google.iam.v2.CreatePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyId_ = policyId_; + } + } + @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) { + 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.iam.v2.CreatePolicyRequest) { - return mergeFrom((com.google.iam.v2.CreatePolicyRequest) other); + return mergeFrom((com.google.iam.v2.CreatePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -545,6 +518,7 @@ public Builder mergeFrom(com.google.iam.v2.CreatePolicyRequest other) { if (other == com.google.iam.v2.CreatePolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPolicy()) { @@ -552,6 +526,7 @@ public Builder mergeFrom(com.google.iam.v2.CreatePolicyRequest other) { } if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -580,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - policyId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + policyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,11 +587,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -631,13 +603,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -646,8 +618,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -660,14 +630,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -675,8 +646,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -689,22 +658,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -717,18 +682,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -741,50 +703,39 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.iam.v2.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2.Policy getPolicy() { @@ -795,8 +746,6 @@ public com.google.iam.v2.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -809,35 +758,32 @@ public Builder setPolicy(com.google.iam.v2.Policy value) { throw new NullPointerException(); } policy_ = value; - onChanged(); } else { policyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) { + public Builder setPolicy( + com.google.iam.v2.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); - onChanged(); } else { policyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -846,21 +792,21 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) { */ public Builder mergePolicy(com.google.iam.v2.Policy value) { if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = com.google.iam.v2.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + policy_ != null && + policy_ != com.google.iam.v2.Policy.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); } else { policy_ = value; } - onChanged(); } else { policyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -868,19 +814,16 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -888,13 +831,11 @@ public Builder clearPolicy() { * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.iam.v2.Policy.Builder getPolicyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The policy to create.
      * 
@@ -905,12 +846,11 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; + return policy_ == null ? + com.google.iam.v2.Policy.getDefaultInstance() : policy_; } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -918,16 +858,14 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder> + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; @@ -935,8 +873,6 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { private java.lang.Object policyId_ = ""; /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -945,13 +881,13 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * string policy_id = 3; - * * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; @@ -960,8 +896,6 @@ public java.lang.String getPolicyId() { } } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -970,14 +904,15 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ - public com.google.protobuf.ByteString getPolicyIdBytes() { + public com.google.protobuf.ByteString + getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyId_ = b; return b; } else { @@ -985,8 +920,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -995,22 +928,18 @@ public com.google.protobuf.ByteString getPolicyIdBytes() {
      * 
* * string policy_id = 3; - * * @param value The policyId to set. * @return This builder for chaining. */ - public Builder setPolicyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPolicyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } policyId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -1019,18 +948,15 @@ public Builder setPolicyId(java.lang.String value) {
      * 
* * string policy_id = 3; - * * @return This builder for chaining. */ public Builder clearPolicyId() { - policyId_ = getDefaultInstance().getPolicyId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -1039,23 +965,21 @@ public Builder clearPolicyId() {
      * 
* * string policy_id = 3; - * * @param value The bytes for policyId to set. * @return This builder for chaining. */ - public Builder setPolicyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPolicyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - policyId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1065,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.CreatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.CreatePolicyRequest) private static final com.google.iam.v2.CreatePolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.CreatePolicyRequest(); } @@ -1079,27 +1003,27 @@ public static com.google.iam.v2.CreatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.CreatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java similarity index 79% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java index 3825ae18ff..7fa6c771c3 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface CreatePolicyRequestOrBuilder - extends +public interface CreatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.CreatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -38,13 +20,10 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -57,38 +36,30 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v2.Policy getPolicy(); /** - * - * *
    * Required. The policy to create.
    * 
@@ -98,8 +69,6 @@ public interface CreatePolicyRequestOrBuilder com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder(); /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -108,13 +77,10 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string policy_id = 3; - * * @return The policyId. */ java.lang.String getPolicyId(); /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -123,8 +89,8 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ - com.google.protobuf.ByteString getPolicyIdBytes(); + com.google.protobuf.ByteString + getPolicyIdBytes(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java similarity index 72% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java index 3900d3dc95..e0f3e43cd1 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Request message for `DeletePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.DeletePolicyRequest} */ -public final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.DeletePolicyRequest) DeletePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePolicyRequest.newBuilder() to construct. private DeletePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePolicyRequest() { name_ = ""; etag_ = ""; @@ -44,35 +26,33 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.DeletePolicyRequest.class, - com.google.iam.v2.DeletePolicyRequest.Builder.class); + com.google.iam.v2.DeletePolicyRequest.class, com.google.iam.v2.DeletePolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -84,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -93,15 +72,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 policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -113,15 +91,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 { @@ -130,10 +109,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -143,7 +121,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -152,15 +129,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. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -170,15 +146,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 { @@ -187,7 +164,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +175,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_); } @@ -229,15 +206,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.iam.v2.DeletePolicyRequest)) { return super.equals(obj); } com.google.iam.v2.DeletePolicyRequest other = (com.google.iam.v2.DeletePolicyRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,149 +237,143 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.DeletePolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.DeletePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.DeletePolicyRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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 `DeletePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.DeletePolicyRequest} */ - 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.iam.v2.DeletePolicyRequest) com.google.iam.v2.DeletePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.DeletePolicyRequest.class, - com.google.iam.v2.DeletePolicyRequest.Builder.class); + com.google.iam.v2.DeletePolicyRequest.class, com.google.iam.v2.DeletePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.DeletePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override @@ -419,51 +392,58 @@ public com.google.iam.v2.DeletePolicyRequest build() { @java.lang.Override public com.google.iam.v2.DeletePolicyRequest buildPartial() { - com.google.iam.v2.DeletePolicyRequest result = - new com.google.iam.v2.DeletePolicyRequest(this); - result.name_ = name_; - result.etag_ = etag_; + com.google.iam.v2.DeletePolicyRequest result = new com.google.iam.v2.DeletePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @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) { + 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.iam.v2.DeletePolicyRequest) { - return mergeFrom((com.google.iam.v2.DeletePolicyRequest) other); + return mergeFrom((com.google.iam.v2.DeletePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -474,10 +454,12 @@ public Builder mergeFrom(com.google.iam.v2.DeletePolicyRequest other) { if (other == com.google.iam.v2.DeletePolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -506,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,11 +513,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -550,13 +528,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; @@ -565,8 +543,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -578,14 +554,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 { @@ -593,8 +570,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -606,22 +581,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -633,18 +604,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(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -656,25 +624,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -684,13 +648,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; @@ -699,8 +663,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -710,14 +672,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 { @@ -725,8 +688,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -736,22 +697,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -761,18 +718,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(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -782,23 +736,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.DeletePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.DeletePolicyRequest) private static final com.google.iam.v2.DeletePolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.DeletePolicyRequest(); } @@ -822,27 +774,27 @@ public static com.google.iam.v2.DeletePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.DeletePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java similarity index 75% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java index 9bdd7fc3d3..a0740c3d09 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface DeletePolicyRequestOrBuilder - extends +public interface DeletePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.DeletePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -37,13 +19,10 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -55,14 +34,12 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -72,13 +49,10 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -88,8 +62,8 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * 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/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java similarity index 86% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java index f3bc03f599..dfbf330520 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.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/iam/v2/deny.proto package com.google.iam.v2; /** - * - * *
  * A deny rule in an IAM deny policy.
  * 
* * Protobuf type {@code google.iam.v2.DenyRule} */ -public final class DenyRule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DenyRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.DenyRule) DenyRuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DenyRule.newBuilder() to construct. private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DenyRule() { deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,16 +28,18 @@ private DenyRule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DenyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -68,10 +52,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPrincipals_; /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -108,15 +91,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { return deniedPrincipals_; } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -153,15 +134,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
    * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -198,7 +176,6 @@ public int getDeniedPrincipalsCount() {
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -206,8 +183,6 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -244,19 +219,18 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPrincipals_; /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -268,15 +242,13 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
    * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { return exceptionPrincipals_; } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -288,15 +260,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
    * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -308,7 +277,6 @@ public int getExceptionPrincipalsCount() {
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -316,8 +284,6 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -329,19 +295,18 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPermissions_; /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -350,15 +315,13 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
    * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { return deniedPermissions_; } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -367,15 +330,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
    * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -384,7 +344,6 @@ public int getDeniedPermissionsCount() {
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -392,8 +351,6 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -402,19 +359,18 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPermissions_; /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -425,15 +381,13 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
    * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { return exceptionPermissions_; } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -444,15 +398,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
    * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -463,7 +414,6 @@ public int getExceptionPermissionsCount() {
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -471,8 +421,6 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -483,19 +431,17 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } public static final int DENIAL_CONDITION_FIELD_NUMBER = 5; private com.google.type.Expr denialCondition_; /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -509,7 +455,6 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -517,8 +462,6 @@ public boolean hasDenialCondition() { return denialCondition_ != null; } /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -532,7 +475,6 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ @java.lang.Override @@ -540,8 +482,6 @@ public com.google.type.Expr getDenialCondition() { return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -558,11 +498,10 @@ public com.google.type.Expr getDenialCondition() {
    */
   @java.lang.Override
   public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
-    return getDenialCondition();
+    return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -574,7 +513,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 < deniedPrincipals_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deniedPrincipals_.getRaw(i));
     }
@@ -585,8 +525,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deniedPermissions_.getRaw(i));
     }
     for (int i = 0; i < exceptionPermissions_.size(); i++) {
-      com.google.protobuf.GeneratedMessageV3.writeString(
-          output, 4, exceptionPermissions_.getRaw(i));
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exceptionPermissions_.getRaw(i));
     }
     if (denialCondition_ != null) {
       output.writeMessage(5, getDenialCondition());
@@ -633,7 +572,8 @@ public int getSerializedSize() {
       size += 1 * getExceptionPermissionsList().size();
     }
     if (denialCondition_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDenialCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -643,20 +583,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.iam.v2.DenyRule)) {
       return super.equals(obj);
     }
     com.google.iam.v2.DenyRule other = (com.google.iam.v2.DenyRule) obj;
 
-    if (!getDeniedPrincipalsList().equals(other.getDeniedPrincipalsList())) return false;
-    if (!getExceptionPrincipalsList().equals(other.getExceptionPrincipalsList())) return false;
-    if (!getDeniedPermissionsList().equals(other.getDeniedPermissionsList())) return false;
-    if (!getExceptionPermissionsList().equals(other.getExceptionPermissionsList())) return false;
+    if (!getDeniedPrincipalsList()
+        .equals(other.getDeniedPrincipalsList())) return false;
+    if (!getExceptionPrincipalsList()
+        .equals(other.getExceptionPrincipalsList())) return false;
+    if (!getDeniedPermissionsList()
+        .equals(other.getDeniedPermissionsList())) return false;
+    if (!getExceptionPermissionsList()
+        .equals(other.getExceptionPermissionsList())) return false;
     if (hasDenialCondition() != other.hasDenialCondition()) return false;
     if (hasDenialCondition()) {
-      if (!getDenialCondition().equals(other.getDenialCondition())) return false;
+      if (!getDenialCondition()
+          .equals(other.getDenialCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -694,136 +639,134 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2.DenyRule parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v2.DenyRule parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v2.DenyRule parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule 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.iam.v2.DenyRule 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.iam.v2.DenyRule parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.iam.v2.DenyRule parseFrom(
+      com.google.protobuf.CodedInputStream 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.iam.v2.DenyRule 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.iam.v2.DenyRule 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 deny rule in an IAM deny policy.
    * 
* * Protobuf type {@code google.iam.v2.DenyRule} */ - 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.iam.v2.DenyRule) com.google.iam.v2.DenyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.DenyRuleProto - .internal_static_google_iam_v2_DenyRule_fieldAccessorTable + return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2.DenyRule.class, com.google.iam.v2.DenyRule.Builder.class); } // Construct using com.google.iam.v2.DenyRule.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -832,17 +775,17 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); - if (denialConditionBuilder_ == null) { - denialCondition_ = null; - } else { - denialCondition_ = null; + denialCondition_ = null; + if (denialConditionBuilder_ != null) { + denialConditionBuilder_.dispose(); denialConditionBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -863,7 +806,13 @@ public com.google.iam.v2.DenyRule build() { @java.lang.Override public com.google.iam.v2.DenyRule buildPartial() { com.google.iam.v2.DenyRule result = new com.google.iam.v2.DenyRule(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2.DenyRule result) { if (((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -884,52 +833,53 @@ public com.google.iam.v2.DenyRule buildPartial() { bitField0_ = (bitField0_ & ~0x00000008); } result.exceptionPermissions_ = exceptionPermissions_; - if (denialConditionBuilder_ == null) { - result.denialCondition_ = denialCondition_; - } else { - result.denialCondition_ = denialConditionBuilder_.build(); + } + + private void buildPartial0(com.google.iam.v2.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.denialCondition_ = denialConditionBuilder_ == null + ? denialCondition_ + : denialConditionBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2.DenyRule) { - return mergeFrom((com.google.iam.v2.DenyRule) other); + return mergeFrom((com.google.iam.v2.DenyRule)other); } else { super.mergeFrom(other); return this; @@ -1007,47 +957,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPrincipalsIsMutable(); - deniedPrincipals_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPrincipalsIsMutable(); - exceptionPrincipals_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPermissionsIsMutable(); - deniedPermissions_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPermissionsIsMutable(); - exceptionPermissions_.add(s); - break; - } // case 34 - case 42: - { - input.readMessage(getDenialConditionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPrincipalsIsMutable(); + deniedPrincipals_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPrincipalsIsMutable(); + exceptionPrincipals_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPermissionsIsMutable(); + deniedPermissions_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPermissionsIsMutable(); + exceptionPermissions_.add(s); + break; + } // case 34 + case 42: { + input.readMessage( + getDenialConditionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1057,21 +1003,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeniedPrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1108,15 +1049,13 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { return deniedPrincipals_.getUnmodifiableView(); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1153,15 +1092,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
      * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1198,7 +1134,6 @@ public int getDeniedPrincipalsCount() {
      * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -1206,8 +1141,6 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1244,16 +1177,14 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1290,23 +1221,19 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
      * 
* * repeated string denied_principals = 1; - * * @param index The index to set the value at. * @param value The deniedPrincipals to set. * @return This builder for chaining. */ - public Builder setDeniedPrincipals(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeniedPrincipals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.set(index, value); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1343,22 +1270,18 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
      * 
* * repeated string denied_principals = 1; - * * @param value The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipals(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPrincipals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1395,19 +1318,18 @@ public Builder addDeniedPrincipals(java.lang.String value) {
      * 
* * repeated string denied_principals = 1; - * * @param values The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addAllDeniedPrincipals(java.lang.Iterable values) { + public Builder addAllDeniedPrincipals( + java.lang.Iterable values) { ensureDeniedPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deniedPrincipals_); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1444,7 +1366,6 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
* * repeated string denied_principals = 1; - * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { @@ -1454,8 +1375,6 @@ public Builder clearDeniedPrincipals() { return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1492,14 +1411,12 @@ public Builder clearDeniedPrincipals() {
      * 
* * repeated string denied_principals = 1; - * * @param value The bytes of the deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPrincipalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); @@ -1507,18 +1424,14 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExceptionPrincipalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1530,15 +1443,13 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { return exceptionPrincipals_.getUnmodifiableView(); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1550,15 +1461,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
      * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1570,7 +1478,6 @@ public int getExceptionPrincipalsCount() {
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1578,8 +1485,6 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1591,16 +1496,14 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1612,23 +1515,19 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
      * 
* * repeated string exception_principals = 2; - * * @param index The index to set the value at. * @param value The exceptionPrincipals to set. * @return This builder for chaining. */ - public Builder setExceptionPrincipals(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExceptionPrincipals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.set(index, value); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1640,22 +1539,18 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
      * 
* * repeated string exception_principals = 2; - * * @param value The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipals(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPrincipals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1667,19 +1562,18 @@ public Builder addExceptionPrincipals(java.lang.String value) {
      * 
* * repeated string exception_principals = 2; - * * @param values The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addAllExceptionPrincipals(java.lang.Iterable values) { + public Builder addAllExceptionPrincipals( + java.lang.Iterable values) { ensureExceptionPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exceptionPrincipals_); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1691,7 +1585,6 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * 
* * repeated string exception_principals = 2; - * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { @@ -1701,8 +1594,6 @@ public Builder clearExceptionPrincipals() { return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1714,14 +1605,12 @@ public Builder clearExceptionPrincipals() {
      * 
* * repeated string exception_principals = 2; - * * @param value The bytes of the exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPrincipalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); @@ -1729,18 +1618,14 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeniedPermissionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1749,15 +1634,13 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { return deniedPermissions_.getUnmodifiableView(); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1766,15 +1649,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
      * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1783,7 +1663,6 @@ public int getDeniedPermissionsCount() {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -1791,8 +1670,6 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1801,16 +1678,14 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1819,23 +1694,19 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index to set the value at. * @param value The deniedPermissions to set. * @return This builder for chaining. */ - public Builder setDeniedPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeniedPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPermissionsIsMutable(); deniedPermissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1844,22 +1715,18 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
      * 
* * repeated string denied_permissions = 3; - * * @param value The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1868,19 +1735,18 @@ public Builder addDeniedPermissions(java.lang.String value) {
      * 
* * repeated string denied_permissions = 3; - * * @param values The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addAllDeniedPermissions(java.lang.Iterable values) { + public Builder addAllDeniedPermissions( + java.lang.Iterable values) { ensureDeniedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deniedPermissions_); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1889,7 +1755,6 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * 
* * repeated string denied_permissions = 3; - * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { @@ -1899,8 +1764,6 @@ public Builder clearDeniedPermissions() { return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1909,14 +1772,12 @@ public Builder clearDeniedPermissions() {
      * 
* * repeated string denied_permissions = 3; - * * @param value The bytes of the deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); @@ -1924,18 +1785,14 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExceptionPermissionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1946,15 +1803,13 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { return exceptionPermissions_.getUnmodifiableView(); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1965,15 +1820,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
      * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1984,7 +1836,6 @@ public int getExceptionPermissionsCount() {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -1992,8 +1843,6 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2004,16 +1853,14 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2024,23 +1871,19 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index to set the value at. * @param value The exceptionPermissions to set. * @return This builder for chaining. */ - public Builder setExceptionPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExceptionPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2051,22 +1894,18 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
      * 
* * repeated string exception_permissions = 4; - * * @param value The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2077,19 +1916,18 @@ public Builder addExceptionPermissions(java.lang.String value) {
      * 
* * repeated string exception_permissions = 4; - * * @param values The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addAllExceptionPermissions(java.lang.Iterable values) { + public Builder addAllExceptionPermissions( + java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exceptionPermissions_); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2100,7 +1938,6 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
      * 
* * repeated string exception_permissions = 4; - * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { @@ -2110,8 +1947,6 @@ public Builder clearExceptionPermissions() { return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2122,14 +1957,12 @@ public Builder clearExceptionPermissions() {
      * 
* * repeated string exception_permissions = 4; - * * @param value The bytes of the exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); @@ -2139,11 +1972,8 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value private com.google.type.Expr denialCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - denialConditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> denialConditionBuilder_; /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2157,15 +1987,12 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
      * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ public boolean hasDenialCondition() { - return denialConditionBuilder_ != null || denialCondition_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2179,21 +2006,16 @@ public boolean hasDenialCondition() {
      * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ public com.google.type.Expr getDenialCondition() { if (denialConditionBuilder_ == null) { - return denialCondition_ == null - ? com.google.type.Expr.getDefaultInstance() - : denialCondition_; + return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } else { return denialConditionBuilder_.getMessage(); } } /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2214,16 +2036,14 @@ public Builder setDenialCondition(com.google.type.Expr value) {
           throw new NullPointerException();
         }
         denialCondition_ = value;
-        onChanged();
       } else {
         denialConditionBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2238,19 +2058,18 @@ public Builder setDenialCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr denial_condition = 5;
      */
-    public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) {
+    public Builder setDenialCondition(
+        com.google.type.Expr.Builder builderForValue) {
       if (denialConditionBuilder_ == null) {
         denialCondition_ = builderForValue.build();
-        onChanged();
       } else {
         denialConditionBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2267,22 +2086,21 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
      */
     public Builder mergeDenialCondition(com.google.type.Expr value) {
       if (denialConditionBuilder_ == null) {
-        if (denialCondition_ != null) {
-          denialCondition_ =
-              com.google.type.Expr.newBuilder(denialCondition_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000010) != 0) &&
+          denialCondition_ != null &&
+          denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
+          getDenialConditionBuilder().mergeFrom(value);
         } else {
           denialCondition_ = value;
         }
-        onChanged();
       } else {
         denialConditionBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2298,19 +2116,16 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
      * .google.type.Expr denial_condition = 5;
      */
     public Builder clearDenialCondition() {
-      if (denialConditionBuilder_ == null) {
-        denialCondition_ = null;
-        onChanged();
-      } else {
-        denialCondition_ = null;
+      bitField0_ = (bitField0_ & ~0x00000010);
+      denialCondition_ = null;
+      if (denialConditionBuilder_ != null) {
+        denialConditionBuilder_.dispose();
         denialConditionBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2326,13 +2141,11 @@ public Builder clearDenialCondition() {
      * .google.type.Expr denial_condition = 5;
      */
     public com.google.type.Expr.Builder getDenialConditionBuilder() {
-
+      bitField0_ |= 0x00000010;
       onChanged();
       return getDenialConditionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2351,14 +2164,11 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
       if (denialConditionBuilder_ != null) {
         return denialConditionBuilder_.getMessageOrBuilder();
       } else {
-        return denialCondition_ == null
-            ? com.google.type.Expr.getDefaultInstance()
-            : denialCondition_;
+        return denialCondition_ == null ?
+            com.google.type.Expr.getDefaultInstance() : denialCondition_;
       }
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2374,20 +2184,21 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
      * .google.type.Expr denial_condition = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
         getDenialConditionFieldBuilder() {
       if (denialConditionBuilder_ == null) {
-        denialConditionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getDenialCondition(), getParentForChildren(), isClean());
+        denialConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getDenialCondition(),
+                getParentForChildren(),
+                isClean());
         denialCondition_ = null;
       }
       return denialConditionBuilder_;
     }
-
     @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);
     }
 
@@ -2397,12 +2208,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v2.DenyRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2.DenyRule)
   private static final com.google.iam.v2.DenyRule DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2.DenyRule();
   }
@@ -2411,27 +2222,27 @@ public static com.google.iam.v2.DenyRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DenyRule parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DenyRule parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2446,4 +2257,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2.DenyRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
similarity index 92%
rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
index 1d35367fb8..5dd739ab72 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
+++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.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/iam/v2/deny.proto
 
 package com.google.iam.v2;
 
-public interface DenyRuleOrBuilder
-    extends
+public interface DenyRuleOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2.DenyRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -62,13 +44,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - java.util.List getDeniedPrincipalsList(); + java.util.List + getDeniedPrincipalsList(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -105,13 +85,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ int getDeniedPrincipalsCount(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -148,14 +125,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ java.lang.String getDeniedPrincipals(int index); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -192,15 +166,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index); + com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -212,13 +184,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - java.util.List getExceptionPrincipalsList(); + java.util.List + getExceptionPrincipalsList(); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -230,13 +200,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ int getExceptionPrincipalsCount(); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -248,14 +215,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ java.lang.String getExceptionPrincipals(int index); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -267,15 +231,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index); + com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -284,13 +246,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - java.util.List getDeniedPermissionsList(); + java.util.List + getDeniedPermissionsList(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -299,13 +259,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ int getDeniedPermissionsCount(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -314,14 +271,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ java.lang.String getDeniedPermissions(int index); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -330,15 +284,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - com.google.protobuf.ByteString getDeniedPermissionsBytes(int index); + com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -349,13 +301,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - java.util.List getExceptionPermissionsList(); + java.util.List + getExceptionPermissionsList(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -366,13 +316,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ int getExceptionPermissionsCount(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -383,14 +330,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ java.lang.String getExceptionPermissions(int index); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -401,15 +345,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - com.google.protobuf.ByteString getExceptionPermissionsBytes(int index); + com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -423,13 +365,10 @@ public interface DenyRuleOrBuilder
    * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ boolean hasDenialCondition(); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -443,13 +382,10 @@ public interface DenyRuleOrBuilder
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ com.google.type.Expr getDenialCondition(); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
new file mode 100644
index 0000000000..c236648210
--- /dev/null
+++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
@@ -0,0 +1,57 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2/deny.proto
+
+package com.google.iam.v2;
+
+public final class DenyRuleProto {
+  private DenyRuleProto() {}
+  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_iam_v2_DenyRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2_DenyRule_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\030google/iam/v2/deny.proto\022\rgoogle.iam.v" +
+      "2\032\026google/type/expr.proto\"\253\001\n\010DenyRule\022\031" +
+      "\n\021denied_principals\030\001 \003(\t\022\034\n\024exception_p" +
+      "rincipals\030\002 \003(\t\022\032\n\022denied_permissions\030\003 " +
+      "\003(\t\022\035\n\025exception_permissions\030\004 \003(\t\022+\n\020de" +
+      "nial_condition\030\005 \001(\0132\021.google.type.ExprB" +
+      "\202\001\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z0" +
+      "google.golang.org/genproto/googleapis/ia" +
+      "m/v2;iam\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\" +
+      "Cloud\\Iam\\V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.type.ExprProto.getDescriptor(),
+        });
+    internal_static_google_iam_v2_DenyRule_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2_DenyRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2_DenyRule_descriptor,
+        new java.lang.String[] { "DeniedPrincipals", "ExceptionPrincipals", "DeniedPermissions", "ExceptionPermissions", "DenialCondition", });
+    com.google.type.ExprProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
similarity index 70%
rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
index e3888a12fd..dc08293489 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
+++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
@@ -1,76 +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/iam/v2/policy.proto
 
 package com.google.iam.v2;
 
 /**
- *
- *
  * 
  * Request message for `GetPolicy`.
  * 
* * Protobuf type {@code google.iam.v2.GetPolicyRequest} */ -public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.GetPolicyRequest) GetPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.GetPolicyRequest.class, - com.google.iam.v2.GetPolicyRequest.Builder.class); + com.google.iam.v2.GetPolicyRequest.class, com.google.iam.v2.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -82,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -91,15 +71,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 policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -111,15 +90,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 { @@ -128,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +119,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_); } @@ -164,14 +144,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.iam.v2.GetPolicyRequest)) { return super.equals(obj); } com.google.iam.v2.GetPolicyRequest other = (com.google.iam.v2.GetPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,147 +171,142 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.GetPolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.GetPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v2.GetPolicyRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.GetPolicyRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.GetPolicyRequest 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.iam.v2.GetPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v2.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v2.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetPolicy`.
    * 
* * Protobuf type {@code google.iam.v2.GetPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2.GetPolicyRequest) com.google.iam.v2.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.GetPolicyRequest.class, - com.google.iam.v2.GetPolicyRequest.Builder.class); + com.google.iam.v2.GetPolicyRequest.class, com.google.iam.v2.GetPolicyRequest.Builder.class); } // Construct using com.google.iam.v2.GetPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override @@ -350,48 +326,54 @@ public com.google.iam.v2.GetPolicyRequest build() { @java.lang.Override public com.google.iam.v2.GetPolicyRequest buildPartial() { com.google.iam.v2.GetPolicyRequest result = new com.google.iam.v2.GetPolicyRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @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) { + 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.iam.v2.GetPolicyRequest) { - return mergeFrom((com.google.iam.v2.GetPolicyRequest) other); + return mergeFrom((com.google.iam.v2.GetPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -402,6 +384,7 @@ public Builder mergeFrom(com.google.iam.v2.GetPolicyRequest other) { if (other == com.google.iam.v2.GetPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,11 +433,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -468,13 +448,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; @@ -483,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -496,14 +474,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 { @@ -511,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -524,22 +501,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -551,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(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -574,23 +544,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.GetPolicyRequest) private static final com.google.iam.v2.GetPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.GetPolicyRequest(); } @@ -614,27 +582,27 @@ public static com.google.iam.v2.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java similarity index 68% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java index 6f293a3267..139f5227d9 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface GetPolicyRequestOrBuilder - extends +public interface GetPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.GetPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -37,13 +19,10 @@ public interface GetPolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -55,8 +34,8 @@ public interface GetPolicyRequestOrBuilder
    * 
* * 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/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java similarity index 72% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java index 124798c38a..44d90f9013 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Request message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2.ListPoliciesRequest} */ -public final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.ListPoliciesRequest) ListPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPoliciesRequest.newBuilder() to construct. private ListPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,35 +26,33 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesRequest.class, - com.google.iam.v2.ListPoliciesRequest.Builder.class); + com.google.iam.v2.ListPoliciesRequest.class, com.google.iam.v2.ListPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -86,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -95,15 +74,14 @@ 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 that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -117,15 +95,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -134,17 +113,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** - * - * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -153,17 +129,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,30 +146,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; } } /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -204,7 +178,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,7 +213,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_); @@ -252,16 +227,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.iam.v2.ListPoliciesRequest)) { return super.equals(obj); } com.google.iam.v2.ListPoliciesRequest other = (com.google.iam.v2.ListPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,151 +262,144 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.ListPoliciesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.ListPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.ListPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2.ListPoliciesRequest} */ - 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.iam.v2.ListPoliciesRequest) com.google.iam.v2.ListPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesRequest.class, - com.google.iam.v2.ListPoliciesRequest.Builder.class); + com.google.iam.v2.ListPoliciesRequest.class, com.google.iam.v2.ListPoliciesRequest.Builder.class); } // Construct using com.google.iam.v2.ListPoliciesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override @@ -447,52 +418,61 @@ public com.google.iam.v2.ListPoliciesRequest build() { @java.lang.Override public com.google.iam.v2.ListPoliciesRequest buildPartial() { - com.google.iam.v2.ListPoliciesRequest result = - new com.google.iam.v2.ListPoliciesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + com.google.iam.v2.ListPoliciesRequest result = new com.google.iam.v2.ListPoliciesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2.ListPoliciesRequest) { - return mergeFrom((com.google.iam.v2.ListPoliciesRequest) other); + return mergeFrom((com.google.iam.v2.ListPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -503,6 +483,7 @@ public Builder mergeFrom(com.google.iam.v2.ListPoliciesRequest other) { if (other == com.google.iam.v2.ListPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -510,6 +491,7 @@ public Builder mergeFrom(com.google.iam.v2.ListPoliciesRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -538,31 +520,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -572,11 +550,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -590,13 +567,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -605,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -620,14 +595,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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,8 +611,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -650,22 +624,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -679,18 +649,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -704,32 +671,27 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -737,38 +699,33 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -776,21 +733,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -799,22 +754,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -822,71 +776,60 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -896,12 +839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.ListPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.ListPoliciesRequest) private static final com.google.iam.v2.ListPoliciesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.ListPoliciesRequest(); } @@ -910,27 +853,27 @@ public static com.google.iam.v2.ListPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.ListPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java similarity index 75% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java index bfea871b46..9a62799933 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface ListPoliciesRequestOrBuilder - extends +public interface ListPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.ListPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -39,13 +21,10 @@ public interface ListPoliciesRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -59,49 +38,41 @@ public interface ListPoliciesRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java similarity index 71% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java index 62cdb5ecac..5ff391bd80 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Response message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2.ListPoliciesResponse} */ -public final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.ListPoliciesResponse) ListPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPoliciesResponse.newBuilder() to construct. private ListPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,33 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesResponse.class, - com.google.iam.v2.ListPoliciesResponse.Builder.class); + com.google.iam.v2.ListPoliciesResponse.class, com.google.iam.v2.ListPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List policies_; /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -84,8 +64,6 @@ public java.util.List getPoliciesList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -93,12 +71,11 @@ public java.util.List getPoliciesList() { * repeated .google.iam.v2.Policy policies = 1; */ @java.lang.Override - public java.util.List getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -110,8 +87,6 @@ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -123,8 +98,6 @@ public com.google.iam.v2.Policy getPolicies(int index) { return policies_.get(index); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -132,22 +105,21 @@ public com.google.iam.v2.Policy getPolicies(int index) { * repeated .google.iam.v2.Policy policies = 1; */ @java.lang.Override - public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( + int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +128,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 page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * 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 { @@ -188,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +171,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 < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -217,7 +189,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,15 +203,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.iam.v2.ListPoliciesResponse)) { return super.equals(obj); } com.google.iam.v2.ListPoliciesResponse other = (com.google.iam.v2.ListPoliciesResponse) obj; - if (!getPoliciesList().equals(other.getPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPoliciesList() + .equals(other.getPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,139 +236,134 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.ListPoliciesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.ListPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2.ListPoliciesResponse} */ - 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.iam.v2.ListPoliciesResponse) com.google.iam.v2.ListPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesResponse.class, - com.google.iam.v2.ListPoliciesResponse.Builder.class); + com.google.iam.v2.ListPoliciesResponse.class, com.google.iam.v2.ListPoliciesResponse.Builder.class); } // Construct using com.google.iam.v2.ListPoliciesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); } else { @@ -402,14 +372,13 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override @@ -428,9 +397,14 @@ public com.google.iam.v2.ListPoliciesResponse build() { @java.lang.Override public com.google.iam.v2.ListPoliciesResponse buildPartial() { - com.google.iam.v2.ListPoliciesResponse result = - new com.google.iam.v2.ListPoliciesResponse(this); - int from_bitField0_ = bitField0_; + com.google.iam.v2.ListPoliciesResponse result = new com.google.iam.v2.ListPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2.ListPoliciesResponse result) { if (policiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { policies_ = java.util.Collections.unmodifiableList(policies_); @@ -440,48 +414,51 @@ public com.google.iam.v2.ListPoliciesResponse buildPartial() { } else { result.policies_ = policiesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @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) { + 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.iam.v2.ListPoliciesResponse) { - return mergeFrom((com.google.iam.v2.ListPoliciesResponse) other); + return mergeFrom((com.google.iam.v2.ListPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -508,10 +485,9 @@ public Builder mergeFrom(com.google.iam.v2.ListPoliciesResponse other) { policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPoliciesFieldBuilder() : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -519,6 +495,7 @@ public Builder mergeFrom(com.google.iam.v2.ListPoliciesResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -547,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.iam.v2.Policy m = - input.readMessage(com.google.iam.v2.Policy.parser(), extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.iam.v2.Policy m = + input.readMessage( + com.google.iam.v2.Policy.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,27 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List policies_ = java.util.Collections.emptyList(); - + private java.util.List policies_ = + java.util.Collections.emptyList(); private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder> - policiesBuilder_; + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policiesBuilder_; /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -616,8 +586,6 @@ public java.util.List getPoliciesList() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -632,8 +600,6 @@ public int getPoliciesCount() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -648,15 +614,14 @@ public com.google.iam.v2.Policy getPolicies(int index) { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder setPolicies(int index, com.google.iam.v2.Policy value) { + public Builder setPolicies( + int index, com.google.iam.v2.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -670,15 +635,14 @@ public Builder setPolicies(int index, com.google.iam.v2.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder setPolicies(int index, com.google.iam.v2.Policy.Builder builderForValue) { + public Builder setPolicies( + int index, com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); @@ -689,8 +653,6 @@ public Builder setPolicies(int index, com.google.iam.v2.Policy.Builder builderFo return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -711,15 +673,14 @@ public Builder addPolicies(com.google.iam.v2.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies(int index, com.google.iam.v2.Policy value) { + public Builder addPolicies( + int index, com.google.iam.v2.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -733,15 +694,14 @@ public Builder addPolicies(int index, com.google.iam.v2.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies(com.google.iam.v2.Policy.Builder builderForValue) { + public Builder addPolicies( + com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); @@ -752,15 +712,14 @@ public Builder addPolicies(com.google.iam.v2.Policy.Builder builderForValue) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies(int index, com.google.iam.v2.Policy.Builder builderForValue) { + public Builder addPolicies( + int index, com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); @@ -771,18 +730,18 @@ public Builder addPolicies(int index, com.google.iam.v2.Policy.Builder builderFo return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addAllPolicies(java.lang.Iterable values) { + public Builder addAllPolicies( + java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -790,8 +749,6 @@ public Builder addAllPolicies(java.lang.Iterable * Metadata for the policies that are attached to the resource. *
@@ -809,8 +766,6 @@ public Builder clearPolicies() { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -828,43 +783,39 @@ public Builder removePolicies(int index) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.Policy.Builder getPoliciesBuilder(int index) { + public com.google.iam.v2.Policy.Builder getPoliciesBuilder( + int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( + int index) { if (policiesBuilder_ == null) { - return policies_.get(index); - } else { + return policies_.get(index); } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public java.util.List getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -872,8 +823,6 @@ public java.util.List getPoliciesOr } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -881,46 +830,42 @@ public java.util.List getPoliciesOr * repeated .google.iam.v2.Policy policies = 1; */ public com.google.iam.v2.Policy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder(com.google.iam.v2.Policy.getDefaultInstance()); + return getPoliciesFieldBuilder().addBuilder( + com.google.iam.v2.Policy.getDefaultInstance()); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.Policy.Builder addPoliciesBuilder(int index) { - return getPoliciesFieldBuilder() - .addBuilder(index, com.google.iam.v2.Policy.getDefaultInstance()); + public com.google.iam.v2.Policy.Builder addPoliciesBuilder( + int index) { + return getPoliciesFieldBuilder().addBuilder( + index, com.google.iam.v2.Policy.getDefaultInstance()); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public java.util.List getPoliciesBuilderList() { + public java.util.List + getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder> + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>( + policies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); policies_ = null; } return policiesBuilder_; @@ -928,21 +873,19 @@ public java.util.List getPoliciesBuilderList() private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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; @@ -951,22 +894,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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 { @@ -974,71 +916,60 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1048,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.ListPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.iam.v2.ListPoliciesResponse) private static final com.google.iam.v2.ListPoliciesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.ListPoliciesResponse(); } @@ -1062,27 +993,27 @@ public static com.google.iam.v2.ListPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.ListPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java similarity index 64% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java index 1faeb31cfb..5ff4ed2041 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; -public interface ListPoliciesResponseOrBuilder - extends +public interface ListPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.ListPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - java.util.List getPoliciesList(); + java.util.List + getPoliciesList(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -44,8 +25,6 @@ public interface ListPoliciesResponseOrBuilder */ com.google.iam.v2.Policy getPolicies(int index); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -54,50 +33,43 @@ public interface ListPoliciesResponseOrBuilder */ int getPoliciesCount(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - java.util.List getPoliciesOrBuilderList(); + java.util.List + getPoliciesOrBuilderList(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index); + com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( + int index); /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java similarity index 68% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java index 82a241e71d..d76d87ffee 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Data for an IAM policy.
  * 
* * Protobuf type {@code google.iam.v2.Policy} */ -public final class Policy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Policy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.Policy) PolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Policy() { name_ = ""; uid_ = ""; @@ -49,30 +31,33 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); 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() { @@ -82,10 +67,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -99,7 +83,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -108,15 +91,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; } } /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -130,15 +112,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -147,17 +130,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - private volatile java.lang.Object uid_; + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ @java.lang.Override @@ -166,30 +147,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -198,16 +179,14 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int KIND_FIELD_NUMBER = 3; - private volatile java.lang.Object kind_; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ @java.lang.Override @@ -216,29 +195,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -247,17 +226,15 @@ public com.google.protobuf.ByteString getKindBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object displayName_; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -266,30 +243,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -298,34 +275,32 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField annotations_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -334,21 +309,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -361,8 +335,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -371,17 +343,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
+      java.lang.String key,
+      /* nullable */
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -390,11 +362,11 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -402,10 +374,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 6;
-  private volatile java.lang.Object etag_;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -415,7 +386,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 6; - * * @return The etag. */ @java.lang.Override @@ -424,15 +394,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; } } /** - * - * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -442,15 +411,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 6; - * * @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 { @@ -461,15 +431,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -477,15 +443,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -493,32 +455,25 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -526,15 +481,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -542,32 +493,25 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -575,15 +519,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -591,25 +531,21 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return getDeleteTime(); + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } public static final int RULES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List rules_; /** - * - * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -622,8 +558,6 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -632,12 +566,11 @@ public java.util.List getRulesList() {
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public java.util.List getRulesOrBuilderList() {
+  public java.util.List 
+      getRulesOrBuilderList() {
     return rules_;
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -650,8 +583,6 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -664,8 +595,6 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
     return rules_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -674,22 +603,21 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
+  public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
+      int index) {
     return rules_.get(index);
   }
 
   public static final int MANAGING_AUTHORITY_FIELD_NUMBER = 11;
-  private volatile java.lang.Object managingAuthority_;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object managingAuthority_ = "";
   /**
-   *
-   *
    * 
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The managingAuthority. */ @java.lang.Override @@ -698,30 +626,30 @@ public java.lang.String getManagingAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managingAuthority_ = s; return s; } } /** - * - * *
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for managingAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString getManagingAuthorityBytes() { + public com.google.protobuf.ByteString + getManagingAuthorityBytes() { java.lang.Object ref = managingAuthority_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); managingAuthority_ = b; return b; } else { @@ -730,7 +658,6 @@ public com.google.protobuf.ByteString getManagingAuthorityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -742,7 +669,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_); } @@ -755,8 +683,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } @@ -796,30 +728,34 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, rules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managingAuthority_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, managingAuthority_); @@ -832,33 +768,44 @@ 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.iam.v2.Policy)) { return super.equals(obj); } com.google.iam.v2.Policy other = (com.google.iam.v2.Policy) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getKind().equals(other.getKind())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getKind() + .equals(other.getKind())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getEtag() + .equals(other.getEtag())) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getRulesList().equals(other.getRulesList())) return false; - if (!getManagingAuthority().equals(other.getManagingAuthority())) return false; + if (!getRulesList() + .equals(other.getRulesList())) return false; + if (!getManagingAuthority() + .equals(other.getManagingAuthority())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -907,137 +854,134 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.Policy parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.Policy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.Policy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v2.Policy parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.Policy parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.Policy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.Policy 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.iam.v2.Policy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v2.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.Policy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v2.Policy parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v2.Policy parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v2.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v2.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Data for an IAM policy.
    * 
* * Protobuf type {@code google.iam.v2.Policy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2.Policy) com.google.iam.v2.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); 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() { @@ -1047,42 +991,38 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.iam.v2.Policy.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - uid_ = ""; - kind_ = ""; - displayName_ = ""; - internalGetMutableAnnotations().clear(); etag_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - } else { - deleteTime_ = null; + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } if (rulesBuilder_ == null) { @@ -1091,14 +1031,14 @@ public Builder clear() { rules_ = null; rulesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); managingAuthority_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @@ -1119,80 +1059,101 @@ public com.google.iam.v2.Policy build() { @java.lang.Override public com.google.iam.v2.Policy buildPartial() { com.google.iam.v2.Policy result = new com.google.iam.v2.Policy(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uid_ = uid_; - result.kind_ = kind_; - result.displayName_ = displayName_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.etag_ = etag_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (deleteTimeBuilder_ == null) { - result.deleteTime_ = deleteTime_; - } else { - result.deleteTime_ = deleteTimeBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2.Policy result) { if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } - result.managingAuthority_ = managingAuthority_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v2.Policy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.managingAuthority_ = managingAuthority_; + } } @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) { + 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.iam.v2.Policy) { - return mergeFrom((com.google.iam.v2.Policy) other); + return mergeFrom((com.google.iam.v2.Policy)other); } else { super.mergeFrom(other); return this; @@ -1203,23 +1164,30 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { if (other == com.google.iam.v2.Policy.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getKind().isEmpty()) { kind_ = other.kind_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -1235,7 +1203,7 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); @@ -1248,11 +1216,10 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000002); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRulesFieldBuilder() - : null; + bitField0_ = (bitField0_ & ~0x00000200); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -1260,6 +1227,7 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { } if (!other.getManagingAuthority().isEmpty()) { managingAuthority_ = other.managingAuthority_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1288,90 +1256,85 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - break; - } // case 42 - case 50: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - com.google.iam.v2.PolicyRule m = - input.readMessage(com.google.iam.v2.PolicyRule.parser(), extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - managingAuthority_ = input.readStringRequireUtf8(); - - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + com.google.iam.v2.PolicyRule m = + input.readMessage( + com.google.iam.v2.PolicyRule.parser(), + extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + managingAuthority_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1381,13 +1344,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1401,13 +1361,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1416,8 +1376,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1431,14 +1389,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1446,8 +1405,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1461,22 +1418,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1490,18 +1443,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1515,38 +1465,34 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uid_ = ""; /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1555,22 +1501,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1578,85 +1523,72 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uid_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object kind_ = ""; /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -1665,21 +1597,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -1687,83 +1618,70 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setKind( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearKind() { - kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1772,22 +1690,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1795,71 +1712,60 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1868,27 +1774,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { - onChanged(); - ; if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1897,21 +1799,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1924,8 +1825,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1934,17 +1833,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
+        java.lang.String key,
+        /* nullable */
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1953,24 +1852,23 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
-      internalGetMutableAnnotations().getMutableMap().clear();
+      bitField0_ = (bitField0_ & ~0x00000010);
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1978,21 +1876,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
+      bitField0_ |= 0x00000010;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -2000,20 +1900,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
+      bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -2021,15 +1918,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
+      bitField0_ |= 0x00000010;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2039,13 +1937,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 6;
-     *
      * @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;
@@ -2054,8 +1952,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2065,14 +1961,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; - * * @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 { @@ -2080,8 +1977,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2091,22 +1986,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 6; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2116,18 +2007,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 6; - * * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2137,75 +2025,54 @@ public Builder clearEtag() {
      * 
* * string etag = 6; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } 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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2213,141 +2080,114 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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_; @@ -2355,58 +2195,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2414,141 +2235,114 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2556,58 +2350,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { - return deleteTimeBuilder_ != null || deleteTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2615,164 +2390,132 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } deleteTime_ = value; - onChanged(); } else { deleteTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); - onChanged(); } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (deleteTime_ != null) { - deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; } - onChanged(); } else { deleteTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - onChanged(); - } else { - deleteTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - private java.util.List rules_ = java.util.Collections.emptyList(); - + private java.util.List rules_ = + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000200; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.PolicyRule, - com.google.iam.v2.PolicyRule.Builder, - com.google.iam.v2.PolicyRuleOrBuilder> - rulesBuilder_; + com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder> rulesBuilder_; /** - * - * *
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2788,8 +2531,6 @@ public java.util.List getRulesList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2805,8 +2546,6 @@ public int getRulesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2822,8 +2561,6 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2831,7 +2568,8 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder setRules(int index, com.google.iam.v2.PolicyRule value) {
+    public Builder setRules(
+        int index, com.google.iam.v2.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2845,8 +2583,6 @@ public Builder setRules(int index, com.google.iam.v2.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2854,7 +2590,8 @@ public Builder setRules(int index, com.google.iam.v2.PolicyRule value) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder setRules(int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder setRules(
+        int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -2865,8 +2602,6 @@ public Builder setRules(int index, com.google.iam.v2.PolicyRule.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2888,8 +2623,6 @@ public Builder addRules(com.google.iam.v2.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2897,7 +2630,8 @@ public Builder addRules(com.google.iam.v2.PolicyRule value) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(int index, com.google.iam.v2.PolicyRule value) {
+    public Builder addRules(
+        int index, com.google.iam.v2.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2911,8 +2645,6 @@ public Builder addRules(int index, com.google.iam.v2.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2920,7 +2652,8 @@ public Builder addRules(int index, com.google.iam.v2.PolicyRule value) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder addRules(
+        com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -2931,8 +2664,6 @@ public Builder addRules(com.google.iam.v2.PolicyRule.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2940,7 +2671,8 @@ public Builder addRules(com.google.iam.v2.PolicyRule.Builder builderForValue) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder addRules(
+        int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -2951,8 +2683,6 @@ public Builder addRules(int index, com.google.iam.v2.PolicyRule.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2960,10 +2690,12 @@ public Builder addRules(int index, com.google.iam.v2.PolicyRule.Builder builderF
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addAllRules(java.lang.Iterable values) {
+    public Builder addAllRules(
+        java.lang.Iterable values) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, rules_);
         onChanged();
       } else {
         rulesBuilder_.addAllMessages(values);
@@ -2971,8 +2703,6 @@ public Builder addAllRules(java.lang.Iterable
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2983,7 +2713,7 @@ public Builder addAllRules(java.lang.Iterable
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3011,8 +2739,6 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3020,12 +2746,11 @@ public Builder removeRules(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(int index) {
+    public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(
+        int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3033,16 +2758,14 @@ public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
+    public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
+        int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);
-      } else {
+        return rules_.get(index);  } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3050,7 +2773,8 @@ public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public java.util.List getRulesOrBuilderList() {
+    public java.util.List 
+         getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3058,8 +2782,6 @@ public java.util.List getRulesO
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3068,11 +2790,10 @@ public java.util.List getRulesO
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
     public com.google.iam.v2.PolicyRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(com.google.iam.v2.PolicyRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(
+          com.google.iam.v2.PolicyRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3080,13 +2801,12 @@ public com.google.iam.v2.PolicyRule.Builder addRulesBuilder() {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(int index) {
-      return getRulesFieldBuilder()
-          .addBuilder(index, com.google.iam.v2.PolicyRule.getDefaultInstance());
+    public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(
+        int index) {
+      return getRulesFieldBuilder().addBuilder(
+          index, com.google.iam.v2.PolicyRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3094,22 +2814,20 @@ public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public java.util.List getRulesBuilderList() {
+    public java.util.List 
+         getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v2.PolicyRule,
-            com.google.iam.v2.PolicyRule.Builder,
-            com.google.iam.v2.PolicyRuleOrBuilder>
+        com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder> 
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.iam.v2.PolicyRule,
-                com.google.iam.v2.PolicyRule.Builder,
-                com.google.iam.v2.PolicyRuleOrBuilder>(
-                rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder>(
+                rules_,
+                ((bitField0_ & 0x00000200) != 0),
+                getParentForChildren(),
+                isClean());
         rules_ = null;
       }
       return rulesBuilder_;
@@ -3117,21 +2835,19 @@ public java.util.List getRulesBuilderList(
 
     private java.lang.Object managingAuthority_ = "";
     /**
-     *
-     *
      * 
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The managingAuthority. */ public java.lang.String getManagingAuthority() { java.lang.Object ref = managingAuthority_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managingAuthority_ = s; return s; @@ -3140,22 +2856,21 @@ public java.lang.String getManagingAuthority() { } } /** - * - * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for managingAuthority. */ - public com.google.protobuf.ByteString getManagingAuthorityBytes() { + public com.google.protobuf.ByteString + getManagingAuthorityBytes() { java.lang.Object ref = managingAuthority_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); managingAuthority_ = b; return b; } else { @@ -3163,71 +2878,60 @@ public com.google.protobuf.ByteString getManagingAuthorityBytes() { } } /** - * - * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The managingAuthority to set. * @return This builder for chaining. */ - public Builder setManagingAuthority(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setManagingAuthority( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } managingAuthority_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearManagingAuthority() { - managingAuthority_ = getDefaultInstance().getManagingAuthority(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** - * - * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for managingAuthority to set. * @return This builder for chaining. */ - public Builder setManagingAuthorityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setManagingAuthorityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - managingAuthority_ = value; + bitField0_ |= 0x00000400; 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); } @@ -3237,12 +2941,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v2.Policy) private static final com.google.iam.v2.Policy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.Policy(); } @@ -3251,27 +2955,27 @@ public static com.google.iam.v2.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3286,4 +2990,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java similarity index 64% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java index b8aae54471..eadb6a085c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Metadata for long-running `Policy` operations.
  * 
* * Protobuf type {@code google.iam.v2.PolicyOperationMetadata} */ -public final class PolicyOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.PolicyOperationMetadata) PolicyOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyOperationMetadata.newBuilder() to construct. private PolicyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PolicyOperationMetadata() {} + private PolicyOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.PolicyOperationMetadata.class, - com.google.iam.v2.PolicyOperationMetadata.Builder.class); + com.google.iam.v2.PolicyOperationMetadata.class, com.google.iam.v2.PolicyOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -83,14 +62,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -98,8 +74,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -108,11 +82,10 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -138,7 +112,8 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -148,17 +123,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.iam.v2.PolicyOperationMetadata)) { return super.equals(obj); } - com.google.iam.v2.PolicyOperationMetadata other = - (com.google.iam.v2.PolicyOperationMetadata) obj; + com.google.iam.v2.PolicyOperationMetadata other = (com.google.iam.v2.PolicyOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -180,152 +155,146 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.PolicyOperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.PolicyOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2.PolicyOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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; } /** - * - * *
    * Metadata for long-running `Policy` operations.
    * 
* * Protobuf type {@code google.iam.v2.PolicyOperationMetadata} */ - 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.iam.v2.PolicyOperationMetadata) com.google.iam.v2.PolicyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.PolicyOperationMetadata.class, - com.google.iam.v2.PolicyOperationMetadata.Builder.class); + com.google.iam.v2.PolicyOperationMetadata.class, com.google.iam.v2.PolicyOperationMetadata.Builder.class); } // Construct using com.google.iam.v2.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override @@ -344,54 +313,57 @@ public com.google.iam.v2.PolicyOperationMetadata build() { @java.lang.Override public com.google.iam.v2.PolicyOperationMetadata buildPartial() { - com.google.iam.v2.PolicyOperationMetadata result = - new com.google.iam.v2.PolicyOperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } + com.google.iam.v2.PolicyOperationMetadata result = new com.google.iam.v2.PolicyOperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2.PolicyOperationMetadata) { - return mergeFrom((com.google.iam.v2.PolicyOperationMetadata) other); + return mergeFrom((com.google.iam.v2.PolicyOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -429,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,50 +423,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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(); } } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -507,35 +467,32 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - 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(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -544,22 +501,21 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -567,19 +523,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 1; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -587,13 +540,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -604,14 +555,11 @@ 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_; } } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -619,24 +567,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -646,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.PolicyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.iam.v2.PolicyOperationMetadata) private static final com.google.iam.v2.PolicyOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.PolicyOperationMetadata(); } @@ -660,27 +605,27 @@ public static com.google.iam.v2.PolicyOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.PolicyOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java similarity index 58% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java index 902e8200cd..1451317f14 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyOperationMetadataOrBuilder - extends +public interface PolicyOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.PolicyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java similarity index 80% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java index 84433497c5..d4938bddfc 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyOrBuilder - extends +public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.Policy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -39,13 +21,10 @@ public interface PolicyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -59,93 +38,76 @@ public interface PolicyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -155,8 +117,6 @@ public interface PolicyOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -164,13 +124,15 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -178,10 +140,9 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -189,15 +150,12 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -205,11 +163,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 5;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -219,13 +176,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 6; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -235,128 +189,93 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 6; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -364,10 +283,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  java.util.List getRulesList();
+  java.util.List 
+      getRulesList();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -377,8 +295,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.iam.v2.PolicyRule getRules(int index);
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -388,8 +304,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getRulesCount();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -397,10 +311,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  java.util.List getRulesOrBuilderList();
+  java.util.List 
+      getRulesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -408,32 +321,28 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index);
+  com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The managingAuthority. */ java.lang.String getManagingAuthority(); /** - * - * *
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for managingAuthority. */ - com.google.protobuf.ByteString getManagingAuthorityBytes(); + com.google.protobuf.ByteString + getManagingAuthorityBytes(); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java new file mode 100644 index 0000000000..3808c789f6 --- /dev/null +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java @@ -0,0 +1,224 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v2/policy.proto + +package com.google.iam.v2; + +public final class PolicyProto { + private PolicyProto() {} + 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_iam_v2_Policy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_PolicyRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_PolicyRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_GetPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_PolicyOperationMetadata_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\032google/iam/v2/policy.proto\022\rgoogle.iam" + + ".v2\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\030google/iam/v2/deny.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" + + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" + + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" + + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" + + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" + + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" + + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" + + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" + + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" + + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" + + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" + + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" + + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" + + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" + + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" + + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" + + "es\022\".google.iam.v2.ListPoliciesRequest\032#" + + ".google.iam.v2.ListPoliciesResponse\"*\202\323\344" + + "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022" + + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" + + "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v" + + "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat" + + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" + + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + + "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027" + + "parent,policy,policy_id\312A!\n\006Policy\022\027Poli" + + "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g" + + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" + + "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po" + + "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po" + + "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete" + + "Policy\022\".google.iam.v2.DeletePolicyReque" + + "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002" + + "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006" + + "Policy\022\027PolicyOperationMetadata\032F\312A\022iam." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\200\001\n\021com.google.i" + + "am.v2B\013PolicyProtoP\001Z0google.golang.org/" + + "genproto/googleapis/iam/v2;iam\252\002\023Google." + + "Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2b\006prot" + + "o3" + }; + 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.iam.v2.DenyRuleProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_iam_v2_Policy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v2_Policy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_Policy_descriptor, + new java.lang.String[] { "Name", "Uid", "Kind", "DisplayName", "Annotations", "Etag", "CreateTime", "UpdateTime", "DeleteTime", "Rules", "ManagingAuthority", }); + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor = + internal_static_google_iam_v2_Policy_descriptor.getNestedTypes().get(0); + internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_iam_v2_PolicyRule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v2_PolicyRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_PolicyRule_descriptor, + new java.lang.String[] { "DenyRule", "Description", "Kind", }); + internal_static_google_iam_v2_ListPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_ListPoliciesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_iam_v2_ListPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_ListPoliciesResponse_descriptor, + new java.lang.String[] { "Policies", "NextPageToken", }); + internal_static_google_iam_v2_GetPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_GetPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_iam_v2_CreatePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_CreatePolicyRequest_descriptor, + new java.lang.String[] { "Parent", "Policy", "PolicyId", }); + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor, + new java.lang.String[] { "Policy", }); + internal_static_google_iam_v2_DeletePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_DeletePolicyRequest_descriptor, + new java.lang.String[] { "Name", "Etag", }); + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", }); + 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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.iam.v2.DenyRuleProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java similarity index 69% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java index 032fa2bba2..5c012293f4 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java @@ -1,58 +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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * A single rule in a `Policy`.
  * 
* * Protobuf type {@code google.iam.v2.PolicyRule} */ -public final class PolicyRule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.PolicyRule) PolicyRuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyRule.newBuilder() to construct. private PolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyRule() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -66,15 +50,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int kindCase_ = 0; private java.lang.Object kind_; - public enum KindCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DENY_RULE(2), KIND_NOT_SET(0); private final int value; - private KindCase(int value) { this.value = value; } @@ -90,34 +71,29 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 2: - return DENY_RULE; - case 0: - return KIND_NOT_SET; - default: - return null; + case 2: return DENY_RULE; + case 0: return KIND_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public static final int DENY_RULE_FIELD_NUMBER = 2; /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -125,26 +101,21 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return The denyRule. */ @java.lang.Override public com.google.iam.v2.DenyRule getDenyRule() { if (kindCase_ == 2) { - return (com.google.iam.v2.DenyRule) kind_; + return (com.google.iam.v2.DenyRule) kind_; } return com.google.iam.v2.DenyRule.getDefaultInstance(); } /** - * - * *
    * A rule for a deny policy.
    * 
@@ -154,23 +125,21 @@ public com.google.iam.v2.DenyRule getDenyRule() { @java.lang.Override public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { if (kindCase_ == 2) { - return (com.google.iam.v2.DenyRule) kind_; + return (com.google.iam.v2.DenyRule) kind_; } return com.google.iam.v2.DenyRule.getDefaultInstance(); } public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -179,30 +148,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -211,7 +180,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -243,9 +212,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.iam.v2.DenyRule) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.iam.v2.DenyRule) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,18 +223,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v2.PolicyRule)) { return super.equals(obj); } com.google.iam.v2.PolicyRule other = (com.google.iam.v2.PolicyRule) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 2: - if (!getDenyRule().equals(other.getDenyRule())) return false; + if (!getDenyRule() + .equals(other.getDenyRule())) return false; break; case 0: default: @@ -297,148 +267,146 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.PolicyRule parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2.PolicyRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2.PolicyRule parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v2.PolicyRule parseFrom( + com.google.protobuf.CodedInputStream 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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 single rule in a `Policy`.
    * 
* * Protobuf type {@code google.iam.v2.PolicyRule} */ - 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.iam.v2.PolicyRule) com.google.iam.v2.PolicyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_PolicyRule_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2.PolicyRule.class, com.google.iam.v2.PolicyRule.Builder.class); } // Construct using com.google.iam.v2.PolicyRule.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (denyRuleBuilder_ != null) { denyRuleBuilder_.clear(); } description_ = ""; - kindCase_ = 0; kind_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -459,56 +427,64 @@ public com.google.iam.v2.PolicyRule build() { @java.lang.Override public com.google.iam.v2.PolicyRule buildPartial() { com.google.iam.v2.PolicyRule result = new com.google.iam.v2.PolicyRule(this); - if (kindCase_ == 2) { - if (denyRuleBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = denyRuleBuilder_.build(); - } - } - result.description_ = description_; - result.kindCase_ = kindCase_; + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.PolicyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 2 && + denyRuleBuilder_ != null) { + result.kind_ = denyRuleBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2.PolicyRule) { - return mergeFrom((com.google.iam.v2.PolicyRule) other); + return mergeFrom((com.google.iam.v2.PolicyRule)other); } else { super.mergeFrom(other); return this; @@ -519,18 +495,17 @@ public Builder mergeFrom(com.google.iam.v2.PolicyRule other) { if (other == com.google.iam.v2.PolicyRule.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } switch (other.getKindCase()) { - case DENY_RULE: - { - mergeDenyRule(other.getDenyRule()); - break; - } - case KIND_NOT_SET: - { - break; - } + case DENY_RULE: { + mergeDenyRule(other.getDenyRule()); + break; + } + case KIND_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -558,25 +533,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDenyRuleFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getDenyRuleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,12 +560,12 @@ public Builder mergeFrom( } // finally return this; } - private int kindCase_ = 0; private java.lang.Object kind_; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public Builder clearKind() { @@ -601,20 +575,16 @@ public Builder clearKind() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, - com.google.iam.v2.DenyRule.Builder, - com.google.iam.v2.DenyRuleOrBuilder> - denyRuleBuilder_; + com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder> denyRuleBuilder_; /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -622,14 +592,11 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return The denyRule. */ @java.lang.Override @@ -647,8 +614,6 @@ public com.google.iam.v2.DenyRule getDenyRule() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -669,15 +634,14 @@ public Builder setDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; */ - public Builder setDenyRule(com.google.iam.v2.DenyRule.Builder builderForValue) { + public Builder setDenyRule( + com.google.iam.v2.DenyRule.Builder builderForValue) { if (denyRuleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -688,8 +652,6 @@ public Builder setDenyRule(com.google.iam.v2.DenyRule.Builder builderForValue) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -698,11 +660,10 @@ public Builder setDenyRule(com.google.iam.v2.DenyRule.Builder builderForValue) { */ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { if (denyRuleBuilder_ == null) { - if (kindCase_ == 2 && kind_ != com.google.iam.v2.DenyRule.getDefaultInstance()) { - kind_ = - com.google.iam.v2.DenyRule.newBuilder((com.google.iam.v2.DenyRule) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 2 && + kind_ != com.google.iam.v2.DenyRule.getDefaultInstance()) { + kind_ = com.google.iam.v2.DenyRule.newBuilder((com.google.iam.v2.DenyRule) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -718,8 +679,6 @@ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -743,8 +702,6 @@ public Builder clearDenyRule() { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -755,8 +712,6 @@ public com.google.iam.v2.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -775,8 +730,6 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -784,45 +737,39 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { * .google.iam.v2.DenyRule deny_rule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, - com.google.iam.v2.DenyRule.Builder, - com.google.iam.v2.DenyRuleOrBuilder> + com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder> getDenyRuleFieldBuilder() { if (denyRuleBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.iam.v2.DenyRule.getDefaultInstance(); } - denyRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, - com.google.iam.v2.DenyRule.Builder, - com.google.iam.v2.DenyRuleOrBuilder>( - (com.google.iam.v2.DenyRule) kind_, getParentForChildren(), isClean()); + denyRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder>( + (com.google.iam.v2.DenyRule) kind_, + getParentForChildren(), + isClean()); kind_ = null; } kindCase_ = 2; onChanged(); - ; return denyRuleBuilder_; } private java.lang.Object description_ = ""; /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -831,22 +778,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -854,71 +800,60 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -928,12 +863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2.PolicyRule) } // @@protoc_insertion_point(class_scope:google.iam.v2.PolicyRule) private static final com.google.iam.v2.PolicyRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2.PolicyRule(); } @@ -942,27 +877,27 @@ public static com.google.iam.v2.PolicyRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,4 +912,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.PolicyRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java similarity index 63% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java index 712ec0723f..47b005f579 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyRuleOrBuilder - extends +public interface PolicyRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2.PolicyRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ boolean hasDenyRule(); /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; - * * @return The denyRule. */ com.google.iam.v2.DenyRule getDenyRule(); /** - * - * *
    * A rule for a deny policy.
    * 
@@ -59,31 +35,26 @@ public interface PolicyRuleOrBuilder com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder(); /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); public com.google.iam.v2.PolicyRule.KindCase getKindCase(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java similarity index 69% rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java index d7810fed39..dc245ae48f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java @@ -1,75 +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/iam/v2/policy.proto package com.google.iam.v2; /** - * - * *
  * Request message for `UpdatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePolicyRequest() {} + private UpdatePolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.UpdatePolicyRequest.class, - com.google.iam.v2.UpdatePolicyRequest.Builder.class); + com.google.iam.v2.UpdatePolicyRequest.class, com.google.iam.v2.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2.Policy policy_; /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -78,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -86,8 +65,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -96,7 +73,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -104,8 +80,6 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -117,11 +91,10 @@ public com.google.iam.v2.Policy getPolicy() {
    */
   @java.lang.Override
   public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
-    return getPolicy();
+    return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,7 +106,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -147,7 +121,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -157,7 +132,7 @@ 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.iam.v2.UpdatePolicyRequest)) {
       return super.equals(obj);
@@ -166,7 +141,8 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -188,151 +164,146 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest 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.iam.v2.UpdatePolicyRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.iam.v2.UpdatePolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `UpdatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.UpdatePolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2.UpdatePolicyRequest) com.google.iam.v2.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.UpdatePolicyRequest.class, - com.google.iam.v2.UpdatePolicyRequest.Builder.class); + com.google.iam.v2.UpdatePolicyRequest.class, com.google.iam.v2.UpdatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; + bitField0_ = 0; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2.PolicyProto - .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override @@ -351,54 +322,57 @@ public com.google.iam.v2.UpdatePolicyRequest build() { @java.lang.Override public com.google.iam.v2.UpdatePolicyRequest buildPartial() { - com.google.iam.v2.UpdatePolicyRequest result = - new com.google.iam.v2.UpdatePolicyRequest(this); - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.build(); - } + com.google.iam.v2.UpdatePolicyRequest result = new com.google.iam.v2.UpdatePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2.UpdatePolicyRequest) { - return mergeFrom((com.google.iam.v2.UpdatePolicyRequest) other); + return mergeFrom((com.google.iam.v2.UpdatePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -436,19 +410,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,16 +432,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v2.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, - com.google.iam.v2.Policy.Builder, - com.google.iam.v2.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -476,15 +446,12 @@ public Builder mergeFrom(
      * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -493,7 +460,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2.Policy getPolicy() { @@ -504,8 +470,6 @@ public com.google.iam.v2.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -521,16 +485,14 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
           throw new NullPointerException();
         }
         policy_ = value;
-        onChanged();
       } else {
         policyBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -540,19 +502,18 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
      *
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v2.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
-        onChanged();
       } else {
         policyBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -564,21 +525,21 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v2.Policy value) {
       if (policyBuilder_ == null) {
-        if (policy_ != null) {
-          policy_ = com.google.iam.v2.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000001) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v2.Policy.getDefaultInstance()) {
+          getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
         }
-        onChanged();
       } else {
         policyBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -589,19 +550,16 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) {
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     public Builder clearPolicy() {
-      if (policyBuilder_ == null) {
-        policy_ = null;
-        onChanged();
-      } else {
-        policy_ = null;
+      bitField0_ = (bitField0_ & ~0x00000001);
+      policy_ = null;
+      if (policyBuilder_ != null) {
+        policyBuilder_.dispose();
         policyBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -612,13 +570,11 @@ public Builder clearPolicy() {
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v2.Policy.Builder getPolicyBuilder() {
-
+      bitField0_ |= 0x00000001;
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -632,12 +588,11 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v2.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -648,23 +603,21 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v2.Policy,
-            com.google.iam.v2.Policy.Builder,
-            com.google.iam.v2.PolicyOrBuilder>
+        com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v2.Policy,
-                com.google.iam.v2.Policy.Builder,
-                com.google.iam.v2.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -674,12 +627,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v2.UpdatePolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2.UpdatePolicyRequest)
   private static final com.google.iam.v2.UpdatePolicyRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2.UpdatePolicyRequest();
   }
@@ -688,27 +641,27 @@ public static com.google.iam.v2.UpdatePolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdatePolicyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdatePolicyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -723,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2.UpdatePolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
similarity index 69%
rename from java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
index fa20ec03d5..3b2318682d 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
+++ b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.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/iam/v2/policy.proto
 
 package com.google.iam.v2;
 
-public interface UpdatePolicyRequestOrBuilder
-    extends
+public interface UpdatePolicyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2.UpdatePolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -34,13 +16,10 @@ public interface UpdatePolicyRequestOrBuilder
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -49,13 +28,10 @@ public interface UpdatePolicyRequestOrBuilder
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v2.Policy getPolicy(); /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
diff --git a/java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
similarity index 100%
rename from java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
diff --git a/java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
similarity index 100%
rename from java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
rename to owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
diff --git a/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java b/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
new file mode 100644
index 0000000000..30a5cf76b3
--- /dev/null
+++ b/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
@@ -0,0 +1,683 @@
+package com.google.iam.v2beta;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * An interface for managing Identity and Access Management (IAM) policies.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/iam/v2beta/policy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PoliciesGrpc { + + private PoliciesGrpc() {} + + public static final String SERVICE_NAME = "google.iam.v2beta.Policies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicies", + requestType = com.google.iam.v2beta.ListPoliciesRequest.class, + responseType = com.google.iam.v2beta.ListPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPoliciesMethod() { + io.grpc.MethodDescriptor getListPoliciesMethod; + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + PoliciesGrpc.getListPoliciesMethod = getListPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.ListPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.ListPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) + .build(); + } + } + } + return getListPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.iam.v2beta.GetPolicyRequest.class, + responseType = com.google.iam.v2beta.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPolicyMethod() { + io.grpc.MethodDescriptor getGetPolicyMethod; + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + PoliciesGrpc.getGetPolicyMethod = getGetPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.Policy.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", + requestType = com.google.iam.v2beta.CreatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePolicyMethod() { + io.grpc.MethodDescriptor getCreatePolicyMethod; + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + PoliciesGrpc.getCreatePolicyMethod = getCreatePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.CreatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) + .build(); + } + } + } + return getCreatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.iam.v2beta.UpdatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { + io.grpc.MethodDescriptor getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + PoliciesGrpc.getUpdatePolicyMethod = getUpdatePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", + requestType = com.google.iam.v2beta.DeletePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePolicyMethod() { + io.grpc.MethodDescriptor getDeletePolicyMethod; + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + PoliciesGrpc.getDeletePolicyMethod = getDeletePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.DeletePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) + .build(); + } + } + } + return getDeletePolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + }; + return PoliciesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PoliciesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + }; + return PoliciesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PoliciesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + }; + return PoliciesFutureStub.newStub(factory, channel); + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static abstract class PoliciesImplBase implements io.grpc.BindableService { + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), responseObserver); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.ListPoliciesRequest, + com.google.iam.v2beta.ListPoliciesResponse>( + this, METHODID_LIST_POLICIES))) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.GetPolicyRequest, + com.google.iam.v2beta.Policy>( + this, METHODID_GET_POLICY))) + .addMethod( + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.CreatePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.UpdatePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.DeletePolicyRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_POLICY))) + .build(); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { + private PoliciesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PoliciesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.iam.v2beta.ListPoliciesResponse listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public com.google.longrunning.Operation createPolicy(com.google.iam.v2beta.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.longrunning.Operation updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesFutureStub extends io.grpc.stub.AbstractFutureStub { + private PoliciesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + + /** + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPolicies( + com.google.iam.v2beta.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPolicy( + com.google.iam.v2beta.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPolicy( + com.google.iam.v2beta.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePolicy( + com.google.iam.v2beta.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICIES = 0; + private static final int METHODID_GET_POLICY = 1; + private static final int METHODID_CREATE_POLICY = 2; + private static final int METHODID_UPDATE_POLICY = 3; + private static final int METHODID_DELETE_POLICY = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final PoliciesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PoliciesImplBase 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_POLICIES: + serviceImpl.listPolicies((com.google.iam.v2beta.ListPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_POLICY: + serviceImpl.getPolicy((com.google.iam.v2beta.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_POLICY: + serviceImpl.createPolicy((com.google.iam.v2beta.CreatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy((com.google.iam.v2beta.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY: + serviceImpl.deletePolicy((com.google.iam.v2beta.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v2beta.PolicyProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Policies"); + } + } + + private static final class PoliciesFileDescriptorSupplier + extends PoliciesBaseDescriptorSupplier { + PoliciesFileDescriptorSupplier() {} + } + + private static final class PoliciesMethodDescriptorSupplier + extends PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java similarity index 72% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java index 4c91193e2d..5b43c9bf86 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Request message for `CreatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.CreatePolicyRequest} */ -public final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.CreatePolicyRequest) CreatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePolicyRequest.newBuilder() to construct. private CreatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePolicyRequest() { parent_ = ""; policyId_ = ""; @@ -44,35 +26,33 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.CreatePolicyRequest.class, - com.google.iam.v2beta.CreatePolicyRequest.Builder.class); + com.google.iam.v2beta.CreatePolicyRequest.class, com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -85,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -94,15 +73,14 @@ 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 that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -115,15 +93,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -134,14 +113,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v2beta.Policy policy_; /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -149,14 +125,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -164,8 +137,6 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to create.
    * 
@@ -174,14 +145,13 @@ public com.google.iam.v2beta.Policy getPolicy() { */ @java.lang.Override public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); + return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } public static final int POLICY_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object policyId_; + @SuppressWarnings("serial") + private volatile java.lang.Object policyId_ = ""; /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -190,7 +160,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; - * * @return The policyId. */ @java.lang.Override @@ -199,15 +168,14 @@ public java.lang.String getPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -216,15 +184,16 @@ public java.lang.String getPolicyId() {
    * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyIdBytes() { + public com.google.protobuf.ByteString + getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyId_ = b; return b; } else { @@ -233,7 +202,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,7 +213,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_); } @@ -268,7 +237,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyId_); @@ -281,20 +251,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.iam.v2beta.CreatePolicyRequest)) { return super.equals(obj); } - com.google.iam.v2beta.CreatePolicyRequest other = - (com.google.iam.v2beta.CreatePolicyRequest) obj; + com.google.iam.v2beta.CreatePolicyRequest other = (com.google.iam.v2beta.CreatePolicyRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } - if (!getPolicyId().equals(other.getPolicyId())) return false; + if (!getPolicyId() + .equals(other.getPolicyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,156 +291,148 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.CreatePolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.CreatePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2beta.CreatePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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 `CreatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.CreatePolicyRequest} */ - 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.iam.v2beta.CreatePolicyRequest) com.google.iam.v2beta.CreatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.CreatePolicyRequest.class, - com.google.iam.v2beta.CreatePolicyRequest.Builder.class); + com.google.iam.v2beta.CreatePolicyRequest.class, com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } policyId_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override @@ -487,56 +451,63 @@ public com.google.iam.v2beta.CreatePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.CreatePolicyRequest buildPartial() { - com.google.iam.v2beta.CreatePolicyRequest result = - new com.google.iam.v2beta.CreatePolicyRequest(this); - result.parent_ = parent_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.build(); - } - result.policyId_ = policyId_; + com.google.iam.v2beta.CreatePolicyRequest result = new com.google.iam.v2beta.CreatePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyId_ = policyId_; + } + } + @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) { + 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.iam.v2beta.CreatePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.CreatePolicyRequest) other); + return mergeFrom((com.google.iam.v2beta.CreatePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -547,6 +518,7 @@ public Builder mergeFrom(com.google.iam.v2beta.CreatePolicyRequest other) { if (other == com.google.iam.v2beta.CreatePolicyRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPolicy()) { @@ -554,6 +526,7 @@ public Builder mergeFrom(com.google.iam.v2beta.CreatePolicyRequest other) { } if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -582,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - policyId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + policyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,11 +587,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -633,13 +603,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -648,8 +618,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -662,14 +630,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -677,8 +646,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -691,22 +658,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -719,18 +682,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -743,50 +703,39 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.iam.v2beta.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2beta.Policy getPolicy() { @@ -797,8 +746,6 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -811,35 +758,32 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) { throw new NullPointerException(); } policy_ = value; - onChanged(); } else { policyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder setPolicy( + com.google.iam.v2beta.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); - onChanged(); } else { policyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -848,22 +792,21 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) { */ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.iam.v2beta.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) && + policy_ != null && + policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); } else { policy_ = value; } - onChanged(); } else { policyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -871,19 +814,16 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -891,13 +831,11 @@ public Builder clearPolicy() { * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The policy to create.
      * 
@@ -908,12 +846,11 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; + return policy_ == null ? + com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -921,17 +858,14 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder> + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; @@ -939,8 +873,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { private java.lang.Object policyId_ = ""; /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -949,13 +881,13 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * string policy_id = 3; - * * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; @@ -964,8 +896,6 @@ public java.lang.String getPolicyId() { } } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -974,14 +904,15 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ - public com.google.protobuf.ByteString getPolicyIdBytes() { + public com.google.protobuf.ByteString + getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyId_ = b; return b; } else { @@ -989,8 +920,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -999,22 +928,18 @@ public com.google.protobuf.ByteString getPolicyIdBytes() {
      * 
* * string policy_id = 3; - * * @param value The policyId to set. * @return This builder for chaining. */ - public Builder setPolicyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPolicyId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } policyId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -1023,18 +948,15 @@ public Builder setPolicyId(java.lang.String value) {
      * 
* * string policy_id = 3; - * * @return This builder for chaining. */ public Builder clearPolicyId() { - policyId_ = getDefaultInstance().getPolicyId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -1043,23 +965,21 @@ public Builder clearPolicyId() {
      * 
* * string policy_id = 3; - * * @param value The bytes for policyId to set. * @return This builder for chaining. */ - public Builder setPolicyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPolicyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - policyId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.CreatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.CreatePolicyRequest) private static final com.google.iam.v2beta.CreatePolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.CreatePolicyRequest(); } @@ -1083,27 +1003,27 @@ public static com.google.iam.v2beta.CreatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1118,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.CreatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java similarity index 79% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java index 24c4fc2fb6..70d1441809 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface CreatePolicyRequestOrBuilder - extends +public interface CreatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.CreatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -38,13 +20,10 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -57,38 +36,30 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v2beta.Policy getPolicy(); /** - * - * *
    * Required. The policy to create.
    * 
@@ -98,8 +69,6 @@ public interface CreatePolicyRequestOrBuilder com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder(); /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -108,13 +77,10 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string policy_id = 3; - * * @return The policyId. */ java.lang.String getPolicyId(); /** - * - * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -123,8 +89,8 @@ public interface CreatePolicyRequestOrBuilder
    * 
* * string policy_id = 3; - * * @return The bytes for policyId. */ - com.google.protobuf.ByteString getPolicyIdBytes(); + com.google.protobuf.ByteString + getPolicyIdBytes(); } diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java similarity index 72% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java index 255a71ece4..5fdc95c1c2 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Request message for `DeletePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.DeletePolicyRequest} */ -public final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.DeletePolicyRequest) DeletePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePolicyRequest.newBuilder() to construct. private DeletePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePolicyRequest() { name_ = ""; etag_ = ""; @@ -44,35 +26,33 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.DeletePolicyRequest.class, - com.google.iam.v2beta.DeletePolicyRequest.Builder.class); + com.google.iam.v2beta.DeletePolicyRequest.class, com.google.iam.v2beta.DeletePolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -84,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -93,15 +72,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 policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -113,15 +91,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 { @@ -130,10 +109,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -143,7 +121,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -152,15 +129,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. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -170,15 +146,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 { @@ -187,7 +164,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +175,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_); } @@ -229,16 +206,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.iam.v2beta.DeletePolicyRequest)) { return super.equals(obj); } - com.google.iam.v2beta.DeletePolicyRequest other = - (com.google.iam.v2beta.DeletePolicyRequest) obj; + com.google.iam.v2beta.DeletePolicyRequest other = (com.google.iam.v2beta.DeletePolicyRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,150 +237,143 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.DeletePolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.DeletePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2beta.DeletePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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 `DeletePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.DeletePolicyRequest} */ - 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.iam.v2beta.DeletePolicyRequest) com.google.iam.v2beta.DeletePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.DeletePolicyRequest.class, - com.google.iam.v2beta.DeletePolicyRequest.Builder.class); + com.google.iam.v2beta.DeletePolicyRequest.class, com.google.iam.v2beta.DeletePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.DeletePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override @@ -421,51 +392,58 @@ public com.google.iam.v2beta.DeletePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.DeletePolicyRequest buildPartial() { - com.google.iam.v2beta.DeletePolicyRequest result = - new com.google.iam.v2beta.DeletePolicyRequest(this); - result.name_ = name_; - result.etag_ = etag_; + com.google.iam.v2beta.DeletePolicyRequest result = new com.google.iam.v2beta.DeletePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @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) { + 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.iam.v2beta.DeletePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.DeletePolicyRequest) other); + return mergeFrom((com.google.iam.v2beta.DeletePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -476,10 +454,12 @@ public Builder mergeFrom(com.google.iam.v2beta.DeletePolicyRequest other) { if (other == com.google.iam.v2beta.DeletePolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -508,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,11 +513,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -552,13 +528,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; @@ -567,8 +543,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -580,14 +554,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 { @@ -595,8 +570,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -608,22 +581,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -635,18 +604,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(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -658,25 +624,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -686,13 +648,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; @@ -701,8 +663,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -712,14 +672,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 { @@ -727,8 +688,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -738,22 +697,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -763,18 +718,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(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -784,23 +736,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -810,12 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.DeletePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.DeletePolicyRequest) private static final com.google.iam.v2beta.DeletePolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.DeletePolicyRequest(); } @@ -824,27 +774,27 @@ public static com.google.iam.v2beta.DeletePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -859,4 +809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.DeletePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java similarity index 75% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java index 1b19529885..ac1011817f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface DeletePolicyRequestOrBuilder - extends +public interface DeletePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.DeletePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -37,13 +19,10 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -55,14 +34,12 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -72,13 +49,10 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -88,8 +62,8 @@ public interface DeletePolicyRequestOrBuilder
    * 
* * 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/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java similarity index 86% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java index b776f7b169..fd94a25313 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.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/iam/v2beta/deny.proto package com.google.iam.v2beta; /** - * - * *
  * A deny rule in an IAM deny policy.
  * 
* * Protobuf type {@code google.iam.v2beta.DenyRule} */ -public final class DenyRule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DenyRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.DenyRule) DenyRuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DenyRule.newBuilder() to construct. private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DenyRule() { deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,34 +28,33 @@ private DenyRule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DenyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.DenyRuleProto - .internal_static_google_iam_v2beta_DenyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.DenyRuleProto - .internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable + return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPrincipals_; /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -110,15 +91,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { return deniedPrincipals_; } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -155,15 +134,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
    * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -200,7 +176,6 @@ public int getDeniedPrincipalsCount() {
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -208,8 +183,6 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -246,19 +219,18 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPrincipals_; /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -270,15 +242,13 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
    * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { return exceptionPrincipals_; } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -290,15 +260,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
    * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -310,7 +277,6 @@ public int getExceptionPrincipalsCount() {
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -318,8 +284,6 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -331,19 +295,18 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPermissions_; /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -352,15 +315,13 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
    * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { return deniedPermissions_; } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -369,15 +330,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
    * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -386,7 +344,6 @@ public int getDeniedPermissionsCount() {
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -394,8 +351,6 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -404,19 +359,18 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPermissions_; /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -427,15 +381,13 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
    * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { return exceptionPermissions_; } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -446,15 +398,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
    * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -465,7 +414,6 @@ public int getExceptionPermissionsCount() {
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -473,8 +421,6 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -485,19 +431,17 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } public static final int DENIAL_CONDITION_FIELD_NUMBER = 5; private com.google.type.Expr denialCondition_; /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -511,7 +455,6 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -519,8 +462,6 @@ public boolean hasDenialCondition() { return denialCondition_ != null; } /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -534,7 +475,6 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ @java.lang.Override @@ -542,8 +482,6 @@ public com.google.type.Expr getDenialCondition() { return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -560,11 +498,10 @@ public com.google.type.Expr getDenialCondition() {
    */
   @java.lang.Override
   public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
-    return getDenialCondition();
+    return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -576,7 +513,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 < deniedPrincipals_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deniedPrincipals_.getRaw(i));
     }
@@ -587,8 +525,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deniedPermissions_.getRaw(i));
     }
     for (int i = 0; i < exceptionPermissions_.size(); i++) {
-      com.google.protobuf.GeneratedMessageV3.writeString(
-          output, 4, exceptionPermissions_.getRaw(i));
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exceptionPermissions_.getRaw(i));
     }
     if (denialCondition_ != null) {
       output.writeMessage(5, getDenialCondition());
@@ -635,7 +572,8 @@ public int getSerializedSize() {
       size += 1 * getExceptionPermissionsList().size();
     }
     if (denialCondition_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getDenialCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -645,20 +583,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.iam.v2beta.DenyRule)) {
       return super.equals(obj);
     }
     com.google.iam.v2beta.DenyRule other = (com.google.iam.v2beta.DenyRule) obj;
 
-    if (!getDeniedPrincipalsList().equals(other.getDeniedPrincipalsList())) return false;
-    if (!getExceptionPrincipalsList().equals(other.getExceptionPrincipalsList())) return false;
-    if (!getDeniedPermissionsList().equals(other.getDeniedPermissionsList())) return false;
-    if (!getExceptionPermissionsList().equals(other.getExceptionPermissionsList())) return false;
+    if (!getDeniedPrincipalsList()
+        .equals(other.getDeniedPrincipalsList())) return false;
+    if (!getExceptionPrincipalsList()
+        .equals(other.getExceptionPrincipalsList())) return false;
+    if (!getDeniedPermissionsList()
+        .equals(other.getDeniedPermissionsList())) return false;
+    if (!getExceptionPermissionsList()
+        .equals(other.getExceptionPermissionsList())) return false;
     if (hasDenialCondition() != other.hasDenialCondition()) return false;
     if (hasDenialCondition()) {
-      if (!getDenialCondition().equals(other.getDenialCondition())) return false;
+      if (!getDenialCondition()
+          .equals(other.getDenialCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -696,137 +639,134 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.DenyRule parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.DenyRule parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v2beta.DenyRule parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.iam.v2beta.DenyRule parseFrom(
+      com.google.protobuf.CodedInputStream 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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 deny rule in an IAM deny policy.
    * 
* * Protobuf type {@code google.iam.v2beta.DenyRule} */ - 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.iam.v2beta.DenyRule) com.google.iam.v2beta.DenyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.DenyRuleProto - .internal_static_google_iam_v2beta_DenyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.DenyRuleProto - .internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable + return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } // Construct using com.google.iam.v2beta.DenyRule.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -835,19 +775,18 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); - if (denialConditionBuilder_ == null) { - denialCondition_ = null; - } else { - denialCondition_ = null; + denialCondition_ = null; + if (denialConditionBuilder_ != null) { + denialConditionBuilder_.dispose(); denialConditionBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.DenyRuleProto - .internal_static_google_iam_v2beta_DenyRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override @@ -867,7 +806,13 @@ public com.google.iam.v2beta.DenyRule build() { @java.lang.Override public com.google.iam.v2beta.DenyRule buildPartial() { com.google.iam.v2beta.DenyRule result = new com.google.iam.v2beta.DenyRule(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2beta.DenyRule result) { if (((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -888,52 +833,53 @@ public com.google.iam.v2beta.DenyRule buildPartial() { bitField0_ = (bitField0_ & ~0x00000008); } result.exceptionPermissions_ = exceptionPermissions_; - if (denialConditionBuilder_ == null) { - result.denialCondition_ = denialCondition_; - } else { - result.denialCondition_ = denialConditionBuilder_.build(); + } + + private void buildPartial0(com.google.iam.v2beta.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.denialCondition_ = denialConditionBuilder_ == null + ? denialCondition_ + : denialConditionBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.DenyRule) { - return mergeFrom((com.google.iam.v2beta.DenyRule) other); + return mergeFrom((com.google.iam.v2beta.DenyRule)other); } else { super.mergeFrom(other); return this; @@ -1011,47 +957,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPrincipalsIsMutable(); - deniedPrincipals_.add(s); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPrincipalsIsMutable(); - exceptionPrincipals_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPermissionsIsMutable(); - deniedPermissions_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPermissionsIsMutable(); - exceptionPermissions_.add(s); - break; - } // case 34 - case 42: - { - input.readMessage(getDenialConditionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPrincipalsIsMutable(); + deniedPrincipals_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPrincipalsIsMutable(); + exceptionPrincipals_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPermissionsIsMutable(); + deniedPermissions_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPermissionsIsMutable(); + exceptionPermissions_.add(s); + break; + } // case 34 + case 42: { + input.readMessage( + getDenialConditionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1061,21 +1003,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeniedPrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1112,15 +1049,13 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { return deniedPrincipals_.getUnmodifiableView(); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1157,15 +1092,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
      * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1202,7 +1134,6 @@ public int getDeniedPrincipalsCount() {
      * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -1210,8 +1141,6 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1248,16 +1177,14 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1294,23 +1221,19 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
      * 
* * repeated string denied_principals = 1; - * * @param index The index to set the value at. * @param value The deniedPrincipals to set. * @return This builder for chaining. */ - public Builder setDeniedPrincipals(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeniedPrincipals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.set(index, value); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1347,22 +1270,18 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
      * 
* * repeated string denied_principals = 1; - * * @param value The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipals(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPrincipals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1399,19 +1318,18 @@ public Builder addDeniedPrincipals(java.lang.String value) {
      * 
* * repeated string denied_principals = 1; - * * @param values The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addAllDeniedPrincipals(java.lang.Iterable values) { + public Builder addAllDeniedPrincipals( + java.lang.Iterable values) { ensureDeniedPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deniedPrincipals_); onChanged(); return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1448,7 +1366,6 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
* * repeated string denied_principals = 1; - * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { @@ -1458,8 +1375,6 @@ public Builder clearDeniedPrincipals() { return this; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1496,14 +1411,12 @@ public Builder clearDeniedPrincipals() {
      * 
* * repeated string denied_principals = 1; - * * @param value The bytes of the deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPrincipalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); @@ -1511,18 +1424,14 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExceptionPrincipalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1534,15 +1443,13 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { return exceptionPrincipals_.getUnmodifiableView(); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1554,15 +1461,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
      * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1574,7 +1478,6 @@ public int getExceptionPrincipalsCount() {
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1582,8 +1485,6 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1595,16 +1496,14 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1616,23 +1515,19 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
      * 
* * repeated string exception_principals = 2; - * * @param index The index to set the value at. * @param value The exceptionPrincipals to set. * @return This builder for chaining. */ - public Builder setExceptionPrincipals(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExceptionPrincipals( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.set(index, value); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1644,22 +1539,18 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
      * 
* * repeated string exception_principals = 2; - * * @param value The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipals(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPrincipals( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1671,19 +1562,18 @@ public Builder addExceptionPrincipals(java.lang.String value) {
      * 
* * repeated string exception_principals = 2; - * * @param values The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addAllExceptionPrincipals(java.lang.Iterable values) { + public Builder addAllExceptionPrincipals( + java.lang.Iterable values) { ensureExceptionPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exceptionPrincipals_); onChanged(); return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1695,7 +1585,6 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
      * 
* * repeated string exception_principals = 2; - * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { @@ -1705,8 +1594,6 @@ public Builder clearExceptionPrincipals() { return this; } /** - * - * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1718,14 +1605,12 @@ public Builder clearExceptionPrincipals() {
      * 
* * repeated string exception_principals = 2; - * * @param value The bytes of the exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPrincipalsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); @@ -1733,18 +1618,14 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeniedPermissionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1753,15 +1634,13 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { return deniedPermissions_.getUnmodifiableView(); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1770,15 +1649,12 @@ public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
      * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1787,7 +1663,6 @@ public int getDeniedPermissionsCount() {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -1795,8 +1670,6 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1805,16 +1678,14 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1823,23 +1694,19 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
      * 
* * repeated string denied_permissions = 3; - * * @param index The index to set the value at. * @param value The deniedPermissions to set. * @return This builder for chaining. */ - public Builder setDeniedPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeniedPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPermissionsIsMutable(); deniedPermissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1848,22 +1715,18 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
      * 
* * repeated string denied_permissions = 3; - * * @param value The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1872,19 +1735,18 @@ public Builder addDeniedPermissions(java.lang.String value) {
      * 
* * repeated string denied_permissions = 3; - * * @param values The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addAllDeniedPermissions(java.lang.Iterable values) { + public Builder addAllDeniedPermissions( + java.lang.Iterable values) { ensureDeniedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deniedPermissions_); onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1893,7 +1755,6 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * 
* * repeated string denied_permissions = 3; - * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { @@ -1903,8 +1764,6 @@ public Builder clearDeniedPermissions() { return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1913,14 +1772,12 @@ public Builder clearDeniedPermissions() {
      * 
* * repeated string denied_permissions = 3; - * * @param value The bytes of the deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDeniedPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); @@ -1928,18 +1785,14 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExceptionPermissionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1950,15 +1803,13 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { return exceptionPermissions_.getUnmodifiableView(); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1969,15 +1820,12 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
      * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1988,7 +1836,6 @@ public int getExceptionPermissionsCount() {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -1996,8 +1843,6 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2008,16 +1853,14 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2028,23 +1871,19 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
      * 
* * repeated string exception_permissions = 4; - * * @param index The index to set the value at. * @param value The exceptionPermissions to set. * @return This builder for chaining. */ - public Builder setExceptionPermissions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExceptionPermissions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2055,22 +1894,18 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
      * 
* * repeated string exception_permissions = 4; - * * @param value The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPermissions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2081,19 +1916,18 @@ public Builder addExceptionPermissions(java.lang.String value) {
      * 
* * repeated string exception_permissions = 4; - * * @param values The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addAllExceptionPermissions(java.lang.Iterable values) { + public Builder addAllExceptionPermissions( + java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exceptionPermissions_); onChanged(); return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2104,7 +1938,6 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
      * 
* * repeated string exception_permissions = 4; - * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { @@ -2114,8 +1947,6 @@ public Builder clearExceptionPermissions() { return this; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2126,14 +1957,12 @@ public Builder clearExceptionPermissions() {
      * 
* * repeated string exception_permissions = 4; - * * @param value The bytes of the exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addExceptionPermissionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); @@ -2143,11 +1972,8 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value private com.google.type.Expr denialCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - denialConditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> denialConditionBuilder_; /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2161,15 +1987,12 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
      * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ public boolean hasDenialCondition() { - return denialConditionBuilder_ != null || denialCondition_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2183,21 +2006,16 @@ public boolean hasDenialCondition() {
      * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ public com.google.type.Expr getDenialCondition() { if (denialConditionBuilder_ == null) { - return denialCondition_ == null - ? com.google.type.Expr.getDefaultInstance() - : denialCondition_; + return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } else { return denialConditionBuilder_.getMessage(); } } /** - * - * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2218,16 +2036,14 @@ public Builder setDenialCondition(com.google.type.Expr value) {
           throw new NullPointerException();
         }
         denialCondition_ = value;
-        onChanged();
       } else {
         denialConditionBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2242,19 +2058,18 @@ public Builder setDenialCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr denial_condition = 5;
      */
-    public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) {
+    public Builder setDenialCondition(
+        com.google.type.Expr.Builder builderForValue) {
       if (denialConditionBuilder_ == null) {
         denialCondition_ = builderForValue.build();
-        onChanged();
       } else {
         denialConditionBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2271,22 +2086,21 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
      */
     public Builder mergeDenialCondition(com.google.type.Expr value) {
       if (denialConditionBuilder_ == null) {
-        if (denialCondition_ != null) {
-          denialCondition_ =
-              com.google.type.Expr.newBuilder(denialCondition_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000010) != 0) &&
+          denialCondition_ != null &&
+          denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
+          getDenialConditionBuilder().mergeFrom(value);
         } else {
           denialCondition_ = value;
         }
-        onChanged();
       } else {
         denialConditionBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000010;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2302,19 +2116,16 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
      * .google.type.Expr denial_condition = 5;
      */
     public Builder clearDenialCondition() {
-      if (denialConditionBuilder_ == null) {
-        denialCondition_ = null;
-        onChanged();
-      } else {
-        denialCondition_ = null;
+      bitField0_ = (bitField0_ & ~0x00000010);
+      denialCondition_ = null;
+      if (denialConditionBuilder_ != null) {
+        denialConditionBuilder_.dispose();
         denialConditionBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2330,13 +2141,11 @@ public Builder clearDenialCondition() {
      * .google.type.Expr denial_condition = 5;
      */
     public com.google.type.Expr.Builder getDenialConditionBuilder() {
-
+      bitField0_ |= 0x00000010;
       onChanged();
       return getDenialConditionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2355,14 +2164,11 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
       if (denialConditionBuilder_ != null) {
         return denialConditionBuilder_.getMessageOrBuilder();
       } else {
-        return denialCondition_ == null
-            ? com.google.type.Expr.getDefaultInstance()
-            : denialCondition_;
+        return denialCondition_ == null ?
+            com.google.type.Expr.getDefaultInstance() : denialCondition_;
       }
     }
     /**
-     *
-     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2378,20 +2184,21 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
      * .google.type.Expr denial_condition = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
         getDenialConditionFieldBuilder() {
       if (denialConditionBuilder_ == null) {
-        denialConditionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getDenialCondition(), getParentForChildren(), isClean());
+        denialConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getDenialCondition(),
+                getParentForChildren(),
+                isClean());
         denialCondition_ = null;
       }
       return denialConditionBuilder_;
     }
-
     @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);
     }
 
@@ -2401,12 +2208,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.DenyRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.DenyRule)
   private static final com.google.iam.v2beta.DenyRule DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.DenyRule();
   }
@@ -2415,27 +2222,27 @@ public static com.google.iam.v2beta.DenyRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DenyRule parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DenyRule parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2450,4 +2257,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.DenyRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
similarity index 92%
rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
index 30258206ce..5439e65a9a 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.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/iam/v2beta/deny.proto
 
 package com.google.iam.v2beta;
 
-public interface DenyRuleOrBuilder
-    extends
+public interface DenyRuleOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2beta.DenyRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -62,13 +44,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - java.util.List getDeniedPrincipalsList(); + java.util.List + getDeniedPrincipalsList(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -105,13 +85,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @return The count of deniedPrincipals. */ int getDeniedPrincipalsCount(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -148,14 +125,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ java.lang.String getDeniedPrincipals(int index); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -192,15 +166,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_principals = 1; - * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index); + com.google.protobuf.ByteString + getDeniedPrincipalsBytes(int index); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -212,13 +184,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - java.util.List getExceptionPrincipalsList(); + java.util.List + getExceptionPrincipalsList(); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -230,13 +200,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @return The count of exceptionPrincipals. */ int getExceptionPrincipalsCount(); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -248,14 +215,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ java.lang.String getExceptionPrincipals(int index); /** - * - * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -267,15 +231,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index); + com.google.protobuf.ByteString + getExceptionPrincipalsBytes(int index); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -284,13 +246,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - java.util.List getDeniedPermissionsList(); + java.util.List + getDeniedPermissionsList(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -299,13 +259,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @return The count of deniedPermissions. */ int getDeniedPermissionsCount(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -314,14 +271,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ java.lang.String getDeniedPermissions(int index); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -330,15 +284,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string denied_permissions = 3; - * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - com.google.protobuf.ByteString getDeniedPermissionsBytes(int index); + com.google.protobuf.ByteString + getDeniedPermissionsBytes(int index); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -349,13 +301,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - java.util.List getExceptionPermissionsList(); + java.util.List + getExceptionPermissionsList(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -366,13 +316,10 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @return The count of exceptionPermissions. */ int getExceptionPermissionsCount(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -383,14 +330,11 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ java.lang.String getExceptionPermissions(int index); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -401,15 +345,13 @@ public interface DenyRuleOrBuilder
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - com.google.protobuf.ByteString getExceptionPermissionsBytes(int index); + com.google.protobuf.ByteString + getExceptionPermissionsBytes(int index); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -423,13 +365,10 @@ public interface DenyRuleOrBuilder
    * 
* * .google.type.Expr denial_condition = 5; - * * @return Whether the denialCondition field is set. */ boolean hasDenialCondition(); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -443,13 +382,10 @@ public interface DenyRuleOrBuilder
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ com.google.type.Expr getDenialCondition(); /** - * - * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
new file mode 100644
index 0000000000..8cadda2b86
--- /dev/null
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
@@ -0,0 +1,58 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2beta/deny.proto
+
+package com.google.iam.v2beta;
+
+public final class DenyRuleProto {
+  private DenyRuleProto() {}
+  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_iam_v2beta_DenyRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_DenyRule_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\034google/iam/v2beta/deny.proto\022\021google.i" +
+      "am.v2beta\032\026google/type/expr.proto\"\253\001\n\010De" +
+      "nyRule\022\031\n\021denied_principals\030\001 \003(\t\022\034\n\024exc" +
+      "eption_principals\030\002 \003(\t\022\032\n\022denied_permis" +
+      "sions\030\003 \003(\t\022\035\n\025exception_permissions\030\004 \003" +
+      "(\t\022+\n\020denial_condition\030\005 \001(\0132\021.google.ty" +
+      "pe.ExprB\222\001\n\025com.google.iam.v2betaB\rDenyR" +
+      "uleProtoP\001Z4google.golang.org/genproto/g" +
+      "oogleapis/iam/v2beta;iam\252\002\027Google.Cloud." +
+      "Iam.V2Beta\312\002\027Google\\Cloud\\Iam\\V2betab\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.type.ExprProto.getDescriptor(),
+        });
+    internal_static_google_iam_v2beta_DenyRule_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_DenyRule_descriptor,
+        new java.lang.String[] { "DeniedPrincipals", "ExceptionPrincipals", "DeniedPermissions", "ExceptionPermissions", "DenialCondition", });
+    com.google.type.ExprProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
similarity index 70%
rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
index b579600e91..afe2a5238e 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
@@ -1,77 +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/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
- *
- *
  * 
  * Request message for `GetPolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.GetPolicyRequest} */ -public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.GetPolicyRequest) GetPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.GetPolicyRequest.class, - com.google.iam.v2beta.GetPolicyRequest.Builder.class); + com.google.iam.v2beta.GetPolicyRequest.class, com.google.iam.v2beta.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -83,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -92,15 +71,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 policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -112,15 +90,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 { @@ -129,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +119,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_); } @@ -165,14 +144,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.iam.v2beta.GetPolicyRequest)) { return super.equals(obj); } com.google.iam.v2beta.GetPolicyRequest other = (com.google.iam.v2beta.GetPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,148 +171,142 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2beta.GetPolicyRequest 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.iam.v2beta.GetPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v2beta.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v2beta.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetPolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.GetPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.GetPolicyRequest) com.google.iam.v2beta.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.GetPolicyRequest.class, - com.google.iam.v2beta.GetPolicyRequest.Builder.class); + com.google.iam.v2beta.GetPolicyRequest.class, com.google.iam.v2beta.GetPolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.GetPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override @@ -351,50 +325,55 @@ public com.google.iam.v2beta.GetPolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.GetPolicyRequest buildPartial() { - com.google.iam.v2beta.GetPolicyRequest result = - new com.google.iam.v2beta.GetPolicyRequest(this); - result.name_ = name_; + com.google.iam.v2beta.GetPolicyRequest result = new com.google.iam.v2beta.GetPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @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) { + 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.iam.v2beta.GetPolicyRequest) { - return mergeFrom((com.google.iam.v2beta.GetPolicyRequest) other); + return mergeFrom((com.google.iam.v2beta.GetPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -405,6 +384,7 @@ public Builder mergeFrom(com.google.iam.v2beta.GetPolicyRequest other) { if (other == com.google.iam.v2beta.GetPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,11 +433,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -471,13 +448,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; @@ -486,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -499,14 +474,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 { @@ -514,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -527,22 +501,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -554,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(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -577,23 +544,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.GetPolicyRequest) private static final com.google.iam.v2beta.GetPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.GetPolicyRequest(); } @@ -617,27 +582,27 @@ public static com.google.iam.v2beta.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java similarity index 68% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java index def786214b..85720166a6 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface GetPolicyRequestOrBuilder - extends +public interface GetPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.GetPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -37,13 +19,10 @@ public interface GetPolicyRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -55,8 +34,8 @@ public interface GetPolicyRequestOrBuilder
    * 
* * 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/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java similarity index 71% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java index c66f7d36cd..c7b7ed1081 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Request message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesRequest} */ -public final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.ListPoliciesRequest) ListPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPoliciesRequest.newBuilder() to construct. private ListPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,35 +26,33 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesRequest.class, - com.google.iam.v2beta.ListPoliciesRequest.Builder.class); + com.google.iam.v2beta.ListPoliciesRequest.class, com.google.iam.v2beta.ListPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -86,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -95,15 +74,14 @@ 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 that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -117,15 +95,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -134,17 +113,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** - * - * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -153,17 +129,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,30 +146,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; } } /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -204,7 +178,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,7 +213,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_); @@ -252,17 +227,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.iam.v2beta.ListPoliciesRequest)) { return super.equals(obj); } - com.google.iam.v2beta.ListPoliciesRequest other = - (com.google.iam.v2beta.ListPoliciesRequest) obj; + com.google.iam.v2beta.ListPoliciesRequest other = (com.google.iam.v2beta.ListPoliciesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,152 +262,144 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.ListPoliciesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.ListPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2beta.ListPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesRequest} */ - 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.iam.v2beta.ListPoliciesRequest) com.google.iam.v2beta.ListPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesRequest.class, - com.google.iam.v2beta.ListPoliciesRequest.Builder.class); + com.google.iam.v2beta.ListPoliciesRequest.class, com.google.iam.v2beta.ListPoliciesRequest.Builder.class); } // Construct using com.google.iam.v2beta.ListPoliciesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override @@ -449,52 +418,61 @@ public com.google.iam.v2beta.ListPoliciesRequest build() { @java.lang.Override public com.google.iam.v2beta.ListPoliciesRequest buildPartial() { - com.google.iam.v2beta.ListPoliciesRequest result = - new com.google.iam.v2beta.ListPoliciesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + com.google.iam.v2beta.ListPoliciesRequest result = new com.google.iam.v2beta.ListPoliciesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.ListPoliciesRequest) { - return mergeFrom((com.google.iam.v2beta.ListPoliciesRequest) other); + return mergeFrom((com.google.iam.v2beta.ListPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -505,6 +483,7 @@ public Builder mergeFrom(com.google.iam.v2beta.ListPoliciesRequest other) { if (other == com.google.iam.v2beta.ListPoliciesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -512,6 +491,7 @@ public Builder mergeFrom(com.google.iam.v2beta.ListPoliciesRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -540,31 +520,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -574,11 +550,10 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -592,13 +567,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -607,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -622,14 +595,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -637,8 +611,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -652,22 +624,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -681,18 +649,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -706,32 +671,27 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -739,38 +699,33 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -778,21 +733,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -801,22 +754,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -824,71 +776,60 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +839,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.ListPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.ListPoliciesRequest) private static final com.google.iam.v2beta.ListPoliciesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.ListPoliciesRequest(); } @@ -912,27 +853,27 @@ public static com.google.iam.v2beta.ListPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.ListPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java similarity index 75% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java index 3090b50243..72c4ec14f6 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface ListPoliciesRequestOrBuilder - extends +public interface ListPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.ListPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -39,13 +21,10 @@ public interface ListPoliciesRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -59,49 +38,41 @@ public interface ListPoliciesRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java similarity index 72% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java index b7559c5045..44041e1889 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Response message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesResponse} */ -public final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.ListPoliciesResponse) ListPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPoliciesResponse.newBuilder() to construct. private ListPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,33 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesResponse.class, - com.google.iam.v2beta.ListPoliciesResponse.Builder.class); + com.google.iam.v2beta.ListPoliciesResponse.class, com.google.iam.v2beta.ListPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List policies_; /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -84,8 +64,6 @@ public java.util.List getPoliciesList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -93,13 +71,11 @@ public java.util.List getPoliciesList() { * repeated .google.iam.v2beta.Policy policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPoliciesOrBuilderList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -111,8 +87,6 @@ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -124,8 +98,6 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { return policies_.get(index); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -133,22 +105,21 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { * repeated .google.iam.v2beta.Policy policies = 1; */ @java.lang.Override - public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( + int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +128,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 page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * 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 { @@ -189,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +171,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 < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -218,7 +189,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +203,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.iam.v2beta.ListPoliciesResponse)) { return super.equals(obj); } - com.google.iam.v2beta.ListPoliciesResponse other = - (com.google.iam.v2beta.ListPoliciesResponse) obj; + com.google.iam.v2beta.ListPoliciesResponse other = (com.google.iam.v2beta.ListPoliciesResponse) obj; - if (!getPoliciesList().equals(other.getPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPoliciesList() + .equals(other.getPoliciesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,139 +236,134 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.ListPoliciesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.ListPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2beta.ListPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesResponse} */ - 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.iam.v2beta.ListPoliciesResponse) com.google.iam.v2beta.ListPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesResponse.class, - com.google.iam.v2beta.ListPoliciesResponse.Builder.class); + com.google.iam.v2beta.ListPoliciesResponse.class, com.google.iam.v2beta.ListPoliciesResponse.Builder.class); } // Construct using com.google.iam.v2beta.ListPoliciesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); } else { @@ -404,14 +372,13 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override @@ -430,9 +397,14 @@ public com.google.iam.v2beta.ListPoliciesResponse build() { @java.lang.Override public com.google.iam.v2beta.ListPoliciesResponse buildPartial() { - com.google.iam.v2beta.ListPoliciesResponse result = - new com.google.iam.v2beta.ListPoliciesResponse(this); - int from_bitField0_ = bitField0_; + com.google.iam.v2beta.ListPoliciesResponse result = new com.google.iam.v2beta.ListPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2beta.ListPoliciesResponse result) { if (policiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { policies_ = java.util.Collections.unmodifiableList(policies_); @@ -442,48 +414,51 @@ public com.google.iam.v2beta.ListPoliciesResponse buildPartial() { } else { result.policies_ = policiesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @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) { + 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.iam.v2beta.ListPoliciesResponse) { - return mergeFrom((com.google.iam.v2beta.ListPoliciesResponse) other); + return mergeFrom((com.google.iam.v2beta.ListPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -510,10 +485,9 @@ public Builder mergeFrom(com.google.iam.v2beta.ListPoliciesResponse other) { policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPoliciesFieldBuilder() : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -521,6 +495,7 @@ public Builder mergeFrom(com.google.iam.v2beta.ListPoliciesResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -549,31 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.iam.v2beta.Policy m = - input.readMessage(com.google.iam.v2beta.Policy.parser(), extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.iam.v2beta.Policy m = + input.readMessage( + com.google.iam.v2beta.Policy.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,28 +557,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List policies_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder> - policiesBuilder_; + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policiesBuilder_; /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -619,8 +586,6 @@ public java.util.List getPoliciesList() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -635,8 +600,6 @@ public int getPoliciesCount() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -651,15 +614,14 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder setPolicies(int index, com.google.iam.v2beta.Policy value) { + public Builder setPolicies( + int index, com.google.iam.v2beta.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -673,15 +635,14 @@ public Builder setPolicies(int index, com.google.iam.v2beta.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder setPolicies(int index, com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder setPolicies( + int index, com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); @@ -692,8 +653,6 @@ public Builder setPolicies(int index, com.google.iam.v2beta.Policy.Builder build return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -714,15 +673,14 @@ public Builder addPolicies(com.google.iam.v2beta.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies(int index, com.google.iam.v2beta.Policy value) { + public Builder addPolicies( + int index, com.google.iam.v2beta.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -736,15 +694,14 @@ public Builder addPolicies(int index, com.google.iam.v2beta.Policy value) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies(com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder addPolicies( + com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); @@ -755,15 +712,14 @@ public Builder addPolicies(com.google.iam.v2beta.Policy.Builder builderForValue) return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies(int index, com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder addPolicies( + int index, com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); @@ -774,8 +730,6 @@ public Builder addPolicies(int index, com.google.iam.v2beta.Policy.Builder build return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -786,7 +740,8 @@ public Builder addAllPolicies( java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -794,8 +749,6 @@ public Builder addAllPolicies( return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -813,8 +766,6 @@ public Builder clearPolicies() { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -832,44 +783,39 @@ public Builder removePolicies(int index) { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.Policy.Builder getPoliciesBuilder(int index) { + public com.google.iam.v2beta.Policy.Builder getPoliciesBuilder( + int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { + public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( + int index) { if (policiesBuilder_ == null) { - return policies_.get(index); - } else { + return policies_.get(index); } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -877,8 +823,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -886,47 +830,42 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { * repeated .google.iam.v2beta.Policy policies = 1; */ public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder() - .addBuilder(com.google.iam.v2beta.Policy.getDefaultInstance()); + return getPoliciesFieldBuilder().addBuilder( + com.google.iam.v2beta.Policy.getDefaultInstance()); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder(int index) { - return getPoliciesFieldBuilder() - .addBuilder(index, com.google.iam.v2beta.Policy.getDefaultInstance()); + public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder( + int index) { + return getPoliciesFieldBuilder().addBuilder( + index, com.google.iam.v2beta.Policy.getDefaultInstance()); } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public java.util.List getPoliciesBuilderList() { + public java.util.List + getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder> + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>( + policies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); policies_ = null; } return policiesBuilder_; @@ -934,21 +873,19 @@ public java.util.List getPoliciesBuilderLi private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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; @@ -957,22 +894,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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 { @@ -980,71 +916,60 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1054,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.ListPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.ListPoliciesResponse) private static final com.google.iam.v2beta.ListPoliciesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.ListPoliciesResponse(); } @@ -1068,27 +993,27 @@ public static com.google.iam.v2beta.ListPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.ListPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java similarity index 66% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java index 51d88d35e0..43961e421e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface ListPoliciesResponseOrBuilder - extends +public interface ListPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.ListPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - java.util.List getPoliciesList(); + java.util.List + getPoliciesList(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -44,8 +25,6 @@ public interface ListPoliciesResponseOrBuilder */ com.google.iam.v2beta.Policy getPolicies(int index); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -54,50 +33,43 @@ public interface ListPoliciesResponseOrBuilder */ int getPoliciesCount(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - java.util.List getPoliciesOrBuilderList(); + java.util.List + getPoliciesOrBuilderList(); /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index); + com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( + int index); /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java similarity index 68% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java index a2e1a8b7dc..ba0efb5140 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Data for an IAM policy.
  * 
* * Protobuf type {@code google.iam.v2beta.Policy} */ -public final class Policy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Policy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.Policy) PolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Policy() { name_ = ""; uid_ = ""; @@ -48,44 +30,45 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); 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.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_Policy_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -99,7 +82,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -108,15 +90,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; } } /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -130,15 +111,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -147,17 +129,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - private volatile java.lang.Object uid_; + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ @java.lang.Override @@ -166,30 +146,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -198,16 +178,14 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int KIND_FIELD_NUMBER = 3; - private volatile java.lang.Object kind_; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ @java.lang.Override @@ -216,29 +194,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -247,17 +225,15 @@ public com.google.protobuf.ByteString getKindBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object displayName_; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -266,30 +242,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -298,34 +274,32 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField annotations_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -334,21 +308,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -361,8 +334,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -371,17 +342,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
+      java.lang.String key,
+      /* nullable */
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -390,11 +361,11 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -402,10 +373,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 6;
-  private volatile java.lang.Object etag_;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -415,7 +385,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 6; - * * @return The etag. */ @java.lang.Override @@ -424,15 +393,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; } } /** - * - * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -442,15 +410,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 6; - * * @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 { @@ -461,15 +430,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -477,15 +442,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -493,32 +454,25 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -526,15 +480,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -542,32 +492,25 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -575,15 +518,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -591,25 +530,21 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return getDeleteTime(); + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } public static final int RULES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List rules_; /** - * - * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -622,8 +557,6 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -632,13 +565,11 @@ public java.util.List getRulesList() {
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRulesOrBuilderList() {
     return rules_;
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -651,8 +582,6 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -665,8 +594,6 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
     return rules_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -675,12 +602,12 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
+  public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
+      int index) {
     return rules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -692,7 +619,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_);
     }
@@ -705,8 +633,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetAnnotations(),
+        AnnotationsDefaultEntryHolder.defaultEntry,
+        5);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_);
     }
@@ -743,30 +675,34 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetAnnotations().getMap().entrySet()) {
-      com.google.protobuf.MapEntry annotations__ =
-          AnnotationsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__);
+    for (java.util.Map.Entry entry
+         : internalGetAnnotations().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, annotations__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getUpdateTime());
     }
     if (deleteTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getDeleteTime());
     }
     for (int i = 0; i < rules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, rules_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, rules_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -776,32 +712,42 @@ 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.iam.v2beta.Policy)) {
       return super.equals(obj);
     }
     com.google.iam.v2beta.Policy other = (com.google.iam.v2beta.Policy) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getUid().equals(other.getUid())) return false;
-    if (!getKind().equals(other.getKind())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
-    if (!getEtag().equals(other.getEtag())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getUid()
+        .equals(other.getUid())) return false;
+    if (!getKind()
+        .equals(other.getKind())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!internalGetAnnotations().equals(
+        other.internalGetAnnotations())) return false;
+    if (!getEtag()
+        .equals(other.getEtag())) 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 (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (hasDeleteTime() != other.hasDeleteTime()) return false;
     if (hasDeleteTime()) {
-      if (!getDeleteTime().equals(other.getDeleteTime())) return false;
+      if (!getDeleteTime()
+          .equals(other.getDeleteTime())) return false;
     }
-    if (!getRulesList().equals(other.getRulesList())) return false;
+    if (!getRulesList()
+        .equals(other.getRulesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -848,183 +794,175 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.Policy parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.Policy parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.Policy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.iam.v2beta.Policy parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.iam.v2beta.Policy parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.Policy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.Policy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.Policy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.Policy 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.iam.v2beta.Policy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.Policy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2beta.Policy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.iam.v2beta.Policy parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.iam.v2beta.Policy parseFrom(
+      com.google.protobuf.CodedInputStream 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.iam.v2beta.Policy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.iam.v2beta.Policy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Data for an IAM policy.
    * 
* * Protobuf type {@code google.iam.v2beta.Policy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.Policy) com.google.iam.v2beta.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); 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.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_Policy_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } // Construct using com.google.iam.v2beta.Policy.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - uid_ = ""; - kind_ = ""; - displayName_ = ""; - internalGetMutableAnnotations().clear(); etag_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - } else { - deleteTime_ = null; + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } if (rulesBuilder_ == null) { @@ -1033,12 +971,13 @@ public Builder clear() { rules_ = null; rulesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @@ -1059,79 +998,98 @@ public com.google.iam.v2beta.Policy build() { @java.lang.Override public com.google.iam.v2beta.Policy buildPartial() { com.google.iam.v2beta.Policy result = new com.google.iam.v2beta.Policy(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uid_ = uid_; - result.kind_ = kind_; - result.displayName_ = displayName_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.etag_ = etag_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (deleteTimeBuilder_ == null) { - result.deleteTime_ = deleteTime_; - } else { - result.deleteTime_ = deleteTimeBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v2beta.Policy result) { if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.iam.v2beta.Policy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.Policy) { - return mergeFrom((com.google.iam.v2beta.Policy) other); + return mergeFrom((com.google.iam.v2beta.Policy)other); } else { super.mergeFrom(other); return this; @@ -1142,23 +1100,30 @@ public Builder mergeFrom(com.google.iam.v2beta.Policy other) { if (other == com.google.iam.v2beta.Policy.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getKind().isEmpty()) { kind_ = other.kind_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -1174,7 +1139,7 @@ public Builder mergeFrom(com.google.iam.v2beta.Policy other) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); @@ -1187,11 +1152,10 @@ public Builder mergeFrom(com.google.iam.v2beta.Policy other) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000002); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRulesFieldBuilder() - : null; + bitField0_ = (bitField0_ & ~0x00000200); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -1223,84 +1187,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - break; - } // case 42 - case 50: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - com.google.iam.v2beta.PolicyRule m = - input.readMessage(com.google.iam.v2beta.PolicyRule.parser(), extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + com.google.iam.v2beta.PolicyRule m = + input.readMessage( + com.google.iam.v2beta.PolicyRule.parser(), + extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1310,13 +1270,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1330,13 +1287,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1345,8 +1302,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1360,14 +1315,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1375,8 +1331,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1390,22 +1344,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1419,18 +1369,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1444,38 +1391,34 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uid_ = ""; /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1484,22 +1427,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1507,85 +1449,72 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uid_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object kind_ = ""; /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -1594,21 +1523,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -1616,83 +1544,70 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setKind( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearKind() { - kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * - * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1701,22 +1616,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1724,71 +1638,60 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * - * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1797,27 +1700,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { - onChanged(); - ; if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1826,21 +1725,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1853,8 +1751,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1863,17 +1759,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
+        java.lang.String key,
+        /* nullable */
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1882,24 +1778,23 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
-      internalGetMutableAnnotations().getMutableMap().clear();
+      bitField0_ = (bitField0_ & ~0x00000010);
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1907,21 +1802,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
+      bitField0_ |= 0x00000010;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1929,20 +1826,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
+      bitField0_ |= 0x00000010;
       return this;
     }
     /**
-     *
-     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1950,15 +1844,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
+      bitField0_ |= 0x00000010;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1968,13 +1863,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 6;
-     *
      * @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;
@@ -1983,8 +1878,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1994,14 +1887,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; - * * @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 { @@ -2009,8 +1903,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2020,22 +1912,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 6; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2045,18 +1933,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 6; - * * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** - * - * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2066,75 +1951,54 @@ public Builder clearEtag() {
      * 
* * string etag = 6; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } 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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2142,141 +2006,114 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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(); + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.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_; @@ -2284,58 +2121,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2343,141 +2161,114 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2485,58 +2276,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { - return deleteTimeBuilder_ != null || deleteTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2544,165 +2316,132 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } deleteTime_ = value; - onChanged(); } else { deleteTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); - onChanged(); } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (deleteTime_ != null) { - deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; } - onChanged(); } else { deleteTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - onChanged(); - } else { - deleteTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } private java.util.List rules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000002; - } + bitField0_ |= 0x00000200; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.PolicyRule, - com.google.iam.v2beta.PolicyRule.Builder, - com.google.iam.v2beta.PolicyRuleOrBuilder> - rulesBuilder_; + com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder> rulesBuilder_; /** - * - * *
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2718,8 +2457,6 @@ public java.util.List getRulesList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2735,8 +2472,6 @@ public int getRulesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2752,8 +2487,6 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2761,7 +2494,8 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder setRules(int index, com.google.iam.v2beta.PolicyRule value) {
+    public Builder setRules(
+        int index, com.google.iam.v2beta.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2775,8 +2509,6 @@ public Builder setRules(int index, com.google.iam.v2beta.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2784,7 +2516,8 @@ public Builder setRules(int index, com.google.iam.v2beta.PolicyRule value) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder setRules(int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder setRules(
+        int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -2795,8 +2528,6 @@ public Builder setRules(int index, com.google.iam.v2beta.PolicyRule.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2818,8 +2549,6 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2827,7 +2556,8 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule value) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(int index, com.google.iam.v2beta.PolicyRule value) {
+    public Builder addRules(
+        int index, com.google.iam.v2beta.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2841,8 +2571,6 @@ public Builder addRules(int index, com.google.iam.v2beta.PolicyRule value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2850,7 +2578,8 @@ public Builder addRules(int index, com.google.iam.v2beta.PolicyRule value) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder addRules(
+        com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -2861,8 +2590,6 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2870,7 +2597,8 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule.Builder builderForValue
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder addRules(
+        int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -2881,8 +2609,6 @@ public Builder addRules(int index, com.google.iam.v2beta.PolicyRule.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2894,7 +2620,8 @@ public Builder addAllRules(
         java.lang.Iterable values) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, rules_);
         onChanged();
       } else {
         rulesBuilder_.addAllMessages(values);
@@ -2902,8 +2629,6 @@ public Builder addAllRules(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2914,7 +2639,7 @@ public Builder addAllRules(
     public Builder clearRules() {
       if (rulesBuilder_ == null) {
         rules_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000200);
         onChanged();
       } else {
         rulesBuilder_.clear();
@@ -2922,8 +2647,6 @@ public Builder clearRules() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2942,8 +2665,6 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2951,12 +2672,11 @@ public Builder removeRules(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(int index) {
+    public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(
+        int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2964,16 +2684,14 @@ public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
+    public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
+        int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);
-      } else {
+        return rules_.get(index);  } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2981,8 +2699,8 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public java.util.List
-        getRulesOrBuilderList() {
+    public java.util.List 
+         getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2990,8 +2708,6 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3000,12 +2716,10 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
     public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder()
-          .addBuilder(com.google.iam.v2beta.PolicyRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(
+          com.google.iam.v2beta.PolicyRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3013,13 +2727,12 @@ public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder() {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(int index) {
-      return getRulesFieldBuilder()
-          .addBuilder(index, com.google.iam.v2beta.PolicyRule.getDefaultInstance());
+    public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(
+        int index) {
+      return getRulesFieldBuilder().addBuilder(
+          index, com.google.iam.v2beta.PolicyRule.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -3027,29 +2740,27 @@ public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public java.util.List getRulesBuilderList() {
+    public java.util.List 
+         getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v2beta.PolicyRule,
-            com.google.iam.v2beta.PolicyRule.Builder,
-            com.google.iam.v2beta.PolicyRuleOrBuilder>
+        com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder> 
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.iam.v2beta.PolicyRule,
-                com.google.iam.v2beta.PolicyRule.Builder,
-                com.google.iam.v2beta.PolicyRuleOrBuilder>(
-                rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder>(
+                rules_,
+                ((bitField0_ & 0x00000200) != 0),
+                getParentForChildren(),
+                isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
-
     @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);
     }
 
@@ -3059,12 +2770,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.Policy)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.Policy)
   private static final com.google.iam.v2beta.Policy DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.Policy();
   }
@@ -3073,27 +2784,27 @@ public static com.google.iam.v2beta.Policy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Policy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Policy parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3108,4 +2819,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.Policy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
similarity index 64%
rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
index 766a87f7cb..24abdc5f6d 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
- *
- *
  * 
  * Metadata for long-running `Policy` operations.
  * 
* * Protobuf type {@code google.iam.v2beta.PolicyOperationMetadata} */ -public final class PolicyOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.PolicyOperationMetadata) PolicyOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyOperationMetadata.newBuilder() to construct. private PolicyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PolicyOperationMetadata() {} + private PolicyOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyOperationMetadata.class, - com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); + com.google.iam.v2beta.PolicyOperationMetadata.class, com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -83,14 +62,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -98,8 +74,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -108,11 +82,10 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -138,7 +112,8 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -148,17 +123,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.iam.v2beta.PolicyOperationMetadata)) { return super.equals(obj); } - com.google.iam.v2beta.PolicyOperationMetadata other = - (com.google.iam.v2beta.PolicyOperationMetadata) obj; + com.google.iam.v2beta.PolicyOperationMetadata other = (com.google.iam.v2beta.PolicyOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -180,152 +155,146 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.PolicyOperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.PolicyOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v2beta.PolicyOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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; } /** - * - * *
    * Metadata for long-running `Policy` operations.
    * 
* * Protobuf type {@code google.iam.v2beta.PolicyOperationMetadata} */ - 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.iam.v2beta.PolicyOperationMetadata) com.google.iam.v2beta.PolicyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyOperationMetadata.class, - com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); + com.google.iam.v2beta.PolicyOperationMetadata.class, com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } // Construct using com.google.iam.v2beta.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override @@ -344,54 +313,57 @@ public com.google.iam.v2beta.PolicyOperationMetadata build() { @java.lang.Override public com.google.iam.v2beta.PolicyOperationMetadata buildPartial() { - com.google.iam.v2beta.PolicyOperationMetadata result = - new com.google.iam.v2beta.PolicyOperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } + com.google.iam.v2beta.PolicyOperationMetadata result = new com.google.iam.v2beta.PolicyOperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.PolicyOperationMetadata) { - return mergeFrom((com.google.iam.v2beta.PolicyOperationMetadata) other); + return mergeFrom((com.google.iam.v2beta.PolicyOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -429,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,50 +423,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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(); } } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -507,35 +467,32 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - 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(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -544,22 +501,21 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -567,19 +523,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 1; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -587,13 +540,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -604,14 +555,11 @@ 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_; } } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -619,24 +567,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -646,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.PolicyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.PolicyOperationMetadata) private static final com.google.iam.v2beta.PolicyOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.PolicyOperationMetadata(); } @@ -660,27 +605,27 @@ public static com.google.iam.v2beta.PolicyOperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.PolicyOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java similarity index 59% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java index 11fc1dca82..ee8ec358aa 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyOperationMetadataOrBuilder - extends +public interface PolicyOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.PolicyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java similarity index 80% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java index fdfbab3396..75f332c62b 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyOrBuilder - extends +public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.Policy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -39,13 +21,10 @@ public interface PolicyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -59,93 +38,76 @@ public interface PolicyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -155,8 +117,6 @@ public interface PolicyOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -164,13 +124,15 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -178,10 +140,9 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -189,15 +150,12 @@ public interface PolicyOrBuilder
    *
    * map<string, string> annotations = 5;
    */
-
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -205,11 +163,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 5;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -219,13 +176,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 6; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -235,128 +189,93 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 6; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -364,10 +283,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  java.util.List getRulesList();
+  java.util.List 
+      getRulesList();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -377,8 +295,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.iam.v2beta.PolicyRule getRules(int index);
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -388,8 +304,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getRulesCount();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -397,10 +311,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  java.util.List getRulesOrBuilderList();
+  java.util.List 
+      getRulesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -408,5 +321,6 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index);
+  com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
new file mode 100644
index 0000000000..412d297f58
--- /dev/null
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
@@ -0,0 +1,225 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2beta/policy.proto
+
+package com.google.iam.v2beta;
+
+public final class PolicyProto {
+  private PolicyProto() {}
+  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_iam_v2beta_Policy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_Policy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_PolicyRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_GetPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_PolicyOperationMetadata_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\036google/iam/v2beta/policy.proto\022\021google" +
+      ".iam.v2beta\032\034google/api/annotations.prot" +
+      "o\032\027google/api/client.proto\032\037google/api/f" +
+      "ield_behavior.proto\032\034google/iam/v2beta/d" +
+      "eny.proto\032#google/longrunning/operations" +
+      ".proto\032\037google/protobuf/timestamp.proto\"" +
+      "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" +
+      "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" +
+      "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" +
+      "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" +
+      "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" +
+      "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" +
+      "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" +
+      "elete_time\030\t \001(\0132\032.google.protobuf.Times" +
+      "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" +
+      "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" +
+      "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" +
+      "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" +
+      ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" +
+      "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" +
+      "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " +
+      "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" +
+      "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" +
+      "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" +
+      "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" +
+      "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" +
+      "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" +
+      "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" +
+      "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" +
+      "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" +
+      "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" +
+      "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" +
+      "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" +
+      "icies\022&.google.iam.v2beta.ListPoliciesRe" +
+      "quest\032\'.google.iam.v2beta.ListPoliciesRe" +
+      "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies" +
+      "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam" +
+      ".v2beta.GetPolicyRequest\032\031.google.iam.v2" +
+      "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic" +
+      "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo" +
+      "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" +
+      "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be" +
+      "ta/{parent=policies/*/*}:\006policy\332A\027paren" +
+      "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe" +
+      "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google" +
+      ".iam.v2beta.UpdatePolicyRequest\032\035.google" +
+      ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/" +
+      "{policy.name=policies/*/*/*}:\006policy\312A!\n" +
+      "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del" +
+      "etePolicy\022&.google.iam.v2beta.DeletePoli" +
+      "cyRequest\032\035.google.longrunning.Operation" +
+      "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332" +
+      "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada" +
+      "ta\032F\312A\022iam.googleapis.com\322A.https://www." +
+      "googleapis.com/auth/cloud-platformB\220\001\n\025c" +
+      "om.google.iam.v2betaB\013PolicyProtoP\001Z4goo" +
+      "gle.golang.org/genproto/googleapis/iam/v" +
+      "2beta;iam\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Go" +
+      "ogle\\Cloud\\Iam\\V2betab\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.iam.v2beta.DenyRuleProto.getDescriptor(),
+          com.google.longrunning.OperationsProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_iam_v2beta_Policy_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2beta_Policy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_Policy_descriptor,
+        new java.lang.String[] { "Name", "Uid", "Kind", "DisplayName", "Annotations", "Etag", "CreateTime", "UpdateTime", "DeleteTime", "Rules", });
+    internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor =
+      internal_static_google_iam_v2beta_Policy_descriptor.getNestedTypes().get(0);
+    internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_iam_v2beta_PolicyRule_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_PolicyRule_descriptor,
+        new java.lang.String[] { "DenyRule", "Description", "Kind", });
+    internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor,
+        new java.lang.String[] { "Policies", "NextPageToken", });
+    internal_static_google_iam_v2beta_GetPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_GetPolicyRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor,
+        new java.lang.String[] { "Parent", "Policy", "PolicyId", });
+    internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor,
+        new java.lang.String[] { "Policy", });
+    internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor,
+        new java.lang.String[] { "Name", "Etag", });
+    internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor,
+        new java.lang.String[] { "CreateTime", });
+    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.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.iam.v2beta.DenyRuleProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
similarity index 68%
rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
index 27084c7ca3..7a6aa73089 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
@@ -1,82 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
- *
- *
  * 
  * A single rule in a `Policy`.
  * 
* * Protobuf type {@code google.iam.v2beta.PolicyRule} */ -public final class PolicyRule extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyRule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.PolicyRule) PolicyRuleOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyRule.newBuilder() to construct. private PolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyRule() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.PolicyRule.class, com.google.iam.v2beta.PolicyRule.Builder.class); } private int kindCase_ = 0; private java.lang.Object kind_; - public enum KindCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DENY_RULE(2), KIND_NOT_SET(0); private final int value; - private KindCase(int value) { this.value = value; } @@ -92,34 +71,29 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 2: - return DENY_RULE; - case 0: - return KIND_NOT_SET; - default: - return null; + case 2: return DENY_RULE; + case 0: return KIND_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public static final int DENY_RULE_FIELD_NUMBER = 2; /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -127,26 +101,21 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return The denyRule. */ @java.lang.Override public com.google.iam.v2beta.DenyRule getDenyRule() { if (kindCase_ == 2) { - return (com.google.iam.v2beta.DenyRule) kind_; + return (com.google.iam.v2beta.DenyRule) kind_; } return com.google.iam.v2beta.DenyRule.getDefaultInstance(); } /** - * - * *
    * A rule for a deny policy.
    * 
@@ -156,23 +125,21 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { @java.lang.Override public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { if (kindCase_ == 2) { - return (com.google.iam.v2beta.DenyRule) kind_; + return (com.google.iam.v2beta.DenyRule) kind_; } return com.google.iam.v2beta.DenyRule.getDefaultInstance(); } public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -181,30 +148,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -213,7 +180,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -245,9 +212,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.iam.v2beta.DenyRule) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.iam.v2beta.DenyRule) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,18 +223,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v2beta.PolicyRule)) { return super.equals(obj); } com.google.iam.v2beta.PolicyRule other = (com.google.iam.v2beta.PolicyRule) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 2: - if (!getDenyRule().equals(other.getDenyRule())) return false; + if (!getDenyRule() + .equals(other.getDenyRule())) return false; break; case 0: default: @@ -299,152 +267,147 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.PolicyRule parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v2beta.PolicyRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v2beta.PolicyRule parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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 single rule in a `Policy`.
    * 
* * Protobuf type {@code google.iam.v2beta.PolicyRule} */ - 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.iam.v2beta.PolicyRule) com.google.iam.v2beta.PolicyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyRule.class, - com.google.iam.v2beta.PolicyRule.Builder.class); + com.google.iam.v2beta.PolicyRule.class, com.google.iam.v2beta.PolicyRule.Builder.class); } // Construct using com.google.iam.v2beta.PolicyRule.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (denyRuleBuilder_ != null) { denyRuleBuilder_.clear(); } description_ = ""; - kindCase_ = 0; kind_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_PolicyRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override @@ -464,56 +427,64 @@ public com.google.iam.v2beta.PolicyRule build() { @java.lang.Override public com.google.iam.v2beta.PolicyRule buildPartial() { com.google.iam.v2beta.PolicyRule result = new com.google.iam.v2beta.PolicyRule(this); - if (kindCase_ == 2) { - if (denyRuleBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = denyRuleBuilder_.build(); - } - } - result.description_ = description_; - result.kindCase_ = kindCase_; + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.PolicyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 2 && + denyRuleBuilder_ != null) { + result.kind_ = denyRuleBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.PolicyRule) { - return mergeFrom((com.google.iam.v2beta.PolicyRule) other); + return mergeFrom((com.google.iam.v2beta.PolicyRule)other); } else { super.mergeFrom(other); return this; @@ -524,18 +495,17 @@ public Builder mergeFrom(com.google.iam.v2beta.PolicyRule other) { if (other == com.google.iam.v2beta.PolicyRule.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } switch (other.getKindCase()) { - case DENY_RULE: - { - mergeDenyRule(other.getDenyRule()); - break; - } - case KIND_NOT_SET: - { - break; - } + case DENY_RULE: { + mergeDenyRule(other.getDenyRule()); + break; + } + case KIND_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -563,25 +533,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDenyRuleFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getDenyRuleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,12 +560,12 @@ public Builder mergeFrom( } // finally return this; } - private int kindCase_ = 0; private java.lang.Object kind_; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public Builder clearKind() { @@ -606,20 +575,16 @@ public Builder clearKind() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, - com.google.iam.v2beta.DenyRule.Builder, - com.google.iam.v2beta.DenyRuleOrBuilder> - denyRuleBuilder_; + com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder> denyRuleBuilder_; /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -627,14 +592,11 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return The denyRule. */ @java.lang.Override @@ -652,8 +614,6 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -674,15 +634,14 @@ public Builder setDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; */ - public Builder setDenyRule(com.google.iam.v2beta.DenyRule.Builder builderForValue) { + public Builder setDenyRule( + com.google.iam.v2beta.DenyRule.Builder builderForValue) { if (denyRuleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -693,8 +652,6 @@ public Builder setDenyRule(com.google.iam.v2beta.DenyRule.Builder builderForValu return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -703,11 +660,10 @@ public Builder setDenyRule(com.google.iam.v2beta.DenyRule.Builder builderForValu */ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { if (denyRuleBuilder_ == null) { - if (kindCase_ == 2 && kind_ != com.google.iam.v2beta.DenyRule.getDefaultInstance()) { - kind_ = - com.google.iam.v2beta.DenyRule.newBuilder((com.google.iam.v2beta.DenyRule) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 2 && + kind_ != com.google.iam.v2beta.DenyRule.getDefaultInstance()) { + kind_ = com.google.iam.v2beta.DenyRule.newBuilder((com.google.iam.v2beta.DenyRule) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -723,8 +679,6 @@ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -748,8 +702,6 @@ public Builder clearDenyRule() { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -760,8 +712,6 @@ public com.google.iam.v2beta.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -780,8 +730,6 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -789,45 +737,39 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { * .google.iam.v2beta.DenyRule deny_rule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, - com.google.iam.v2beta.DenyRule.Builder, - com.google.iam.v2beta.DenyRuleOrBuilder> + com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder> getDenyRuleFieldBuilder() { if (denyRuleBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.iam.v2beta.DenyRule.getDefaultInstance(); } - denyRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, - com.google.iam.v2beta.DenyRule.Builder, - com.google.iam.v2beta.DenyRuleOrBuilder>( - (com.google.iam.v2beta.DenyRule) kind_, getParentForChildren(), isClean()); + denyRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder>( + (com.google.iam.v2beta.DenyRule) kind_, + getParentForChildren(), + isClean()); kind_ = null; } kindCase_ = 2; onChanged(); - ; return denyRuleBuilder_; } private java.lang.Object description_ = ""; /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -836,22 +778,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -859,71 +800,60 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * - * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,12 +863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v2beta.PolicyRule) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.PolicyRule) private static final com.google.iam.v2beta.PolicyRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v2beta.PolicyRule(); } @@ -947,27 +877,27 @@ public static com.google.iam.v2beta.PolicyRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,4 +912,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.PolicyRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java similarity index 64% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java index 1c71f86bff..bb0f894226 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyRuleOrBuilder - extends +public interface PolicyRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.PolicyRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return Whether the denyRule field is set. */ boolean hasDenyRule(); /** - * - * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; - * * @return The denyRule. */ com.google.iam.v2beta.DenyRule getDenyRule(); /** - * - * *
    * A rule for a deny policy.
    * 
@@ -59,31 +35,26 @@ public interface PolicyRuleOrBuilder com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder(); /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); public com.google.iam.v2beta.PolicyRule.KindCase getKindCase(); } diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java similarity index 68% rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java index 95eabcdd8b..0b82990b39 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java +++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java @@ -1,75 +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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** - * - * *
  * Request message for `UpdatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePolicyRequest() {} + private UpdatePolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.UpdatePolicyRequest.class, - com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); + com.google.iam.v2beta.UpdatePolicyRequest.class, com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2beta.Policy policy_; /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -78,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -86,8 +65,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -96,7 +73,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -104,8 +80,6 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -117,11 +91,10 @@ public com.google.iam.v2beta.Policy getPolicy() {
    */
   @java.lang.Override
   public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
-    return getPolicy();
+    return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,7 +106,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -147,7 +121,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -157,17 +132,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.iam.v2beta.UpdatePolicyRequest)) {
       return super.equals(obj);
     }
-    com.google.iam.v2beta.UpdatePolicyRequest other =
-        (com.google.iam.v2beta.UpdatePolicyRequest) obj;
+    com.google.iam.v2beta.UpdatePolicyRequest other = (com.google.iam.v2beta.UpdatePolicyRequest) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy().equals(other.getPolicy())) return false;
+      if (!getPolicy()
+          .equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -189,152 +164,146 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest 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.iam.v2beta.UpdatePolicyRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.iam.v2beta.UpdatePolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `UpdatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.UpdatePolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.UpdatePolicyRequest) com.google.iam.v2beta.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.UpdatePolicyRequest.class, - com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); + com.google.iam.v2beta.UpdatePolicyRequest.class, com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; + bitField0_ = 0; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); policyBuilder_ = null; } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto - .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override @@ -353,54 +322,57 @@ public com.google.iam.v2beta.UpdatePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.UpdatePolicyRequest buildPartial() { - com.google.iam.v2beta.UpdatePolicyRequest result = - new com.google.iam.v2beta.UpdatePolicyRequest(this); - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.build(); - } + com.google.iam.v2beta.UpdatePolicyRequest result = new com.google.iam.v2beta.UpdatePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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.iam.v2beta.UpdatePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.UpdatePolicyRequest) other); + return mergeFrom((com.google.iam.v2beta.UpdatePolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -438,19 +410,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,16 +432,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v2beta.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, - com.google.iam.v2beta.Policy.Builder, - com.google.iam.v2beta.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -478,15 +446,12 @@ public Builder mergeFrom(
      * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -495,7 +460,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2beta.Policy getPolicy() { @@ -506,8 +470,6 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -523,16 +485,14 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
           throw new NullPointerException();
         }
         policy_ = value;
-        onChanged();
       } else {
         policyBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -542,19 +502,18 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
      *
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v2beta.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
-        onChanged();
       } else {
         policyBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -566,22 +525,21 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
      */
     public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
       if (policyBuilder_ == null) {
-        if (policy_ != null) {
-          policy_ =
-              com.google.iam.v2beta.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000001) != 0) &&
+          policy_ != null &&
+          policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) {
+          getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
         }
-        onChanged();
       } else {
         policyBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -592,19 +550,16 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     public Builder clearPolicy() {
-      if (policyBuilder_ == null) {
-        policy_ = null;
-        onChanged();
-      } else {
-        policy_ = null;
+      bitField0_ = (bitField0_ & ~0x00000001);
+      policy_ = null;
+      if (policyBuilder_ != null) {
+        policyBuilder_.dispose();
         policyBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -615,13 +570,11 @@ public Builder clearPolicy() {
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() {
-
+      bitField0_ |= 0x00000001;
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -635,12 +588,11 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v2beta.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -651,24 +603,21 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v2beta.Policy,
-            com.google.iam.v2beta.Policy.Builder,
-            com.google.iam.v2beta.PolicyOrBuilder>
+        com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v2beta.Policy,
-                com.google.iam.v2beta.Policy.Builder,
-                com.google.iam.v2beta.PolicyOrBuilder>(
-                getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -678,12 +627,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.UpdatePolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.UpdatePolicyRequest)
   private static final com.google.iam.v2beta.UpdatePolicyRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.UpdatePolicyRequest();
   }
@@ -692,27 +641,27 @@ public static com.google.iam.v2beta.UpdatePolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdatePolicyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdatePolicyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -727,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.UpdatePolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
similarity index 69%
rename from java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
index ffbd2892e1..2511387687 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
+++ b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.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/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
-public interface UpdatePolicyRequestOrBuilder
-    extends
+public interface UpdatePolicyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2beta.UpdatePolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -34,13 +16,10 @@ public interface UpdatePolicyRequestOrBuilder
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -49,13 +28,10 @@ public interface UpdatePolicyRequestOrBuilder
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v2beta.Policy getPolicy(); /** - * - * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
diff --git a/java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
similarity index 100%
rename from java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
diff --git a/java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto
similarity index 100%
rename from java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto
rename to owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto

From 1189b52a332d2705e53f85f1448363f84775f2cf Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Wed, 22 Feb 2023 16:22:33 +0000
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 .../java/com/google/iam/v1/IAMPolicyGrpc.java |  385 +++--
 .../java/com/google/iam/v2/PoliciesGrpc.java  |  813 +++++++++
 .../com/google/iam/v2beta/PoliciesGrpc.java   |  815 +++++++++
 .../java/com/google/iam/v1/AuditConfig.java   |  451 +++--
 .../com/google/iam/v1/AuditConfigDelta.java   |  566 ++++---
 .../iam/v1/AuditConfigDeltaOrBuilder.java     |   51 +-
 .../google/iam/v1/AuditConfigOrBuilder.java   |   45 +-
 .../com/google/iam/v1/AuditLogConfig.java     |  449 +++--
 .../iam/v1/AuditLogConfigOrBuilder.java       |   42 +-
 .../main/java/com/google/iam/v1/Binding.java  |  468 +++---
 .../java/com/google/iam/v1/BindingDelta.java  |  559 ++++---
 .../google/iam/v1/BindingDeltaOrBuilder.java  |   50 +-
 .../com/google/iam/v1/BindingOrBuilder.java   |   53 +-
 .../google/iam/v1/GetIamPolicyRequest.java    |  431 +++--
 .../iam/v1/GetIamPolicyRequestOrBuilder.java  |   43 +-
 .../com/google/iam/v1/GetPolicyOptions.java   |  272 +--
 .../iam/v1/GetPolicyOptionsOrBuilder.java     |   21 +-
 .../com/google/iam/v1/IamPolicyProto.java     |  149 ++
 .../java/com/google/iam/v1/OptionsProto.java  |   65 +
 .../main/java/com/google/iam/v1/Policy.java   |  605 ++++---
 .../java/com/google/iam/v1/PolicyDelta.java   |  529 +++---
 .../google/iam/v1/PolicyDeltaOrBuilder.java   |   55 +-
 .../com/google/iam/v1/PolicyOrBuilder.java    |   62 +-
 .../java/com/google/iam/v1/PolicyProto.java   |  161 ++
 .../google/iam/v1/SetIamPolicyRequest.java    |  513 +++---
 .../iam/v1/SetIamPolicyRequestOrBuilder.java  |   51 +-
 .../iam/v1/TestIamPermissionsRequest.java     |  447 +++--
 .../TestIamPermissionsRequestOrBuilder.java   |   53 +-
 .../iam/v1/TestIamPermissionsResponse.java    |  347 ++--
 .../TestIamPermissionsResponseOrBuilder.java  |   36 +-
 .../google/iam/v2/CreatePolicyRequest.java    |  468 +++---
 .../iam/v2/CreatePolicyRequestOrBuilder.java  |   44 +-
 .../google/iam/v2/DeletePolicyRequest.java    |  386 +++--
 .../iam/v2/DeletePolicyRequestOrBuilder.java  |   36 +-
 .../main/java/com/google/iam/v2/DenyRule.java |  712 +++++---
 .../com/google/iam/v2/DenyRuleOrBuilder.java  |   98 +-
 .../java/com/google/iam/v2/DenyRuleProto.java |   75 +
 .../com/google/iam/v2/GetPolicyRequest.java   |  308 ++--
 .../iam/v2/GetPolicyRequestOrBuilder.java     |   27 +-
 .../google/iam/v2/ListPoliciesRequest.java    |  419 +++--
 .../iam/v2/ListPoliciesRequestOrBuilder.java  |   39 +-
 .../google/iam/v2/ListPoliciesResponse.java   |  476 +++---
 .../iam/v2/ListPoliciesResponseOrBuilder.java |   46 +-
 .../main/java/com/google/iam/v2/Policy.java   | 1460 ++++++++++-------
 .../iam/v2/PolicyOperationMetadata.java       |  338 ++--
 .../v2/PolicyOperationMetadataOrBuilder.java  |   26 +-
 .../com/google/iam/v2/PolicyOrBuilder.java    |  172 +-
 .../java/com/google/iam/v2/PolicyProto.java   |  256 +++
 .../java/com/google/iam/v2/PolicyRule.java    |  425 +++--
 .../google/iam/v2/PolicyRuleOrBuilder.java    |   35 +-
 .../google/iam/v2/UpdatePolicyRequest.java    |  327 ++--
 .../iam/v2/UpdatePolicyRequestOrBuilder.java  |   26 +-
 .../src/main/proto/google/iam/v2/deny.proto   |    0
 .../src/main/proto/google/iam/v2/policy.proto |    0
 .../iam/v2beta/CreatePolicyRequest.java       |  473 +++---
 .../v2beta/CreatePolicyRequestOrBuilder.java  |   44 +-
 .../iam/v2beta/DeletePolicyRequest.java       |  390 +++--
 .../v2beta/DeletePolicyRequestOrBuilder.java  |   36 +-
 .../java/com/google/iam/v2beta/DenyRule.java  |  724 +++++---
 .../google/iam/v2beta/DenyRuleOrBuilder.java  |   98 +-
 .../com/google/iam/v2beta/DenyRuleProto.java  |   77 +
 .../google/iam/v2beta/GetPolicyRequest.java   |  311 ++--
 .../iam/v2beta/GetPolicyRequestOrBuilder.java |   27 +-
 .../iam/v2beta/ListPoliciesRequest.java       |  423 +++--
 .../v2beta/ListPoliciesRequestOrBuilder.java  |   39 +-
 .../iam/v2beta/ListPoliciesResponse.java      |  480 +++---
 .../v2beta/ListPoliciesResponseOrBuilder.java |   46 +-
 .../java/com/google/iam/v2beta/Policy.java    | 1391 ++++++++++------
 .../iam/v2beta/PolicyOperationMetadata.java   |  338 ++--
 .../PolicyOperationMetadataOrBuilder.java     |   26 +-
 .../google/iam/v2beta/PolicyOrBuilder.java    |  163 +-
 .../com/google/iam/v2beta/PolicyProto.java    |  257 +++
 .../com/google/iam/v2beta/PolicyRule.java     |  440 +++--
 .../iam/v2beta/PolicyRuleOrBuilder.java       |   35 +-
 .../iam/v2beta/UpdatePolicyRequest.java       |  332 ++--
 .../v2beta/UpdatePolicyRequestOrBuilder.java  |   26 +-
 .../main/proto/google/iam/v2beta/deny.proto   |    0
 .../main/proto/google/iam/v2beta/policy.proto |    0
 .../com/google/iam/v1/IamPolicyProto.java     |  131 --
 .../java/com/google/iam/v1/OptionsProto.java  |   52 -
 .../java/com/google/iam/v1/PolicyProto.java   |  144 --
 .../java/com/google/iam/v2/PoliciesGrpc.java  |  683 --------
 .../java/com/google/iam/v2/DenyRuleProto.java |   57 -
 .../java/com/google/iam/v2/PolicyProto.java   |  224 ---
 .../com/google/iam/v2beta/PoliciesGrpc.java   |  683 --------
 .../com/google/iam/v2beta/DenyRuleProto.java  |   58 -
 .../com/google/iam/v2beta/PolicyProto.java    |  225 ---
 87 files changed, 14114 insertions(+), 9105 deletions(-)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java (61%)
 create mode 100644 java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
 create mode 100644 java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java (76%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java (73%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java (73%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java (70%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java (74%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java (71%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java (86%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java (73%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java (73%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java (92%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java (66%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java (59%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java (70%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java (64%)
 create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
 create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java (84%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java (76%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java (71%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java (86%)
 create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java (72%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java (75%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java (70%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java (68%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java (61%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java (74%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java (79%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java (73%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java (75%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java (87%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java (92%)
 create mode 100644 java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java (71%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java (73%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java (75%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java (72%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java (64%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java (72%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java (66%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java (58%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java (80%)
 create mode 100644 java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java (70%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java (63%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java (71%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto (100%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto (100%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java (74%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java (79%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java (72%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java (75%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java (86%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java (92%)
 create mode 100644 java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java (71%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java (72%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java (75%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java (72%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java (66%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java (71%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java (67%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java (59%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java (80%)
 create mode 100644 java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java (69%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java (64%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java (70%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto (100%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto (100%)
 delete mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
 delete mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
 delete mode 100644 owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
 delete mode 100644 owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
 delete mode 100644 owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
 delete mode 100644 owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java
 delete mode 100644 owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
 delete mode 100644 owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
 delete mode 100644 owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java

diff --git a/owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java b/java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java
similarity index 61%
rename from owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java
rename to java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java
index 5237721079..dc9f5653e5 100644
--- a/owl-bot-staging/java-iam/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java
+++ b/java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.iam.v1;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * API Overview
  * Manages Identity and Access Management (IAM) policies.
@@ -35,144 +52,168 @@ private IAMPolicyGrpc() {}
   public static final String SERVICE_NAME = "google.iam.v1.IAMPolicy";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  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 getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      getSetIamPolicyMethod() {
+    io.grpc.MethodDescriptor
+        getSetIamPolicyMethod;
     if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
-              .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
+                      .build();
         }
       }
     }
     return getSetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  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 getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      getGetIamPolicyMethod() {
+    io.grpc.MethodDescriptor
+        getGetIamPolicyMethod;
     if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
-              .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
+                      .build();
         }
       }
     }
     return getGetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  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 getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  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 = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
-          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
-              .build();
+          IAMPolicyGrpc.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 IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
+                      .build();
         }
       }
     }
     return getTestIamPermissionsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static IAMPolicyStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyStub(channel, callOptions);
+          }
+        };
     return IAMPolicyStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static IAMPolicyBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static IAMPolicyBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyBlockingStub(channel, callOptions);
+          }
+        };
     return IAMPolicyBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static IAMPolicyFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static IAMPolicyFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyFutureStub(channel, callOptions);
+          }
+        };
     return IAMPolicyFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -194,33 +235,43 @@ public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
    * attached.
    * 
*/ - public static abstract class IAMPolicyImplBase implements io.grpc.BindableService { + public abstract static class IAMPolicyImplBase implements io.grpc.BindableService { /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** + * + * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** + * + * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -230,39 +281,43 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * 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); + 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() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + 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))) + 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))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -285,44 +340,54 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque
    * 
*/ public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private IAMPolicyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyStub(channel, callOptions); } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + 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); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + 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); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -332,14 +397,20 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + 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); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -361,9 +432,9 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque
    * attached.
    * 
*/ - public static final class IAMPolicyBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private IAMPolicyBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -374,6 +445,8 @@ protected IAMPolicyBlockingStub build( } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
@@ -386,6 +459,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
@@ -398,6 +473,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -407,13 +484,16 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
      * may "fail open" without warning.
      * 
*/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -435,45 +515,50 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.googl
    * attached.
    * 
*/ - public static final class IAMPolicyFutureStub extends io.grpc.stub.AbstractFutureStub { - private IAMPolicyFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IAMPolicyFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyFutureStub(channel, callOptions); } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { + 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 resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { + 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 on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -483,8 +568,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture testIamPermissions(
-        com.google.iam.v1.TestIamPermissionsRequest request) {
+    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);
     }
@@ -494,11 +580,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final IAMPolicyImplBase serviceImpl;
     private final int methodId;
 
@@ -512,16 +598,20 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_SET_IAM_POLICY:
-          serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request,
+          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,
+          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);
+          serviceImpl.testIamPermissions(
+              (com.google.iam.v1.TestIamPermissionsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -539,8 +629,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class IAMPolicyBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class IAMPolicyBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     IAMPolicyBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -582,12 +673,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (IAMPolicyGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier())
-              .addMethod(getSetIamPolicyMethod())
-              .addMethod(getGetIamPolicyMethod())
-              .addMethod(getTestIamPermissionsMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier())
+                      .addMethod(getSetIamPolicyMethod())
+                      .addMethod(getGetIamPolicyMethod())
+                      .addMethod(getTestIamPermissionsMethod())
+                      .build();
         }
       }
     }
diff --git a/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java b/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
new file mode 100644
index 0000000000..bfd3857e07
--- /dev/null
+++ b/java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
@@ -0,0 +1,813 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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.iam.v2;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * An interface for managing Identity and Access Management (IAM) policies.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/iam/v2/policy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PoliciesGrpc { + + private PoliciesGrpc() {} + + public static final String SERVICE_NAME = "google.iam.v2.Policies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> + getListPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicies", + requestType = com.google.iam.v2.ListPoliciesRequest.class, + responseType = com.google.iam.v2.ListPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> + getListPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse> + getListPoliciesMethod; + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + PoliciesGrpc.getListPoliciesMethod = + getListPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.ListPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.ListPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) + .build(); + } + } + } + return getListPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2.GetPolicyRequest, com.google.iam.v2.Policy> + getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.iam.v2.GetPolicyRequest.class, + responseType = com.google.iam.v2.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2.GetPolicyRequest, com.google.iam.v2.Policy> + getGetPolicyMethod() { + io.grpc.MethodDescriptor + getGetPolicyMethod; + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + PoliciesGrpc.getGetPolicyMethod = + getGetPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.Policy.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", + requestType = com.google.iam.v2.CreatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod; + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + PoliciesGrpc.getCreatePolicyMethod = + getCreatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.CreatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) + .build(); + } + } + } + return getCreatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.iam.v2.UpdatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + PoliciesGrpc.getUpdatePolicyMethod = + getUpdatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", + requestType = com.google.iam.v2.DeletePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod; + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + PoliciesGrpc.getDeletePolicyMethod = + getDeletePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2.DeletePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) + .build(); + } + } + } + return getDeletePolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static PoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + }; + return PoliciesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + }; + return PoliciesBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PoliciesFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + }; + return PoliciesFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public abstract static class PoliciesImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies( + com.google.iam.v2.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy( + com.google.iam.v2.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy( + com.google.iam.v2.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy( + com.google.iam.v2.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy( + com.google.iam.v2.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.ListPoliciesRequest, + com.google.iam.v2.ListPoliciesResponse>(this, METHODID_LIST_POLICIES))) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_GET_POLICY))) + .addMethod( + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_CREATE_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_DELETE_POLICY))) + .build(); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { + private PoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies( + com.google.iam.v2.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy( + com.google.iam.v2.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy( + com.google.iam.v2.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy( + com.google.iam.v2.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy( + com.google.iam.v2.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.iam.v2.ListPoliciesResponse listPolicies( + com.google.iam.v2.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public com.google.longrunning.Operation createPolicy( + com.google.iam.v2.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.longrunning.Operation updatePolicy( + com.google.iam.v2.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicy( + com.google.iam.v2.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v2.ListPoliciesResponse> + listPolicies(com.google.iam.v2.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPolicy( + com.google.iam.v2.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPolicy(com.google.iam.v2.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePolicy(com.google.iam.v2.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICIES = 0; + private static final int METHODID_GET_POLICY = 1; + private static final int METHODID_CREATE_POLICY = 2; + private static final int METHODID_UPDATE_POLICY = 3; + private static final int METHODID_DELETE_POLICY = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final PoliciesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PoliciesImplBase 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_POLICIES: + serviceImpl.listPolicies( + (com.google.iam.v2.ListPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_POLICY: + serviceImpl.getPolicy( + (com.google.iam.v2.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_POLICY: + serviceImpl.createPolicy( + (com.google.iam.v2.CreatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy( + (com.google.iam.v2.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY: + serviceImpl.deletePolicy( + (com.google.iam.v2.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v2.PolicyProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Policies"); + } + } + + private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { + PoliciesFileDescriptorSupplier() {} + } + + private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java b/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java new file mode 100644 index 0000000000..57458d9ec7 --- /dev/null +++ b/java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java @@ -0,0 +1,815 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v2beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * An interface for managing Identity and Access Management (IAM) policies.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/iam/v2beta/policy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PoliciesGrpc { + + private PoliciesGrpc() {} + + public static final String SERVICE_NAME = "google.iam.v2beta.Policies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> + getListPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicies", + requestType = com.google.iam.v2beta.ListPoliciesRequest.class, + responseType = com.google.iam.v2beta.ListPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> + getListPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2beta.ListPoliciesRequest, com.google.iam.v2beta.ListPoliciesResponse> + getListPoliciesMethod; + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { + PoliciesGrpc.getListPoliciesMethod = + getListPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.ListPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.ListPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) + .build(); + } + } + } + return getListPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy> + getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.iam.v2beta.GetPolicyRequest.class, + responseType = com.google.iam.v2beta.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy> + getGetPolicyMethod() { + io.grpc.MethodDescriptor + getGetPolicyMethod; + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { + PoliciesGrpc.getGetPolicyMethod = + getGetPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.Policy.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", + requestType = com.google.iam.v2beta.CreatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> + getCreatePolicyMethod; + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { + PoliciesGrpc.getCreatePolicyMethod = + getCreatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.CreatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) + .build(); + } + } + } + return getCreatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.iam.v2beta.UpdatePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> + getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { + PoliciesGrpc.getUpdatePolicyMethod = + getUpdatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", + requestType = com.google.iam.v2beta.DeletePolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> + getDeletePolicyMethod; + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + synchronized (PoliciesGrpc.class) { + if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { + PoliciesGrpc.getDeletePolicyMethod = + getDeletePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v2beta.DeletePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) + .build(); + } + } + } + return getDeletePolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static PoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + }; + return PoliciesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + }; + return PoliciesBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PoliciesFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PoliciesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + }; + return PoliciesFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public abstract static class PoliciesImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies( + com.google.iam.v2beta.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy( + com.google.iam.v2beta.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy( + com.google.iam.v2beta.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy( + com.google.iam.v2beta.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.ListPoliciesRequest, + com.google.iam.v2beta.ListPoliciesResponse>(this, METHODID_LIST_POLICIES))) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy>( + this, METHODID_GET_POLICY))) + .addMethod( + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_CREATE_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation>( + this, METHODID_DELETE_POLICY))) + .build(); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { + private PoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public void listPolicies( + com.google.iam.v2beta.ListPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public void getPolicy( + com.google.iam.v2beta.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public void createPolicy( + com.google.iam.v2beta.CreatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public void updatePolicy( + com.google.iam.v2beta.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public void deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.iam.v2beta.ListPoliciesResponse listPolicies( + com.google.iam.v2beta.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public com.google.longrunning.Operation createPolicy( + com.google.iam.v2beta.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.longrunning.Operation updatePolicy( + com.google.iam.v2beta.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * An interface for managing Identity and Access Management (IAM) policies.
+   * 
+ */ + public static final class PoliciesFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PoliciesFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves the policies of the specified kind that are attached to a
+     * resource.
+     * The response lists only policy metadata. In particular, policy rules are
+     * omitted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v2beta.ListPoliciesResponse> + listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPolicy(com.google.iam.v2beta.CreatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified policy.
+     * You can update only the rules and the display name for the policy.
+     * To update a policy, you should use a read-modify-write loop:
+     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
+     * 2. Modify the policy as needed.
+     * 3. Use `UpdatePolicy` to write the updated policy.
+     * This pattern helps prevent conflicts between concurrent updates.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a policy. This action is permanent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICIES = 0; + private static final int METHODID_GET_POLICY = 1; + private static final int METHODID_CREATE_POLICY = 2; + private static final int METHODID_UPDATE_POLICY = 3; + private static final int METHODID_DELETE_POLICY = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final PoliciesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PoliciesImplBase 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_POLICIES: + serviceImpl.listPolicies( + (com.google.iam.v2beta.ListPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_POLICY: + serviceImpl.getPolicy( + (com.google.iam.v2beta.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_POLICY: + serviceImpl.createPolicy( + (com.google.iam.v2beta.CreatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy( + (com.google.iam.v2beta.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY: + serviceImpl.deletePolicy( + (com.google.iam.v2beta.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v2beta.PolicyProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Policies"); + } + } + + private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { + PoliciesFileDescriptorSupplier() {} + } + + private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java similarity index 76% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java index aefa690418..5414ae4c2c 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * Specifies the audit configuration for a service.
  * The configuration determines which permission types are logged, and what
@@ -56,15 +73,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfig}
  */
-public final class AuditConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfig)
     AuditConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditConfig.newBuilder() to construct.
   private AuditConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditConfig() {
     service_ = "";
     auditLogConfigs_ = java.util.Collections.emptyList();
@@ -72,33 +90,35 @@ private AuditConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
   }
 
   public static final int SERVICE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object service_ = "";
   /**
+   *
+   *
    * 
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -106,6 +126,7 @@ protected java.lang.Object newInstance(
    * 
* * string service = 1; + * * @return The service. */ @java.lang.Override @@ -114,14 +135,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -129,16 +151,15 @@ public java.lang.String getService() {
    * 
* * string service = 1; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -147,9 +168,12 @@ public java.lang.String getService() { } public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List auditLogConfigs_; /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -161,6 +185,8 @@ public java.util.List getAuditLogConfigsList() return auditLogConfigs_; } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -168,11 +194,13 @@ public java.util.List getAuditLogConfigsList() * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getAuditLogConfigsOrBuilderList() { return auditLogConfigs_; } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -184,6 +212,8 @@ public int getAuditLogConfigsCount() { return auditLogConfigs_.size(); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -195,6 +225,8 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { return auditLogConfigs_.get(index); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -202,12 +234,12 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { return auditLogConfigs_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +251,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(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -240,8 +271,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } for (int i = 0; i < auditLogConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, auditLogConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, auditLogConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,17 +281,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.iam.v1.AuditConfig)) { return super.equals(obj); } com.google.iam.v1.AuditConfig other = (com.google.iam.v1.AuditConfig) obj; - if (!getService() - .equals(other.getService())) return false; - if (!getAuditLogConfigsList() - .equals(other.getAuditLogConfigsList())) return false; + if (!getService().equals(other.getService())) return false; + if (!getAuditLogConfigsList().equals(other.getAuditLogConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,97 +312,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfig 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.iam.v1.AuditConfig parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.AuditConfig parseFrom(com.google.protobuf.CodedInputStream 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.iam.v1.AuditConfig 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.iam.v1.AuditConfig 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; } /** + * + * *
    * Specifies the audit configuration for a service.
    * The configuration determines which permission types are logged, and what
@@ -427,33 +461,30 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditConfig}
    */
-  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.iam.v1.AuditConfig)
       com.google.iam.v1.AuditConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,8 +501,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
@@ -493,7 +523,9 @@ public com.google.iam.v1.AuditConfig build() {
     public com.google.iam.v1.AuditConfig buildPartial() {
       com.google.iam.v1.AuditConfig result = new com.google.iam.v1.AuditConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -521,38 +553,39 @@ private void buildPartial0(com.google.iam.v1.AuditConfig result) {
     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.iam.v1.AuditConfig) {
-        return mergeFrom((com.google.iam.v1.AuditConfig)other);
+        return mergeFrom((com.google.iam.v1.AuditConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -584,9 +617,10 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
             auditLogConfigsBuilder_ = null;
             auditLogConfigs_ = other.auditLogConfigs_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            auditLogConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAuditLogConfigsFieldBuilder() : null;
+            auditLogConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAuditLogConfigsFieldBuilder()
+                    : null;
           } else {
             auditLogConfigsBuilder_.addAllMessages(other.auditLogConfigs_);
           }
@@ -618,30 +652,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              service_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              com.google.iam.v1.AuditLogConfig m =
-                  input.readMessage(
-                      com.google.iam.v1.AuditLogConfig.parser(),
-                      extensionRegistry);
-              if (auditLogConfigsBuilder_ == null) {
-                ensureAuditLogConfigsIsMutable();
-                auditLogConfigs_.add(m);
-              } else {
-                auditLogConfigsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                service_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.iam.v1.AuditLogConfig m =
+                    input.readMessage(com.google.iam.v1.AuditLogConfig.parser(), extensionRegistry);
+                if (auditLogConfigsBuilder_ == null) {
+                  ensureAuditLogConfigsIsMutable();
+                  auditLogConfigs_.add(m);
+                } else {
+                  auditLogConfigsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -651,10 +686,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object service_ = "";
     /**
+     *
+     *
      * 
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -662,13 +700,13 @@ public Builder mergeFrom(
      * 
* * string service = 1; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -677,6 +715,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -684,15 +724,14 @@ public java.lang.String getService() {
      * 
* * string service = 1; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -700,6 +739,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -707,18 +748,22 @@ public java.lang.String getService() {
      * 
* * string service = 1; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -726,6 +771,7 @@ public Builder setService(
      * 
* * string service = 1; + * * @return This builder for chaining. */ public Builder clearService() { @@ -735,6 +781,8 @@ public Builder clearService() { return this; } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -742,12 +790,14 @@ public Builder clearService() {
      * 
* * string service = 1; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000001; @@ -756,18 +806,25 @@ public Builder setServiceBytes( } private java.util.List auditLogConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuditLogConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auditLogConfigs_ = new java.util.ArrayList(auditLogConfigs_); + auditLogConfigs_ = + new java.util.ArrayList(auditLogConfigs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> auditLogConfigsBuilder_; + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder> + auditLogConfigsBuilder_; /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -782,6 +839,8 @@ public java.util.List getAuditLogConfigsList() } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -796,6 +855,8 @@ public int getAuditLogConfigsCount() { } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -810,14 +871,15 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder setAuditLogConfigs( - int index, com.google.iam.v1.AuditLogConfig value) { + public Builder setAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -831,6 +893,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -849,6 +913,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -869,14 +935,15 @@ public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig value) { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs( - int index, com.google.iam.v1.AuditLogConfig value) { + public Builder addAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -890,14 +957,15 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs( - com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig.Builder builderForValue) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); auditLogConfigs_.add(builderForValue.build()); @@ -908,6 +976,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -926,6 +996,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -936,8 +1008,7 @@ public Builder addAllAuditLogConfigs( java.lang.Iterable values) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditLogConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditLogConfigs_); onChanged(); } else { auditLogConfigsBuilder_.addAllMessages(values); @@ -945,6 +1016,8 @@ public Builder addAllAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -962,6 +1035,8 @@ public Builder clearAuditLogConfigs() { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -979,39 +1054,44 @@ public Builder removeAuditLogConfigs(int index) { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder( - int index) { + public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder(int index) { return getAuditLogConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { if (auditLogConfigsBuilder_ == null) { - return auditLogConfigs_.get(index); } else { + return auditLogConfigs_.get(index); + } else { return auditLogConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsOrBuilderList() { + public java.util.List + getAuditLogConfigsOrBuilderList() { if (auditLogConfigsBuilder_ != null) { return auditLogConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1019,6 +1099,8 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -1026,38 +1108,47 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder() { - return getAuditLogConfigsFieldBuilder().addBuilder( - com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + return getAuditLogConfigsFieldBuilder() + .addBuilder(com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( - int index) { - return getAuditLogConfigsFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder(int index) { + return getAuditLogConfigsFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsBuilderList() { + public java.util.List + getAuditLogConfigsBuilderList() { return getAuditLogConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder> getAuditLogConfigsFieldBuilder() { if (auditLogConfigsBuilder_ == null) { - auditLogConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder>( + auditLogConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder>( auditLogConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1066,9 +1157,9 @@ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( } return auditLogConfigsBuilder_; } + @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); } @@ -1078,12 +1169,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfig) private static final com.google.iam.v1.AuditConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfig(); } @@ -1092,27 +1183,27 @@ public static com.google.iam.v1.AuditConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1218,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java similarity index 73% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index 79a287393a..9fc1f68b1d 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * One delta entry for AuditConfig. Each individual change (only one
  * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfigDelta}
  */
-public final class AuditConfigDelta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditConfigDelta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfigDelta)
     AuditConfigDeltaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditConfigDelta.newBuilder() to construct.
   private AuditConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditConfigDelta() {
     action_ = 0;
     service_ = "";
@@ -29,39 +47,42 @@ private AuditConfigDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfigDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
+            com.google.iam.v1.AuditConfigDelta.class,
+            com.google.iam.v1.AuditConfigDelta.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of action performed on an audit configuration in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.AuditConfigDelta.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -70,6 +91,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -78,6 +101,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -89,6 +114,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -97,6 +124,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -105,6 +134,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -113,7 +144,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -138,49 +168,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return ADD; - case 2: return REMOVE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + 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< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.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 Action findValueByNumber(int number) { + return Action.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.iam.v1.AuditConfigDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -200,35 +230,47 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_ = 0; /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ - @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { - com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); + @java.lang.Override + public com.google.iam.v1.AuditConfigDelta.Action getAction() { + com.google.iam.v1.AuditConfigDelta.Action result = + com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } public static final int SERVICE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object service_ = ""; /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -237,6 +279,7 @@ private Action(int value) {
    * 
* * string service = 2; + * * @return The service. */ @java.lang.Override @@ -245,14 +288,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -261,16 +305,15 @@ public java.lang.String getService() {
    * 
* * string service = 2; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -279,9 +322,12 @@ public java.lang.String getService() { } public static final int EXEMPTED_MEMBER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object exemptedMember_ = ""; /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -289,6 +335,7 @@ public java.lang.String getService() {
    * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ @java.lang.Override @@ -297,14 +344,15 @@ public java.lang.String getExemptedMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; } } /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -312,16 +360,15 @@ public java.lang.String getExemptedMember() {
    * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ @java.lang.Override - public com.google.protobuf.ByteString - getExemptedMemberBytes() { + public com.google.protobuf.ByteString getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -330,9 +377,12 @@ public java.lang.String getExemptedMember() { } public static final int LOG_TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object logType_ = ""; /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -340,6 +390,7 @@ public java.lang.String getExemptedMember() {
    * 
* * string log_type = 4; + * * @return The logType. */ @java.lang.Override @@ -348,14 +399,15 @@ public java.lang.String getLogType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; } } /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -363,16 +415,15 @@ public java.lang.String getLogType() {
    * 
* * string log_type = 4; + * * @return The bytes for logType. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogTypeBytes() { + public com.google.protobuf.ByteString getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logType_ = b; return b; } else { @@ -381,6 +432,7 @@ public java.lang.String getLogType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,8 +444,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 (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -416,8 +467,7 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); @@ -436,7 +486,7 @@ 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.iam.v1.AuditConfigDelta)) { return super.equals(obj); @@ -444,12 +494,9 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditConfigDelta other = (com.google.iam.v1.AuditConfigDelta) obj; if (action_ != other.action_) return false; - if (!getService() - .equals(other.getService())) return false; - if (!getExemptedMember() - .equals(other.getExemptedMember())) return false; - if (!getLogType() - .equals(other.getLogType())) return false; + if (!getService().equals(other.getService())) return false; + if (!getExemptedMember().equals(other.getExemptedMember())) return false; + if (!getLogType().equals(other.getLogType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,97 +521,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfigDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditConfigDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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.iam.v1.AuditConfigDelta 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; } /** + * + * *
    * One delta entry for AuditConfig. Each individual change (only one
    * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -572,33 +625,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditConfigDelta}
    */
-  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.iam.v1.AuditConfigDelta)
       com.google.iam.v1.AuditConfigDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
+              com.google.iam.v1.AuditConfigDelta.class,
+              com.google.iam.v1.AuditConfigDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfigDelta.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -611,9 +663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
@@ -633,7 +685,9 @@ public com.google.iam.v1.AuditConfigDelta build() {
     @java.lang.Override
     public com.google.iam.v1.AuditConfigDelta buildPartial() {
       com.google.iam.v1.AuditConfigDelta result = new com.google.iam.v1.AuditConfigDelta(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -658,38 +712,39 @@ private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) {
     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.iam.v1.AuditConfigDelta) {
-        return mergeFrom((com.google.iam.v1.AuditConfigDelta)other);
+        return mergeFrom((com.google.iam.v1.AuditConfigDelta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -742,32 +797,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              action_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              service_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              exemptedMember_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              logType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                action_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                service_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                exemptedMember_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                logType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -777,28 +837,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int action_ = 0;
     /**
+     *
+     *
      * 
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -809,26 +877,33 @@ public Builder setActionValue(int value) { return this; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { - com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); + com.google.iam.v1.AuditConfigDelta.Action result = + com.google.iam.v1.AuditConfigDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @param value The action to set. * @return This builder for chaining. */ @@ -842,12 +917,15 @@ public Builder setAction(com.google.iam.v1.AuditConfigDelta.Action value) { return this; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -859,6 +937,8 @@ public Builder clearAction() { private java.lang.Object service_ = ""; /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -867,13 +947,13 @@ public Builder clearAction() {
      * 
* * string service = 2; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -882,6 +962,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -890,15 +972,14 @@ public java.lang.String getService() {
      * 
* * string service = 2; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -906,6 +987,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -914,18 +997,22 @@ public java.lang.String getService() {
      * 
* * string service = 2; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } service_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -934,6 +1021,7 @@ public Builder setService(
      * 
* * string service = 2; + * * @return This builder for chaining. */ public Builder clearService() { @@ -943,6 +1031,8 @@ public Builder clearService() { return this; } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -951,12 +1041,14 @@ public Builder clearService() {
      * 
* * string service = 2; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000002; @@ -966,6 +1058,8 @@ public Builder setServiceBytes( private java.lang.Object exemptedMember_ = ""; /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -973,13 +1067,13 @@ public Builder setServiceBytes(
      * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ public java.lang.String getExemptedMember() { java.lang.Object ref = exemptedMember_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; @@ -988,6 +1082,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -995,15 +1091,14 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ - public com.google.protobuf.ByteString - getExemptedMemberBytes() { + public com.google.protobuf.ByteString getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -1011,6 +1106,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1018,18 +1115,22 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; + * * @param value The exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMember( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExemptedMember(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } exemptedMember_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1037,6 +1138,7 @@ public Builder setExemptedMember(
      * 
* * string exempted_member = 3; + * * @return This builder for chaining. */ public Builder clearExemptedMember() { @@ -1046,6 +1148,8 @@ public Builder clearExemptedMember() { return this; } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1053,12 +1157,14 @@ public Builder clearExemptedMember() {
      * 
* * string exempted_member = 3; + * * @param value The bytes for exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMemberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); exemptedMember_ = value; bitField0_ |= 0x00000004; @@ -1068,6 +1174,8 @@ public Builder setExemptedMemberBytes( private java.lang.Object logType_ = ""; /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1075,13 +1183,13 @@ public Builder setExemptedMemberBytes(
      * 
* * string log_type = 4; + * * @return The logType. */ public java.lang.String getLogType() { java.lang.Object ref = logType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; @@ -1090,6 +1198,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1097,15 +1207,14 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; + * * @return The bytes for logType. */ - public com.google.protobuf.ByteString - getLogTypeBytes() { + public com.google.protobuf.ByteString getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logType_ = b; return b; } else { @@ -1113,6 +1222,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1120,18 +1231,22 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; + * * @param value The logType to set. * @return This builder for chaining. */ - public Builder setLogType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } logType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1139,6 +1254,7 @@ public Builder setLogType(
      * 
* * string log_type = 4; + * * @return This builder for chaining. */ public Builder clearLogType() { @@ -1148,6 +1264,8 @@ public Builder clearLogType() { return this; } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1155,21 +1273,23 @@ public Builder clearLogType() {
      * 
* * string log_type = 4; + * * @param value The bytes for logType to set. * @return This builder for chaining. */ - public Builder setLogTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); logType_ = value; bitField0_ |= 0x00000008; 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); } @@ -1179,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfigDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfigDelta) private static final com.google.iam.v1.AuditConfigDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfigDelta(); } @@ -1193,27 +1313,27 @@ public static com.google.iam.v1.AuditConfigDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfigDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfigDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,6 +1348,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfigDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java similarity index 73% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e16f3aa510..e1bea6c244 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -1,34 +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/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigDeltaOrBuilder extends +public interface AuditConfigDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfigDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ com.google.iam.v1.AuditConfigDelta.Action getAction(); /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -37,10 +61,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string service = 2; + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -49,12 +76,14 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string service = 2; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -62,10 +91,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ java.lang.String getExemptedMember(); /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -73,12 +105,14 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ - com.google.protobuf.ByteString - getExemptedMemberBytes(); + com.google.protobuf.ByteString getExemptedMemberBytes(); /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -86,10 +120,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string log_type = 4; + * * @return The logType. */ java.lang.String getLogType(); /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -97,8 +134,8 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string log_type = 4; + * * @return The bytes for logType. */ - com.google.protobuf.ByteString - getLogTypeBytes(); + com.google.protobuf.ByteString getLogTypeBytes(); } diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java index 05b40d39c0..06911aaf2b 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.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/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigOrBuilder extends +public interface AuditConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -15,10 +33,13 @@ public interface AuditConfigOrBuilder extends
    * 
* * string service = 1; + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -26,21 +47,24 @@ public interface AuditConfigOrBuilder extends
    * 
* * string service = 1; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List - getAuditLogConfigsList(); + java.util.List getAuditLogConfigsList(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -49,6 +73,8 @@ public interface AuditConfigOrBuilder extends */ com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -57,21 +83,24 @@ public interface AuditConfigOrBuilder extends */ int getAuditLogConfigsCount(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List + java.util.List getAuditLogConfigsOrBuilderList(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index); + com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index); } diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java similarity index 74% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index 9a79ac904c..c80e4b2511 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * Provides the configuration for logging a type of permissions.
  * Example:
@@ -26,15 +43,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditLogConfig}
  */
-public final class AuditLogConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditLogConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditLogConfig)
     AuditLogConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditLogConfig.newBuilder() to construct.
   private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditLogConfig() {
     logType_ = 0;
     exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -42,30 +60,31 @@ private AuditLogConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditLogConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The list of valid permission types for which logging can be configured.
    * Admin writes are always logged, and are not configurable.
@@ -73,9 +92,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.iam.v1.AuditLogConfig.LogType}
    */
-  public enum LogType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum LogType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default case. Should never be this.
      * 
@@ -84,6 +104,8 @@ public enum LogType */ LOG_TYPE_UNSPECIFIED(0), /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -92,6 +114,8 @@ public enum LogType */ ADMIN_READ(1), /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -100,6 +124,8 @@ public enum LogType */ DATA_WRITE(2), /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -111,6 +137,8 @@ public enum LogType ; /** + * + * *
      * Default case. Should never be this.
      * 
@@ -119,6 +147,8 @@ public enum LogType */ public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -127,6 +157,8 @@ public enum LogType */ public static final int ADMIN_READ_VALUE = 1; /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -135,6 +167,8 @@ public enum LogType */ public static final int DATA_WRITE_VALUE = 2; /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -143,7 +177,6 @@ public enum LogType */ public static final int DATA_READ_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -168,50 +201,51 @@ public static LogType valueOf(int value) { */ public static LogType forNumber(int value) { switch (value) { - case 0: return LOG_TYPE_UNSPECIFIED; - case 1: return ADMIN_READ; - case 2: return DATA_WRITE; - case 3: return DATA_READ; - default: return null; + case 0: + return LOG_TYPE_UNSPECIFIED; + case 1: + return ADMIN_READ; + case 2: + return DATA_WRITE; + case 3: + return DATA_READ; + 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< - LogType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogType findValueByNumber(int number) { - return LogType.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 LogType findValueByNumber(int number) { + return LogType.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.iam.v1.AuditLogConfig.getDescriptor().getEnumTypes().get(0); } private static final LogType[] VALUES = values(); - public static LogType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogType 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; @@ -231,33 +265,45 @@ private LogType(int value) { public static final int LOG_TYPE_FIELD_NUMBER = 1; private int logType_ = 0; /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override public int getLogTypeValue() { + @java.lang.Override + public int getLogTypeValue() { return logType_; } /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ - @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { - com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); + @java.lang.Override + public com.google.iam.v1.AuditLogConfig.LogType getLogType() { + com.google.iam.v1.AuditLogConfig.LogType result = + com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exemptedMembers_; /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -265,13 +311,15 @@ private LogType(int value) {
    * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList - getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList getExemptedMembersList() { return exemptedMembers_; } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -279,12 +327,15 @@ private LogType(int value) {
    * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -292,6 +343,7 @@ public int getExemptedMembersCount() {
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -299,6 +351,8 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -306,15 +360,16 @@ public java.lang.String getExemptedMembers(int index) {
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString - getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +381,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 (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, logType_); } @@ -344,8 +398,7 @@ public int getSerializedSize() { size = 0; if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, logType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, logType_); } { int dataSize = 0; @@ -363,7 +416,7 @@ 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.iam.v1.AuditLogConfig)) { return super.equals(obj); @@ -371,8 +424,7 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditLogConfig other = (com.google.iam.v1.AuditLogConfig) obj; if (logType_ != other.logType_) return false; - if (!getExemptedMembersList() - .equals(other.getExemptedMembersList())) return false; + if (!getExemptedMembersList().equals(other.getExemptedMembersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,97 +447,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditLogConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditLogConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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.iam.v1.AuditLogConfig 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; } /** + * + * *
    * Provides the configuration for logging a type of permissions.
    * Example:
@@ -508,33 +566,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditLogConfig}
    */
-  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.iam.v1.AuditLogConfig)
       com.google.iam.v1.AuditLogConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
+              com.google.iam.v1.AuditLogConfig.class,
+              com.google.iam.v1.AuditLogConfig.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditLogConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -546,8 +602,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
@@ -569,7 +624,9 @@ public com.google.iam.v1.AuditLogConfig build() {
     public com.google.iam.v1.AuditLogConfig buildPartial() {
       com.google.iam.v1.AuditLogConfig result = new com.google.iam.v1.AuditLogConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -593,38 +650,39 @@ private void buildPartial0(com.google.iam.v1.AuditLogConfig result) {
     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.iam.v1.AuditLogConfig) {
-        return mergeFrom((com.google.iam.v1.AuditLogConfig)other);
+        return mergeFrom((com.google.iam.v1.AuditLogConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -672,23 +730,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              logType_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureExemptedMembersIsMutable();
-              exemptedMembers_.add(s);
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                logType_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureExemptedMembersIsMutable();
+                exemptedMembers_.add(s);
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -698,26 +759,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int logType_ = 0;
     /**
+     *
+     *
      * 
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override public int getLogTypeValue() { + @java.lang.Override + public int getLogTypeValue() { return logType_; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @param value The enum numeric value on the wire for logType to set. * @return This builder for chaining. */ @@ -728,24 +797,31 @@ public Builder setLogTypeValue(int value) { return this; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { - com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); + com.google.iam.v1.AuditLogConfig.LogType result = + com.google.iam.v1.AuditLogConfig.LogType.forNumber(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @param value The logType to set. * @return This builder for chaining. */ @@ -759,11 +835,14 @@ public Builder setLogType(com.google.iam.v1.AuditLogConfig.LogType value) { return this; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return This builder for chaining. */ public Builder clearLogType() { @@ -773,14 +852,18 @@ public Builder clearLogType() { return this; } - private com.google.protobuf.LazyStringList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptedMembersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -788,13 +871,15 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList - getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList getExemptedMembersList() { return exemptedMembers_.getUnmodifiableView(); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -802,12 +887,15 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -815,6 +903,7 @@ public int getExemptedMembersCount() {
      * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -822,6 +911,8 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -829,14 +920,16 @@ public java.lang.String getExemptedMembers(int index) {
      * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString - getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -844,19 +937,23 @@ public java.lang.String getExemptedMembers(int index) {
      * 
* * repeated string exempted_members = 2; + * * @param index The index to set the value at. * @param value The exemptedMembers to set. * @return This builder for chaining. */ - public Builder setExemptedMembers( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExemptedMembers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExemptedMembersIsMutable(); exemptedMembers_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -864,18 +961,22 @@ public Builder setExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @param value The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembers( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExemptedMembers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -883,18 +984,19 @@ public Builder addExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @param values The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addAllExemptedMembers( - java.lang.Iterable values) { + public Builder addAllExemptedMembers(java.lang.Iterable values) { ensureExemptedMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemptedMembers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptedMembers_); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -902,6 +1004,7 @@ public Builder addAllExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @return This builder for chaining. */ public Builder clearExemptedMembers() { @@ -911,6 +1014,8 @@ public Builder clearExemptedMembers() { return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -918,21 +1023,23 @@ public Builder clearExemptedMembers() {
      * 
* * repeated string exempted_members = 2; + * * @param value The bytes of the exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExemptedMembersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExemptedMembersIsMutable(); exemptedMembers_.add(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); } @@ -942,12 +1049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditLogConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditLogConfig) private static final com.google.iam.v1.AuditLogConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditLogConfig(); } @@ -956,27 +1063,27 @@ public static com.google.iam.v1.AuditLogConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditLogConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditLogConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,6 +1098,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditLogConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java index cc82e2e856..c6371c5c0a 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditLogConfigOrBuilder extends +public interface AuditLogConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditLogConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ int getLogTypeValue(); /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ com.google.iam.v1.AuditLogConfig.LogType getLogType(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -34,11 +58,13 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - java.util.List - getExemptedMembersList(); + java.util.List getExemptedMembersList(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -46,10 +72,13 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ int getExemptedMembersCount(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -57,11 +86,14 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ java.lang.String getExemptedMembers(int index); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -69,9 +101,9 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - com.google.protobuf.ByteString - getExemptedMembersBytes(int index); + com.google.protobuf.ByteString getExemptedMembersBytes(int index); } diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java similarity index 86% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index 8b1b11904d..b24aa460af 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * Associates `members`, or principals, with a `role`.
  * 
* * Protobuf type {@code google.iam.v1.Binding} */ -public final class Binding extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Binding extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.Binding) BindingOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Binding() { role_ = ""; members_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,18 +44,16 @@ private Binding() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Binding(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -50,15 +66,19 @@ protected java.lang.Object newInstance( } public static final int ROLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The role. */ @java.lang.Override @@ -67,30 +87,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -99,9 +119,12 @@ public java.lang.String getRole() { } public static final int MEMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList members_; /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -137,13 +160,15 @@ public java.lang.String getRole() {
    * 
* * repeated string members = 2; + * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList - getMembersList() { + public com.google.protobuf.ProtocolStringList getMembersList() { return members_; } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -179,12 +204,15 @@ public java.lang.String getRole() {
    * 
* * repeated string members = 2; + * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -220,6 +248,7 @@ public int getMembersCount() {
    * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -227,6 +256,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -262,17 +293,19 @@ public java.lang.String getMembers(int index) {
    * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { + public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } public static final int CONDITION_FIELD_NUMBER = 3; private com.google.type.Expr condition_; /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -286,6 +319,7 @@ public java.lang.String getMembers(int index) {
    * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -293,6 +327,8 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -306,6 +342,7 @@ public boolean hasCondition() {
    * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ @java.lang.Override @@ -313,6 +350,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -333,6 +372,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -344,8 +384,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(role_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
     }
@@ -376,8 +415,7 @@ public int getSerializedSize() {
       size += 1 * getMembersList().size();
     }
     if (condition_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getCondition());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -387,21 +425,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.iam.v1.Binding)) {
       return super.equals(obj);
     }
     com.google.iam.v1.Binding other = (com.google.iam.v1.Binding) obj;
 
-    if (!getRole()
-        .equals(other.getRole())) return false;
-    if (!getMembersList()
-        .equals(other.getMembersList())) return false;
+    if (!getRole().equals(other.getRole())) return false;
+    if (!getMembersList().equals(other.getMembersList())) return false;
     if (hasCondition() != other.hasCondition()) return false;
     if (hasCondition()) {
-      if (!getCondition()
-          .equals(other.getCondition())) return false;
+      if (!getCondition().equals(other.getCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -429,109 +464,114 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.Binding parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.Binding parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding 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.iam.v1.Binding 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.iam.v1.Binding 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.iam.v1.Binding parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.Binding 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.iam.v1.Binding parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.CodedInputStream 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.iam.v1.Binding 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.iam.v1.Binding 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;
   }
   /**
+   *
+   *
    * 
    * Associates `members`, or principals, with a `role`.
    * 
* * Protobuf type {@code google.iam.v1.Binding} */ - 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.iam.v1.Binding) com.google.iam.v1.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -544,15 +584,12 @@ public static final class Builder extends } // Construct using com.google.iam.v1.Binding.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,8 +606,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -592,7 +628,9 @@ public com.google.iam.v1.Binding build() { public com.google.iam.v1.Binding buildPartial() { com.google.iam.v1.Binding result = new com.google.iam.v1.Binding(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -611,9 +649,7 @@ private void buildPartial0(com.google.iam.v1.Binding result) { result.role_ = role_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.condition_ = conditionBuilder_ == null - ? condition_ - : conditionBuilder_.build(); + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); } } @@ -621,38 +657,39 @@ private void buildPartial0(com.google.iam.v1.Binding result) { 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.iam.v1.Binding) { - return mergeFrom((com.google.iam.v1.Binding)other); + return mergeFrom((com.google.iam.v1.Binding) other); } else { super.mergeFrom(other); return this; @@ -705,30 +742,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - role_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMembersIsMutable(); - members_.add(s); - break; - } // case 18 - case 26: { - input.readMessage( - getConditionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMembersIsMutable(); + members_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -738,23 +777,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -763,21 +805,22 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return The bytes for role. */ - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -785,30 +828,37 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } role_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return This builder for chaining. */ public Builder clearRole() { @@ -818,18 +868,22 @@ public Builder clearRole() { return this; } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000001; @@ -837,14 +891,18 @@ public Builder setRoleBytes( return this; } - private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList members_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { members_ = new com.google.protobuf.LazyStringArrayList(members_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -880,13 +938,15 @@ private void ensureMembersIsMutable() {
      * 
* * repeated string members = 2; + * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList - getMembersList() { + public com.google.protobuf.ProtocolStringList getMembersList() { return members_.getUnmodifiableView(); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -922,12 +982,15 @@ private void ensureMembersIsMutable() {
      * 
* * repeated string members = 2; + * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -963,6 +1026,7 @@ public int getMembersCount() {
      * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -970,6 +1034,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1005,14 +1071,16 @@ public java.lang.String getMembers(int index) {
      * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { + public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1048,19 +1116,23 @@ public java.lang.String getMembers(int index) {
      * 
* * repeated string members = 2; + * * @param index The index to set the value at. * @param value The members to set. * @return This builder for chaining. */ - public Builder setMembers( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMembers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMembersIsMutable(); members_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1096,18 +1168,22 @@ public Builder setMembers(
      * 
* * repeated string members = 2; + * * @param value The members to add. * @return This builder for chaining. */ - public Builder addMembers( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMembers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1143,18 +1219,19 @@ public Builder addMembers(
      * 
* * repeated string members = 2; + * * @param values The members to add. * @return This builder for chaining. */ - public Builder addAllMembers( - java.lang.Iterable values) { + public Builder addAllMembers(java.lang.Iterable values) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1190,6 +1267,7 @@ public Builder addAllMembers(
      * 
* * repeated string members = 2; + * * @return This builder for chaining. */ public Builder clearMembers() { @@ -1199,6 +1277,8 @@ public Builder clearMembers() { return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1234,12 +1314,14 @@ public Builder clearMembers() {
      * 
* * repeated string members = 2; + * * @param value The bytes of the members to add. * @return This builder for chaining. */ - public Builder addMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMembersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMembersIsMutable(); members_.add(value); @@ -1249,8 +1331,11 @@ public Builder addMembersBytes( private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1264,12 +1349,15 @@ public Builder addMembersBytes(
      * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1283,6 +1371,7 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1293,6 +1382,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1321,6 +1412,8 @@ public Builder setCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1335,8 +1428,7 @@ public Builder setCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr condition = 3;
      */
-    public Builder setCondition(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
       if (conditionBuilder_ == null) {
         condition_ = builderForValue.build();
       } else {
@@ -1347,6 +1439,8 @@ public Builder setCondition(
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1363,9 +1457,9 @@ public Builder setCondition(
      */
     public Builder mergeCondition(com.google.type.Expr value) {
       if (conditionBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          condition_ != null &&
-          condition_ != com.google.type.Expr.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && condition_ != null
+            && condition_ != com.google.type.Expr.getDefaultInstance()) {
           getConditionBuilder().mergeFrom(value);
         } else {
           condition_ = value;
@@ -1378,6 +1472,8 @@ public Builder mergeCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1403,6 +1499,8 @@ public Builder clearCondition() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1423,6 +1521,8 @@ public com.google.type.Expr.Builder getConditionBuilder() {
       return getConditionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1441,11 +1541,12 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
       if (conditionBuilder_ != null) {
         return conditionBuilder_.getMessageOrBuilder();
       } else {
-        return condition_ == null ?
-            com.google.type.Expr.getDefaultInstance() : condition_;
+        return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
       }
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1461,21 +1562,20 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
      * .google.type.Expr condition = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getConditionFieldBuilder() {
       if (conditionBuilder_ == null) {
-        conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getCondition(),
-                getParentForChildren(),
-                isClean());
+        conditionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getCondition(), getParentForChildren(), isClean());
         condition_ = null;
       }
       return conditionBuilder_;
     }
+
     @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);
     }
 
@@ -1485,12 +1585,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.Binding)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.Binding)
   private static final com.google.iam.v1.Binding DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.Binding();
   }
@@ -1499,27 +1599,27 @@ public static com.google.iam.v1.Binding getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Binding parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Binding parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1534,6 +1634,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.Binding getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
similarity index 73%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
index 7d16cebc64..340980bdfc 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.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/iam/v1/policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * One delta entry for Binding. Each individual change (only one member in each
  * entry) to a binding will be a separate entry.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.iam.v1.BindingDelta}
  */
-public final class BindingDelta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BindingDelta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.BindingDelta)
     BindingDeltaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BindingDelta.newBuilder() to construct.
   private BindingDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BindingDelta() {
     action_ = 0;
     role_ = "";
@@ -28,39 +46,41 @@ private BindingDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.BindingDelta.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -69,6 +89,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of a Binding.
      * 
@@ -77,6 +99,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of a Binding.
      * 
@@ -88,6 +112,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -96,6 +122,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of a Binding.
      * 
@@ -104,6 +132,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of a Binding.
      * 
@@ -112,7 +142,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,49 +166,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return ADD; - case 2: return REMOVE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + 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< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.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 Action findValueByNumber(int number) { + return Action.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.iam.v1.BindingDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -199,35 +228,47 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_ = 0; /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ - @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { - com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.forNumber(action_); + @java.lang.Override + public com.google.iam.v1.BindingDelta.Action getAction() { + com.google.iam.v1.BindingDelta.Action result = + com.google.iam.v1.BindingDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -235,6 +276,7 @@ private Action(int value) {
    * 
* * string role = 2; + * * @return The role. */ @java.lang.Override @@ -243,14 +285,15 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -258,16 +301,15 @@ public java.lang.String getRole() {
    * 
* * string role = 2; + * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -276,9 +318,12 @@ public java.lang.String getRole() { } public static final int MEMBER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object member_ = ""; /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -286,6 +331,7 @@ public java.lang.String getRole() {
    * 
* * string member = 3; + * * @return The member. */ @java.lang.Override @@ -294,14 +340,15 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -309,16 +356,15 @@ public java.lang.String getMember() {
    * 
* * string member = 3; + * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -329,11 +375,14 @@ public java.lang.String getMember() { public static final int CONDITION_FIELD_NUMBER = 4; private com.google.type.Expr condition_; /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -341,11 +390,14 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ @java.lang.Override @@ -353,6 +405,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    * 
@@ -365,6 +419,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,8 +431,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 (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -400,8 +454,7 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -410,8 +463,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -421,7 +473,7 @@ 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.iam.v1.BindingDelta)) { return super.equals(obj); @@ -429,14 +481,11 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.BindingDelta other = (com.google.iam.v1.BindingDelta) obj; if (action_ != other.action_) return false; - if (!getRole() - .equals(other.getRole())) return false; - if (!getMember() - .equals(other.getMember())) return false; + if (!getRole().equals(other.getRole())) return false; + if (!getMember().equals(other.getMember())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; + if (!getCondition().equals(other.getCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -464,97 +513,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.BindingDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.BindingDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.BindingDelta 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.iam.v1.BindingDelta parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.CodedInputStream 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.iam.v1.BindingDelta 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.iam.v1.BindingDelta 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; } /** + * + * *
    * One delta entry for Binding. Each individual change (only one member in each
    * entry) to a binding will be a separate entry.
@@ -562,33 +617,30 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.BindingDelta}
    */
-  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.iam.v1.BindingDelta)
       com.google.iam.v1.BindingDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.BindingDelta.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -605,8 +657,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
@@ -627,7 +678,9 @@ public com.google.iam.v1.BindingDelta build() {
     @java.lang.Override
     public com.google.iam.v1.BindingDelta buildPartial() {
       com.google.iam.v1.BindingDelta result = new com.google.iam.v1.BindingDelta(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -644,9 +697,7 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) {
         result.member_ = member_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.condition_ = conditionBuilder_ == null
-            ? condition_
-            : conditionBuilder_.build();
+        result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
       }
     }
 
@@ -654,38 +705,39 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) {
     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.iam.v1.BindingDelta) {
-        return mergeFrom((com.google.iam.v1.BindingDelta)other);
+        return mergeFrom((com.google.iam.v1.BindingDelta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -736,34 +788,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              action_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              role_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              member_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getConditionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                action_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                role_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                member_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -773,28 +828,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int action_ = 0;
     /**
+     *
+     *
      * 
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -805,26 +868,33 @@ public Builder setActionValue(int value) { return this; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { - com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.forNumber(action_); + com.google.iam.v1.BindingDelta.Action result = + com.google.iam.v1.BindingDelta.Action.forNumber(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @param value The action to set. * @return This builder for chaining. */ @@ -838,12 +908,15 @@ public Builder setAction(com.google.iam.v1.BindingDelta.Action value) { return this; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -855,6 +928,8 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -862,13 +937,13 @@ public Builder clearAction() {
      * 
* * string role = 2; + * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -877,6 +952,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -884,15 +961,14 @@ public java.lang.String getRole() {
      * 
* * string role = 2; + * * @return The bytes for role. */ - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -900,6 +976,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -907,18 +985,22 @@ public java.lang.String getRole() {
      * 
* * string role = 2; + * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } role_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -926,6 +1008,7 @@ public Builder setRole(
      * 
* * string role = 2; + * * @return This builder for chaining. */ public Builder clearRole() { @@ -935,6 +1018,8 @@ public Builder clearRole() { return this; } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -942,12 +1027,14 @@ public Builder clearRole() {
      * 
* * string role = 2; + * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000002; @@ -957,6 +1044,8 @@ public Builder setRoleBytes( private java.lang.Object member_ = ""; /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -964,13 +1053,13 @@ public Builder setRoleBytes(
      * 
* * string member = 3; + * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -979,6 +1068,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -986,15 +1077,14 @@ public java.lang.String getMember() {
      * 
* * string member = 3; + * * @return The bytes for member. */ - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -1002,6 +1092,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1009,18 +1101,22 @@ public java.lang.String getMember() {
      * 
* * string member = 3; + * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMember(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } member_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1028,6 +1124,7 @@ public Builder setMember(
      * 
* * string member = 3; + * * @return This builder for chaining. */ public Builder clearMember() { @@ -1037,6 +1134,8 @@ public Builder clearMember() { return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1044,12 +1143,14 @@ public Builder clearMember() {
      * 
* * string member = 3; + * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMemberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); member_ = value; bitField0_ |= 0x00000004; @@ -1059,24 +1160,31 @@ public Builder setMemberBytes( private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1087,6 +1195,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1107,14 +1217,15 @@ public Builder setCondition(com.google.type.Expr value) { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; */ - public Builder setCondition( - com.google.type.Expr.Builder builderForValue) { + public Builder setCondition(com.google.type.Expr.Builder builderForValue) { if (conditionBuilder_ == null) { condition_ = builderForValue.build(); } else { @@ -1125,6 +1236,8 @@ public Builder setCondition( return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1133,9 +1246,9 @@ public Builder setCondition( */ public Builder mergeCondition(com.google.type.Expr value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - condition_ != null && - condition_ != com.google.type.Expr.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && condition_ != null + && condition_ != com.google.type.Expr.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); } else { condition_ = value; @@ -1148,6 +1261,8 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1165,6 +1280,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1177,6 +1294,8 @@ public com.google.type.Expr.Builder getConditionBuilder() { return getConditionFieldBuilder().getBuilder(); } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1187,11 +1306,12 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null ? - com.google.type.Expr.getDefaultInstance() : condition_; + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1199,21 +1319,20 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * .google.type.Expr condition = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); + conditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), getParentForChildren(), isClean()); condition_ = null; } return conditionBuilder_; } + @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); } @@ -1223,12 +1342,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.BindingDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.BindingDelta) private static final com.google.iam.v1.BindingDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.BindingDelta(); } @@ -1237,27 +1356,27 @@ public static com.google.iam.v1.BindingDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1272,6 +1391,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.BindingDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java similarity index 73% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index 3d33038cfe..a2959294d9 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -1,34 +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/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingDeltaOrBuilder extends +public interface BindingDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.BindingDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ com.google.iam.v1.BindingDelta.Action getAction(); /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -36,10 +60,13 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string role = 2; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -47,12 +74,14 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string role = 2; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -60,10 +89,13 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string member = 3; + * * @return The member. */ java.lang.String getMember(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -71,30 +103,38 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string member = 3; + * * @return The bytes for member. */ - com.google.protobuf.ByteString - getMemberBytes(); + com.google.protobuf.ByteString getMemberBytes(); /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * 
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java similarity index 92% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java index 7139dde2f6..b5e660fa3a 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingOrBuilder extends +public interface BindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Binding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -65,11 +88,13 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @return A list containing the members. */ - java.util.List - getMembersList(); + java.util.List getMembersList(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -105,10 +130,13 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @return The count of members. */ int getMembersCount(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -144,11 +172,14 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ java.lang.String getMembers(int index); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -184,13 +215,15 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - com.google.protobuf.ByteString - getMembersBytes(int index); + com.google.protobuf.ByteString getMembersBytes(int index); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -204,10 +237,13 @@ public interface BindingOrBuilder extends
    * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -221,10 +257,13 @@ public interface BindingOrBuilder extends
    * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
similarity index 66%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
index 9ad8daecc0..532f56549c 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `GetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ -public final class GetIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetIamPolicyRequest) GetIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetIamPolicyRequest.newBuilder() to construct. private GetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, + com.google.iam.v1.GetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -100,12 +127,15 @@ public java.lang.String getResource() { public static final int OPTIONS_FIELD_NUMBER = 2; private com.google.iam.v1.GetPolicyOptions options_; /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ @java.lang.Override @@ -113,12 +143,15 @@ public boolean hasOptions() { return options_ != null; } /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ @java.lang.Override @@ -126,6 +159,8 @@ public com.google.iam.v1.GetPolicyOptions getOptions() { return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
@@ -139,6 +174,7 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -150,8 +186,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -171,8 +206,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (options_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getOptions());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -182,19 +216,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v1.GetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.GetIamPolicyRequest other = (com.google.iam.v1.GetIamPolicyRequest) obj;
 
-    if (!getResource()
-        .equals(other.getResource())) return false;
+    if (!getResource().equals(other.getResource())) return false;
     if (hasOptions() != other.hasOptions()) return false;
     if (hasOptions()) {
-      if (!getOptions()
-          .equals(other.getOptions())) return false;
+      if (!getOptions().equals(other.getOptions())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -218,130 +250,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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.iam.v1.GetIamPolicyRequest 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 `GetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ - 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.iam.v1.GetIamPolicyRequest) com.google.iam.v1.GetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, + com.google.iam.v1.GetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +393,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override @@ -377,8 +414,11 @@ public com.google.iam.v1.GetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.GetIamPolicyRequest buildPartial() { - com.google.iam.v1.GetIamPolicyRequest result = new com.google.iam.v1.GetIamPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v1.GetIamPolicyRequest result = + new com.google.iam.v1.GetIamPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -389,9 +429,7 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); + result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); } } @@ -399,38 +437,39 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) { 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.iam.v1.GetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.GetIamPolicyRequest)other); + return mergeFrom((com.google.iam.v1.GetIamPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -473,24 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,23 +540,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -525,21 +570,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -547,30 +595,41 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { @@ -580,18 +639,24 @@ public Builder clearResource() { return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -601,36 +666,49 @@ public Builder setResourceBytes( private com.google.iam.v1.GetPolicyOptions options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> optionsBuilder_; + com.google.iam.v1.GetPolicyOptions, + com.google.iam.v1.GetPolicyOptions.Builder, + com.google.iam.v1.GetPolicyOptionsOrBuilder> + optionsBuilder_; /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ public com.google.iam.v1.GetPolicyOptions getOptions() { if (optionsBuilder_ == null) { - return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; + return options_ == null + ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() + : options_; } else { return optionsBuilder_.getMessage(); } } /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -652,6 +730,8 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -659,8 +739,7 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
      *
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
-    public Builder setOptions(
-        com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
+    public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
       if (optionsBuilder_ == null) {
         options_ = builderForValue.build();
       } else {
@@ -671,6 +750,8 @@ public Builder setOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -680,9 +761,9 @@ public Builder setOptions(
      */
     public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       if (optionsBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          options_ != null &&
-          options_ != com.google.iam.v1.GetPolicyOptions.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && options_ != null
+            && options_ != com.google.iam.v1.GetPolicyOptions.getDefaultInstance()) {
           getOptionsBuilder().mergeFrom(value);
         } else {
           options_ = value;
@@ -695,6 +776,8 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -713,6 +796,8 @@ public Builder clearOptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -726,6 +811,8 @@ public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() {
       return getOptionsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -737,11 +824,14 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
       if (optionsBuilder_ != null) {
         return optionsBuilder_.getMessageOrBuilder();
       } else {
-        return options_ == null ?
-            com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_;
+        return options_ == null
+            ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance()
+            : options_;
       }
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -750,21 +840,24 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> 
+            com.google.iam.v1.GetPolicyOptions,
+            com.google.iam.v1.GetPolicyOptions.Builder,
+            com.google.iam.v1.GetPolicyOptionsOrBuilder>
         getOptionsFieldBuilder() {
       if (optionsBuilder_ == null) {
-        optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder>(
-                getOptions(),
-                getParentForChildren(),
-                isClean());
+        optionsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.GetPolicyOptions,
+                com.google.iam.v1.GetPolicyOptions.Builder,
+                com.google.iam.v1.GetPolicyOptionsOrBuilder>(
+                getOptions(), getParentForChildren(), isClean());
         options_ = null;
       }
       return optionsBuilder_;
     }
+
     @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);
     }
 
@@ -774,12 +867,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.GetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.GetIamPolicyRequest)
   private static final com.google.iam.v1.GetIamPolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.GetIamPolicyRequest();
   }
@@ -788,27 +881,27 @@ public static com.google.iam.v1.GetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GetIamPolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GetIamPolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -823,6 +916,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.GetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
similarity index 59%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
index 1107e27878..5f90592d42 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
@@ -1,55 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface GetIamPolicyRequestOrBuilder extends
+public interface GetIamPolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.GetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ boolean hasOptions(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ com.google.iam.v1.GetPolicyOptions getOptions(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
similarity index 70%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
index 783eba9255..9484d8801c 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
@@ -1,55 +1,74 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/options.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Encapsulates settings provided to GetIamPolicy.
  * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ -public final class GetPolicyOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetPolicyOptions) GetPolicyOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyOptions.newBuilder() to construct. private GetPolicyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyOptions() { - } + + private GetPolicyOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, + com.google.iam.v1.GetPolicyOptions.Builder.class); } public static final int REQUESTED_POLICY_VERSION_FIELD_NUMBER = 1; private int requestedPolicyVersion_ = 0; /** + * + * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -68,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -76,6 +96,7 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -87,8 +108,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 (requestedPolicyVersion_ != 0) { output.writeInt32(1, requestedPolicyVersion_); } @@ -102,8 +122,7 @@ public int getSerializedSize() { size = 0; if (requestedPolicyVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, requestedPolicyVersion_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, requestedPolicyVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -113,15 +132,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.iam.v1.GetPolicyOptions)) { return super.equals(obj); } com.google.iam.v1.GetPolicyOptions other = (com.google.iam.v1.GetPolicyOptions) obj; - if (getRequestedPolicyVersion() - != other.getRequestedPolicyVersion()) return false; + if (getRequestedPolicyVersion() != other.getRequestedPolicyVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -140,130 +158,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.GetPolicyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.GetPolicyOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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.iam.v1.GetPolicyOptions 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; } /** + * + * *
    * Encapsulates settings provided to GetIamPolicy.
    * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ - 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.iam.v1.GetPolicyOptions) com.google.iam.v1.GetPolicyOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, + com.google.iam.v1.GetPolicyOptions.Builder.class); } // Construct using com.google.iam.v1.GetPolicyOptions.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -273,9 +296,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override @@ -295,7 +318,9 @@ public com.google.iam.v1.GetPolicyOptions build() { @java.lang.Override public com.google.iam.v1.GetPolicyOptions buildPartial() { com.google.iam.v1.GetPolicyOptions result = new com.google.iam.v1.GetPolicyOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -311,38 +336,39 @@ private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) { 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.iam.v1.GetPolicyOptions) { - return mergeFrom((com.google.iam.v1.GetPolicyOptions)other); + return mergeFrom((com.google.iam.v1.GetPolicyOptions) other); } else { super.mergeFrom(other); return this; @@ -380,17 +406,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - requestedPolicyVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + requestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -400,10 +428,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int requestedPolicyVersion_ ; + private int requestedPolicyVersion_; /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -422,6 +453,7 @@ public Builder mergeFrom(
      * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -429,6 +461,8 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -447,17 +481,20 @@ public int getRequestedPolicyVersion() {
      * 
* * int32 requested_policy_version = 1; + * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ public Builder setRequestedPolicyVersion(int value) { - + requestedPolicyVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -476,6 +513,7 @@ public Builder setRequestedPolicyVersion(int value) {
      * 
* * int32 requested_policy_version = 1; + * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { @@ -484,9 +522,9 @@ public Builder clearRequestedPolicyVersion() { 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); } @@ -496,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.GetPolicyOptions) } // @@protoc_insertion_point(class_scope:google.iam.v1.GetPolicyOptions) private static final com.google.iam.v1.GetPolicyOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.GetPolicyOptions(); } @@ -510,27 +548,27 @@ public static com.google.iam.v1.GetPolicyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -545,6 +583,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.GetPolicyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java similarity index 64% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java index 64770ef737..1cd51a9971 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.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/iam/v1/options.proto package com.google.iam.v1; -public interface GetPolicyOptionsOrBuilder extends +public interface GetPolicyOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.GetPolicyOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -26,6 +44,7 @@ public interface GetPolicyOptionsOrBuilder extends
    * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ int getRequestedPolicyVersion(); diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java new file mode 100644 index 0000000000..57652c10d9 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/iam_policy.proto + +package com.google.iam.v1; + +public final class IamPolicyProto { + private IamPolicyProto() {} + + 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_iam_v1_SetIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsResponse_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\036google/iam/v1/iam_policy.proto\022\rgoogle" + + ".iam.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032\033google/iam/v1/options.proto\032\032google/" + + "iam/v1/policy.proto\032 google/protobuf/fie" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" + + "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" + + "gle.golang.org/genproto/googleapis/iam/v" + + "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" + + "Cloud\\Iam\\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.iam.v1.OptionsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, + new java.lang.String[] { + "Resource", "Policy", "UpdateMask", + }); + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, + new java.lang.String[] { + "Resource", "Options", + }); + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, + new java.lang.String[] { + "Resource", "Permissions", + }); + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, + new java.lang.String[] { + "Permissions", + }); + 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.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.iam.v1.OptionsProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java new file mode 100644 index 0000000000..9c13280b2b --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/options.proto + +package com.google.iam.v1; + +public final class OptionsProto { + private OptionsProto() {} + + 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_iam_v1_GetPolicyOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetPolicyOptions_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\033google/iam/v1/options.proto\022\rgoogle.ia" + + "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" + + "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" + + "B\014OptionsProtoP\001Z0google.golang.org/genp" + + "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" + + "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_iam_v1_GetPolicyOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetPolicyOptions_descriptor, + new java.lang.String[] { + "RequestedPolicyVersion", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java similarity index 84% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java index 2248e71782..791003d25e 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * An Identity and Access Management (IAM) policy, which specifies access
  * controls for Google Cloud resources.
@@ -68,15 +85,16 @@
  *
  * Protobuf type {@code google.iam.v1.Policy}
  */
-public final class Policy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Policy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.Policy)
     PolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Policy.newBuilder() to construct.
   private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Policy() {
     bindings_ = java.util.Collections.emptyList();
     auditConfigs_ = java.util.Collections.emptyList();
@@ -85,18 +103,16 @@ private Policy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Policy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
   }
 
@@ -111,6 +127,8 @@ protected java.lang.Object newInstance(
   public static final int VERSION_FIELD_NUMBER = 1;
   private int version_ = 0;
   /**
+   *
+   *
    * 
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -133,6 +151,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -141,9 +160,12 @@ public int getVersion() { } public static final int BINDINGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List bindings_; /** + * + * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -163,6 +185,8 @@ public java.util.List getBindingsList() {
     return bindings_;
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -178,11 +202,12 @@ public java.util.List getBindingsList() {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public java.util.List 
-      getBindingsOrBuilderList() {
+  public java.util.List getBindingsOrBuilderList() {
     return bindings_;
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -202,6 +227,8 @@ public int getBindingsCount() {
     return bindings_.size();
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -221,6 +248,8 @@ public com.google.iam.v1.Binding getBindings(int index) {
     return bindings_.get(index);
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -236,15 +265,17 @@ public com.google.iam.v1.Binding getBindings(int index) {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-      int index) {
+  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
     return bindings_.get(index);
   }
 
   public static final int AUDIT_CONFIGS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private java.util.List auditConfigs_;
   /**
+   *
+   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -256,6 +287,8 @@ public java.util.List getAuditConfigsList() { return auditConfigs_; } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -263,11 +296,13 @@ public java.util.List getAuditConfigsList() { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigsOrBuilderList() { return auditConfigs_; } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -279,6 +314,8 @@ public int getAuditConfigsCount() { return auditConfigs_.size(); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -290,6 +327,8 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { return auditConfigs_.get(index); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -297,14 +336,15 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { return auditConfigs_.get(index); } public static final int ETAG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -320,6 +360,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(
    * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -328,6 +369,7 @@ public com.google.protobuf.ByteString getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +381,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 (version_ != 0) { output.writeInt32(1, version_); } @@ -363,20 +404,16 @@ public int getSerializedSize() { size = 0; if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); } if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, etag_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, etag_); } for (int i = 0; i < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, bindings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, bindings_.get(i)); } for (int i = 0; i < auditConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, auditConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, auditConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -386,21 +423,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.iam.v1.Policy)) { return super.equals(obj); } com.google.iam.v1.Policy other = (com.google.iam.v1.Policy) obj; - if (getVersion() - != other.getVersion()) return false; - if (!getBindingsList() - .equals(other.getBindingsList())) return false; - if (!getAuditConfigsList() - .equals(other.getAuditConfigsList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (getVersion() != other.getVersion()) return false; + if (!getBindingsList().equals(other.getBindingsList())) return false; + if (!getAuditConfigsList().equals(other.getAuditConfigsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -429,97 +462,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.Policy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.Policy 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.iam.v1.Policy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.Policy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.CodedInputStream 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.iam.v1.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An Identity and Access Management (IAM) policy, which specifies access
    * controls for Google Cloud resources.
@@ -584,12 +623,11 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.Policy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy)
       com.google.iam.v1.PolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -602,15 +640,12 @@ public static final class Builder extends
     }
 
     // Construct using com.google.iam.v1.Policy.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -635,8 +670,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -658,7 +692,9 @@ public com.google.iam.v1.Policy build() {
     public com.google.iam.v1.Policy buildPartial() {
       com.google.iam.v1.Policy result = new com.google.iam.v1.Policy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -698,38 +734,39 @@ private void buildPartial0(com.google.iam.v1.Policy result) {
     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.iam.v1.Policy) {
-        return mergeFrom((com.google.iam.v1.Policy)other);
+        return mergeFrom((com.google.iam.v1.Policy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -759,9 +796,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             bindingsBuilder_ = null;
             bindings_ = other.bindings_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            bindingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBindingsFieldBuilder() : null;
+            bindingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBindingsFieldBuilder()
+                    : null;
           } else {
             bindingsBuilder_.addAllMessages(other.bindings_);
           }
@@ -785,9 +823,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             auditConfigsBuilder_ = null;
             auditConfigs_ = other.auditConfigs_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            auditConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAuditConfigsFieldBuilder() : null;
+            auditConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAuditConfigsFieldBuilder()
+                    : null;
           } else {
             auditConfigsBuilder_.addAllMessages(other.auditConfigs_);
           }
@@ -822,48 +861,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              version_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 26: {
-              etag_ = input.readBytes();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 34: {
-              com.google.iam.v1.Binding m =
-                  input.readMessage(
-                      com.google.iam.v1.Binding.parser(),
-                      extensionRegistry);
-              if (bindingsBuilder_ == null) {
-                ensureBindingsIsMutable();
-                bindings_.add(m);
-              } else {
-                bindingsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 34
-            case 50: {
-              com.google.iam.v1.AuditConfig m =
-                  input.readMessage(
-                      com.google.iam.v1.AuditConfig.parser(),
-                      extensionRegistry);
-              if (auditConfigsBuilder_ == null) {
-                ensureAuditConfigsIsMutable();
-                auditConfigs_.add(m);
-              } else {
-                auditConfigsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                version_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 26:
+              {
+                etag_ = input.readBytes();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.iam.v1.Binding m =
+                    input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry);
+                if (bindingsBuilder_ == null) {
+                  ensureBindingsIsMutable();
+                  bindings_.add(m);
+                } else {
+                  bindingsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+            case 50:
+              {
+                com.google.iam.v1.AuditConfig m =
+                    input.readMessage(com.google.iam.v1.AuditConfig.parser(), extensionRegistry);
+                if (auditConfigsBuilder_ == null) {
+                  ensureAuditConfigsIsMutable();
+                  auditConfigs_.add(m);
+                } else {
+                  auditConfigsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -873,10 +913,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int version_ ;
+    private int version_;
     /**
+     *
+     *
      * 
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -899,6 +942,7 @@ public Builder mergeFrom(
      * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -906,6 +950,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -928,17 +974,20 @@ public int getVersion() {
      * 
* * int32 version = 1; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -961,6 +1010,7 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -970,19 +1020,24 @@ public Builder clearVersion() { return this; } - private java.util.List bindings_ = - java.util.Collections.emptyList(); + private java.util.List bindings_ = java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { bindings_ = new java.util.ArrayList(bindings_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> bindingsBuilder_; + com.google.iam.v1.Binding, + com.google.iam.v1.Binding.Builder, + com.google.iam.v1.BindingOrBuilder> + bindingsBuilder_; /** + * + * *
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1005,6 +1060,8 @@ public java.util.List getBindingsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1027,6 +1084,8 @@ public int getBindingsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1049,6 +1108,8 @@ public com.google.iam.v1.Binding getBindings(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1063,8 +1124,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(
-        int index, com.google.iam.v1.Binding value) {
+    public Builder setBindings(int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1078,6 +1138,8 @@ public Builder setBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1092,8 +1154,7 @@ public Builder setBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(
-        int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.set(index, builderForValue.build());
@@ -1104,6 +1165,8 @@ public Builder setBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1132,6 +1195,8 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1146,8 +1211,7 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        int index, com.google.iam.v1.Binding value) {
+    public Builder addBindings(int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1161,6 +1225,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1175,8 +1241,7 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(builderForValue.build());
@@ -1187,6 +1252,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1201,8 +1268,7 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(index, builderForValue.build());
@@ -1213,6 +1279,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1227,12 +1295,10 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addAllBindings(
-        java.lang.Iterable values) {
+    public Builder addAllBindings(java.lang.Iterable values) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, bindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_);
         onChanged();
       } else {
         bindingsBuilder_.addAllMessages(values);
@@ -1240,6 +1306,8 @@ public Builder addAllBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1265,6 +1333,8 @@ public Builder clearBindings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1290,6 +1360,8 @@ public Builder removeBindings(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1304,11 +1376,12 @@ public Builder removeBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder getBindingsBuilder(
-        int index) {
+    public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) {
       return getBindingsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1323,14 +1396,16 @@ public com.google.iam.v1.Binding.Builder getBindingsBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-        int index) {
+    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
       if (bindingsBuilder_ == null) {
-        return bindings_.get(index);  } else {
+        return bindings_.get(index);
+      } else {
         return bindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1345,8 +1420,7 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List 
-         getBindingsOrBuilderList() {
+    public java.util.List getBindingsOrBuilderList() {
       if (bindingsBuilder_ != null) {
         return bindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1354,6 +1428,8 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1369,10 +1445,11 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
      * repeated .google.iam.v1.Binding bindings = 4;
      */
     public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
-      return getBindingsFieldBuilder().addBuilder(
-          com.google.iam.v1.Binding.getDefaultInstance());
+      return getBindingsFieldBuilder().addBuilder(com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1387,12 +1464,13 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder addBindingsBuilder(
-        int index) {
-      return getBindingsFieldBuilder().addBuilder(
-          index, com.google.iam.v1.Binding.getDefaultInstance());
+    public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
+      return getBindingsFieldBuilder()
+          .addBuilder(index, com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1407,38 +1485,46 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List 
-         getBindingsBuilderList() {
+    public java.util.List getBindingsBuilderList() {
       return getBindingsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> 
+            com.google.iam.v1.Binding,
+            com.google.iam.v1.Binding.Builder,
+            com.google.iam.v1.BindingOrBuilder>
         getBindingsFieldBuilder() {
       if (bindingsBuilder_ == null) {
-        bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>(
-                bindings_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        bindingsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.iam.v1.Binding,
+                com.google.iam.v1.Binding.Builder,
+                com.google.iam.v1.BindingOrBuilder>(
+                bindings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         bindings_ = null;
       }
       return bindingsBuilder_;
     }
 
     private java.util.List auditConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAuditConfigsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         auditConfigs_ = new java.util.ArrayList(auditConfigs_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> auditConfigsBuilder_;
+            com.google.iam.v1.AuditConfig,
+            com.google.iam.v1.AuditConfig.Builder,
+            com.google.iam.v1.AuditConfigOrBuilder>
+        auditConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1453,6 +1539,8 @@ public java.util.List getAuditConfigsList() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1467,6 +1555,8 @@ public int getAuditConfigsCount() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1481,14 +1571,15 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder setAuditConfigs( - int index, com.google.iam.v1.AuditConfig value) { + public Builder setAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1502,6 +1593,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1520,6 +1613,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1540,14 +1635,15 @@ public Builder addAuditConfigs(com.google.iam.v1.AuditConfig value) { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs( - int index, com.google.iam.v1.AuditConfig value) { + public Builder addAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1561,14 +1657,15 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs( - com.google.iam.v1.AuditConfig.Builder builderForValue) { + public Builder addAuditConfigs(com.google.iam.v1.AuditConfig.Builder builderForValue) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); auditConfigs_.add(builderForValue.build()); @@ -1579,6 +1676,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1597,6 +1696,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1607,8 +1708,7 @@ public Builder addAllAuditConfigs( java.lang.Iterable values) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigs_); onChanged(); } else { auditConfigsBuilder_.addAllMessages(values); @@ -1616,6 +1716,8 @@ public Builder addAllAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1633,6 +1735,8 @@ public Builder clearAuditConfigs() { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1650,39 +1754,44 @@ public Builder removeAuditConfigs(int index) { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder( - int index) { + public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder(int index) { return getAuditConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { if (auditConfigsBuilder_ == null) { - return auditConfigs_.get(index); } else { + return auditConfigs_.get(index); + } else { return auditConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List - getAuditConfigsOrBuilderList() { + public java.util.List + getAuditConfigsOrBuilderList() { if (auditConfigsBuilder_ != null) { return auditConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1690,6 +1799,8 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1697,42 +1808,47 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder() { - return getAuditConfigsFieldBuilder().addBuilder( - com.google.iam.v1.AuditConfig.getDefaultInstance()); + return getAuditConfigsFieldBuilder() + .addBuilder(com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( - int index) { - return getAuditConfigsFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditConfig.getDefaultInstance()); + public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(int index) { + return getAuditConfigsFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List - getAuditConfigsBuilderList() { + public java.util.List getAuditConfigsBuilderList() { return getAuditConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> + com.google.iam.v1.AuditConfig, + com.google.iam.v1.AuditConfig.Builder, + com.google.iam.v1.AuditConfigOrBuilder> getAuditConfigsFieldBuilder() { if (auditConfigsBuilder_ == null) { - auditConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder>( - auditConfigs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + auditConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, + com.google.iam.v1.AuditConfig.Builder, + com.google.iam.v1.AuditConfigOrBuilder>( + auditConfigs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); auditConfigs_ = null; } return auditConfigsBuilder_; @@ -1740,6 +1856,8 @@ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1755,6 +1873,7 @@ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(
      * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -1762,6 +1881,8 @@ public com.google.protobuf.ByteString getEtag() { return etag_; } /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1777,17 +1898,22 @@ public com.google.protobuf.ByteString getEtag() {
      * 
* * bytes etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1803,6 +1929,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * 
* * bytes etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1811,9 +1938,9 @@ public Builder clearEtag() { 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); } @@ -1823,12 +1950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) private static final com.google.iam.v1.Policy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.Policy(); } @@ -1837,27 +1964,27 @@ public static com.google.iam.v1.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1872,6 +1999,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java similarity index 76% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index bc89a99d1e..9ee92e988c 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.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/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * The difference delta between two policies.
  * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ -public final class PolicyDelta extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyDelta extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.PolicyDelta) PolicyDeltaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyDelta.newBuilder() to construct. private PolicyDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyDelta() { bindingDeltas_ = java.util.Collections.emptyList(); auditConfigDeltas_ = java.util.Collections.emptyList(); @@ -26,33 +44,35 @@ private PolicyDelta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyDelta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto + .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } public static final int BINDING_DELTAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List bindingDeltas_; /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -64,6 +84,8 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -71,11 +93,13 @@ public java.util.List getBindingDeltasList() { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBindingDeltasOrBuilderList() { return bindingDeltas_; } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -87,6 +111,8 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -98,6 +124,8 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -105,15 +133,17 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { return bindingDeltas_.get(index); } public static final int AUDIT_CONFIG_DELTAS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List auditConfigDeltas_; /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -125,6 +155,8 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -132,11 +164,13 @@ public java.util.List getAuditConfigDeltasLi * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigDeltasOrBuilderList() { return auditConfigDeltas_; } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -148,6 +182,8 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -159,6 +195,8 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -166,12 +204,12 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { return auditConfigDeltas_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +221,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 < bindingDeltas_.size(); i++) { output.writeMessage(1, bindingDeltas_.get(i)); } @@ -201,12 +238,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bindingDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindingDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindingDeltas_.get(i)); } for (int i = 0; i < auditConfigDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, auditConfigDeltas_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, auditConfigDeltas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,17 +252,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.iam.v1.PolicyDelta)) { return super.equals(obj); } com.google.iam.v1.PolicyDelta other = (com.google.iam.v1.PolicyDelta) obj; - if (!getBindingDeltasList() - .equals(other.getBindingDeltasList())) return false; - if (!getAuditConfigDeltasList() - .equals(other.getAuditConfigDeltasList())) return false; + if (!getBindingDeltasList().equals(other.getBindingDeltasList())) return false; + if (!getAuditConfigDeltasList().equals(other.getAuditConfigDeltasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,130 +285,133 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.PolicyDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.PolicyDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.CodedInputStream 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.iam.v1.PolicyDelta 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.iam.v1.PolicyDelta 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 difference delta between two policies.
    * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ - 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.iam.v1.PolicyDelta) com.google.iam.v1.PolicyDeltaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto + .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } // Construct using com.google.iam.v1.PolicyDelta.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,8 +434,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @@ -420,7 +456,9 @@ public com.google.iam.v1.PolicyDelta build() { public com.google.iam.v1.PolicyDelta buildPartial() { com.google.iam.v1.PolicyDelta result = new com.google.iam.v1.PolicyDelta(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -454,38 +492,39 @@ private void buildPartial0(com.google.iam.v1.PolicyDelta result) { 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.iam.v1.PolicyDelta) { - return mergeFrom((com.google.iam.v1.PolicyDelta)other); + return mergeFrom((com.google.iam.v1.PolicyDelta) other); } else { super.mergeFrom(other); return this; @@ -512,9 +551,10 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { bindingDeltasBuilder_ = null; bindingDeltas_ = other.bindingDeltas_; bitField0_ = (bitField0_ & ~0x00000001); - bindingDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindingDeltasFieldBuilder() : null; + bindingDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBindingDeltasFieldBuilder() + : null; } else { bindingDeltasBuilder_.addAllMessages(other.bindingDeltas_); } @@ -538,9 +578,10 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { auditConfigDeltasBuilder_ = null; auditConfigDeltas_ = other.auditConfigDeltas_; bitField0_ = (bitField0_ & ~0x00000002); - auditConfigDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuditConfigDeltasFieldBuilder() : null; + auditConfigDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuditConfigDeltasFieldBuilder() + : null; } else { auditConfigDeltasBuilder_.addAllMessages(other.auditConfigDeltas_); } @@ -572,38 +613,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.iam.v1.BindingDelta m = - input.readMessage( - com.google.iam.v1.BindingDelta.parser(), - extensionRegistry); - if (bindingDeltasBuilder_ == null) { - ensureBindingDeltasIsMutable(); - bindingDeltas_.add(m); - } else { - bindingDeltasBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.iam.v1.AuditConfigDelta m = - input.readMessage( - com.google.iam.v1.AuditConfigDelta.parser(), - extensionRegistry); - if (auditConfigDeltasBuilder_ == null) { - ensureAuditConfigDeltasIsMutable(); - auditConfigDeltas_.add(m); - } else { - auditConfigDeltasBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.iam.v1.BindingDelta m = + input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry); + if (bindingDeltasBuilder_ == null) { + ensureBindingDeltasIsMutable(); + bindingDeltas_.add(m); + } else { + bindingDeltasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.iam.v1.AuditConfigDelta m = + input.readMessage( + com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry); + if (auditConfigDeltasBuilder_ == null) { + ensureAuditConfigDeltasIsMutable(); + auditConfigDeltas_.add(m); + } else { + auditConfigDeltasBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,21 +654,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List bindingDeltas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBindingDeltasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = new java.util.ArrayList(bindingDeltas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> bindingDeltasBuilder_; + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder> + bindingDeltasBuilder_; /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -642,6 +690,8 @@ public java.util.List getBindingDeltasList() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -656,6 +706,8 @@ public int getBindingDeltasCount() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -670,14 +722,15 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder setBindingDeltas( - int index, com.google.iam.v1.BindingDelta value) { + public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,6 +744,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -709,6 +764,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -729,14 +786,15 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta value) { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas( - int index, com.google.iam.v1.BindingDelta value) { + public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,14 +808,15 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas( - com.google.iam.v1.BindingDelta.Builder builderForValue) { + public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderForValue) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); bindingDeltas_.add(builderForValue.build()); @@ -768,6 +827,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -786,6 +847,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -796,8 +859,7 @@ public Builder addAllBindingDeltas( java.lang.Iterable values) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindingDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingDeltas_); onChanged(); } else { bindingDeltasBuilder_.addAllMessages(values); @@ -805,6 +867,8 @@ public Builder addAllBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -822,6 +886,8 @@ public Builder clearBindingDeltas() { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -839,39 +905,44 @@ public Builder removeBindingDeltas(int index) { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder( - int index) { + public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder(int index) { return getBindingDeltasFieldBuilder().getBuilder(index); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { if (bindingDeltasBuilder_ == null) { - return bindingDeltas_.get(index); } else { + return bindingDeltas_.get(index); + } else { return bindingDeltasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasOrBuilderList() { + public java.util.List + getBindingDeltasOrBuilderList() { if (bindingDeltasBuilder_ != null) { return bindingDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -879,6 +950,8 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -886,38 +959,46 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder() { - return getBindingDeltasFieldBuilder().addBuilder( - com.google.iam.v1.BindingDelta.getDefaultInstance()); + return getBindingDeltasFieldBuilder() + .addBuilder(com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( - int index) { - return getBindingDeltasFieldBuilder().addBuilder( - index, com.google.iam.v1.BindingDelta.getDefaultInstance()); + public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder(int index) { + return getBindingDeltasFieldBuilder() + .addBuilder(index, com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasBuilderList() { + public java.util.List getBindingDeltasBuilderList() { return getBindingDeltasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder> getBindingDeltasFieldBuilder() { if (bindingDeltasBuilder_ == null) { - bindingDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder>( + bindingDeltasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder>( bindingDeltas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -928,18 +1009,25 @@ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( } private java.util.List auditConfigDeltas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuditConfigDeltasIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = new java.util.ArrayList(auditConfigDeltas_); + auditConfigDeltas_ = + new java.util.ArrayList(auditConfigDeltas_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> auditConfigDeltasBuilder_; + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder> + auditConfigDeltasBuilder_; /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -954,6 +1042,8 @@ public java.util.List getAuditConfigDeltasLi } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -968,6 +1058,8 @@ public int getAuditConfigDeltasCount() { } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -982,14 +1074,15 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder setAuditConfigDeltas( - int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1003,6 +1096,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1021,6 +1116,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1041,14 +1138,15 @@ public Builder addAuditConfigDeltas(com.google.iam.v1.AuditConfigDelta value) { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder addAuditConfigDeltas( - int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1062,6 +1160,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1080,6 +1180,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1098,6 +1200,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1108,8 +1212,7 @@ public Builder addAllAuditConfigDeltas( java.lang.Iterable values) { if (auditConfigDeltasBuilder_ == null) { ensureAuditConfigDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditConfigDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigDeltas_); onChanged(); } else { auditConfigDeltasBuilder_.addAllMessages(values); @@ -1117,6 +1220,8 @@ public Builder addAllAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1134,6 +1239,8 @@ public Builder clearAuditConfigDeltas() { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1151,39 +1258,44 @@ public Builder removeAuditConfigDeltas(int index) { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder( - int index) { + public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder(int index) { return getAuditConfigDeltasFieldBuilder().getBuilder(index); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { if (auditConfigDeltasBuilder_ == null) { - return auditConfigDeltas_.get(index); } else { + return auditConfigDeltas_.get(index); + } else { return auditConfigDeltasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasOrBuilderList() { + public java.util.List + getAuditConfigDeltasOrBuilderList() { if (auditConfigDeltasBuilder_ != null) { return auditConfigDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -1191,6 +1303,8 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1198,38 +1312,47 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder() { - return getAuditConfigDeltasFieldBuilder().addBuilder( - com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + return getAuditConfigDeltasFieldBuilder() + .addBuilder(com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( - int index) { - return getAuditConfigDeltasFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(int index) { + return getAuditConfigDeltasFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasBuilderList() { + public java.util.List + getAuditConfigDeltasBuilderList() { return getAuditConfigDeltasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder> getAuditConfigDeltasFieldBuilder() { if (auditConfigDeltasBuilder_ == null) { - auditConfigDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder>( + auditConfigDeltasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder>( auditConfigDeltas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1238,9 +1361,9 @@ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( } return auditConfigDeltasBuilder_; } + @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); } @@ -1250,12 +1373,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.PolicyDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.PolicyDelta) private static final com.google.iam.v1.PolicyDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.PolicyDelta(); } @@ -1264,27 +1387,27 @@ public static com.google.iam.v1.PolicyDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1299,6 +1422,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.PolicyDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java similarity index 71% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index 4deb8c1b7d..fd3e1c0ddc 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyDeltaOrBuilder extends +public interface PolicyDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.PolicyDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List - getBindingDeltasList(); + java.util.List getBindingDeltasList(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -25,6 +44,8 @@ public interface PolicyDeltaOrBuilder extends */ com.google.iam.v1.BindingDelta getBindingDeltas(int index); /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -33,34 +54,39 @@ public interface PolicyDeltaOrBuilder extends */ int getBindingDeltasCount(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List - getBindingDeltasOrBuilderList(); + java.util.List getBindingDeltasOrBuilderList(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index); + com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List - getAuditConfigDeltasList(); + java.util.List getAuditConfigDeltasList(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -69,6 +95,8 @@ com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( */ com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -77,21 +105,24 @@ com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( */ int getAuditConfigDeltasCount(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List + java.util.List getAuditConfigDeltasOrBuilderList(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index); + com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index); } diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java similarity index 86% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java index 70e913de0c..571dcb8057 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.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/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyOrBuilder extends +public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -30,11 +48,14 @@ public interface PolicyOrBuilder extends
    * 
* * int32 version = 1; + * * @return The version. */ int getVersion(); /** + * + * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -49,9 +70,10 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List 
-      getBindingsList();
+  java.util.List getBindingsList();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -68,6 +90,8 @@ public interface PolicyOrBuilder extends
    */
   com.google.iam.v1.Binding getBindings(int index);
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -84,6 +108,8 @@ public interface PolicyOrBuilder extends
    */
   int getBindingsCount();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -98,9 +124,10 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List 
-      getBindingsOrBuilderList();
+  java.util.List getBindingsOrBuilderList();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -115,19 +142,21 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-      int index);
+  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List - getAuditConfigsList(); + java.util.List getAuditConfigsList(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -136,6 +165,8 @@ com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( */ com.google.iam.v1.AuditConfig getAuditConfigs(int index); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -144,25 +175,29 @@ com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( */ int getAuditConfigsCount(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List - getAuditConfigsOrBuilderList(); + java.util.List getAuditConfigsOrBuilderList(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index); + com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index); /** + * + * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -178,6 +213,7 @@ com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(
    * 
* * bytes etag = 3; + * * @return The etag. */ com.google.protobuf.ByteString getEtag(); diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java new file mode 100644 index 0000000000..8ba3e50af0 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public final class PolicyProto { + private PolicyProto() {} + + 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_iam_v1_Policy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Binding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Binding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditLogConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_PolicyDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_BindingDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfigDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfigDelta_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\032google/iam/v1/policy.proto\022\rgoogle.iam" + + ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" + + "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" + + "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" + + "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" + + "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" + + " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" + + "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" + + "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" + + "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" + + "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" + + ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" + + "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" + + "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" + + "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" + + ".google.iam.v1.BindingDelta\022<\n\023audit_con" + + "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" + + "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" + + "(\0162\".google.iam.v1.BindingDelta.Action\022\014" + + "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" + + "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" + + "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" + + "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" + + ".google.iam.v1.AuditConfigDelta.Action\022\017" + + "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" + + "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" + + "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" + + "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" + + "olang.org/genproto/googleapis/iam/v1;iam" + + "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" + + "\\Iam\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v1_Policy_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_Policy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Policy_descriptor, + new java.lang.String[] { + "Version", "Bindings", "AuditConfigs", "Etag", + }); + internal_static_google_iam_v1_Binding_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_Binding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Binding_descriptor, + new java.lang.String[] { + "Role", "Members", "Condition", + }); + internal_static_google_iam_v1_AuditConfig_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfig_descriptor, + new java.lang.String[] { + "Service", "AuditLogConfigs", + }); + internal_static_google_iam_v1_AuditLogConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditLogConfig_descriptor, + new java.lang.String[] { + "LogType", "ExemptedMembers", + }); + internal_static_google_iam_v1_PolicyDelta_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_PolicyDelta_descriptor, + new java.lang.String[] { + "BindingDeltas", "AuditConfigDeltas", + }); + internal_static_google_iam_v1_BindingDelta_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_BindingDelta_descriptor, + new java.lang.String[] { + "Action", "Role", "Member", "Condition", + }); + internal_static_google_iam_v1_AuditConfigDelta_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfigDelta_descriptor, + new java.lang.String[] { + "Action", "Service", "ExemptedMember", "LogType", + }); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java similarity index 72% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 9118c80f97..15561955bd 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** + * + * *
  * Request message for `SetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ -public final class SetIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.SetIamPolicyRequest) SetIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetIamPolicyRequest.newBuilder() to construct. private SetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, + com.google.iam.v1.SetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -100,6 +127,8 @@ public java.lang.String getResource() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -108,6 +137,7 @@ public java.lang.String getResource() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -115,6 +145,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -123,6 +155,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -130,6 +163,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -147,6 +182,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -155,6 +192,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -162,6 +200,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -170,6 +210,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -177,6 +218,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -192,6 +235,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +247,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(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -227,12 +270,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -242,24 +283,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.iam.v1.SetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.SetIamPolicyRequest other = (com.google.iam.v1.SetIamPolicyRequest) obj;
 
-    if (!getResource()
-        .equals(other.getResource())) return false;
+    if (!getResource().equals(other.getResource())) return false;
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -287,130 +325,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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.iam.v1.SetIamPolicyRequest 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 `SetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ - 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.iam.v1.SetIamPolicyRequest) com.google.iam.v1.SetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, + com.google.iam.v1.SetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override @@ -451,8 +494,11 @@ public com.google.iam.v1.SetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.SetIamPolicyRequest buildPartial() { - com.google.iam.v1.SetIamPolicyRequest result = new com.google.iam.v1.SetIamPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v1.SetIamPolicyRequest result = + new com.google.iam.v1.SetIamPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -463,14 +509,10 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -478,38 +520,39 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { 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.iam.v1.SetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.SetIamPolicyRequest)other); + return mergeFrom((com.google.iam.v1.SetIamPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -555,31 +598,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,23 +632,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -614,21 +662,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -636,30 +687,41 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { @@ -669,18 +731,24 @@ public Builder clearResource() { return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -690,8 +758,13 @@ public Builder setResourceBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -700,12 +773,15 @@ public Builder setResourceBytes(
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -714,6 +790,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -724,6 +801,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -747,6 +826,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -756,8 +837,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -768,6 +848,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -779,9 +861,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v1.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -794,6 +876,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -814,6 +898,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -829,6 +915,8 @@ public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -842,11 +930,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -857,14 +946,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -872,8 +963,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     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_;
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -882,12 +978,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -896,16 +995,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @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(); } } /** + * + * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -929,6 +1033,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -938,8 +1044,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -950,6 +1055,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -961,9 +1068,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -976,6 +1083,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -996,6 +1105,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1011,6 +1122,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1024,11 +1137,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1039,21 +1155,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     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);
     }
 
@@ -1063,12 +1182,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.SetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.SetIamPolicyRequest)
   private static final com.google.iam.v1.SetIamPolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.SetIamPolicyRequest();
   }
@@ -1077,27 +1196,27 @@ public static com.google.iam.v1.SetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SetIamPolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SetIamPolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1112,6 +1231,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.SetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
similarity index 75%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
index e13b8ea24e..48ab0dff5d 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface SetIamPolicyRequestOrBuilder extends
+public interface SetIamPolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.SetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -38,10 +65,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -50,10 +80,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -66,6 +99,8 @@ public interface SetIamPolicyRequestOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -74,10 +109,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -86,10 +124,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
similarity index 70%
rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
index 22fb69068f..ee3530d94e 100644
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.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/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ -public final class TestIamPermissionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestIamPermissionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsRequest) TestIamPermissionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestIamPermissionsRequest.newBuilder() to construct. private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestIamPermissionsRequest() { resource_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,39 +44,46 @@ private TestIamPermissionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, + com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -99,9 +126,12 @@ public java.lang.String getResource() { } public static final int PERMISSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList permissions_; /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -110,13 +140,15 @@ public java.lang.String getResource() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -125,12 +157,15 @@ public java.lang.String getResource() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -139,6 +174,7 @@ public int getPermissionsCount() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -146,6 +182,8 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -154,15 +192,16 @@ public java.lang.String getPermissions(int index) {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +213,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(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -210,17 +248,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.iam.v1.TestIamPermissionsRequest)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsRequest other = (com.google.iam.v1.TestIamPermissionsRequest) obj; + com.google.iam.v1.TestIamPermissionsRequest other = + (com.google.iam.v1.TestIamPermissionsRequest) obj; - if (!getResource() - .equals(other.getResource())) return false; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,130 +280,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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.iam.v1.TestIamPermissionsRequest 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 `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ - 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.iam.v1.TestIamPermissionsRequest) com.google.iam.v1.TestIamPermissionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, + com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override @@ -399,9 +442,12 @@ public com.google.iam.v1.TestIamPermissionsRequest build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { - com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); + com.google.iam.v1.TestIamPermissionsRequest result = + new com.google.iam.v1.TestIamPermissionsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +471,39 @@ private void buildPartial0(com.google.iam.v1.TestIamPermissionsRequest result) { 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.iam.v1.TestIamPermissionsRequest) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest)other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest) other); } else { super.mergeFrom(other); return this; @@ -506,23 +553,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,23 +582,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -557,21 +612,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -579,30 +637,41 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { @@ -612,18 +681,24 @@ public Builder clearResource() { return this; } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; @@ -631,14 +706,18 @@ public Builder setResourceBytes( return this; } - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -647,13 +726,15 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -662,12 +743,15 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -676,6 +760,7 @@ public int getPermissionsCount() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -683,6 +768,8 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -691,14 +778,16 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -707,19 +796,23 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -728,18 +821,22 @@ public Builder setPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -748,18 +845,19 @@ public Builder addPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -768,6 +866,7 @@ public Builder addAllPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -777,6 +876,8 @@ public Builder clearPermissions() { return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -785,21 +886,23 @@ public Builder clearPermissions() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(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); } @@ -809,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsRequest) private static final com.google.iam.v1.TestIamPermissionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsRequest(); } @@ -823,27 +926,27 @@ public static com.google.iam.v1.TestIamPermissionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,6 +961,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 262da4483e..53b56f2781 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.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/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsRequestOrBuilder extends +public interface TestIamPermissionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -38,11 +65,13 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -51,10 +80,13 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -63,11 +95,14 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -76,9 +111,9 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java similarity index 68% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index 837fce3580..25fb71590e 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -1,88 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** + * + * *
  * Response message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ -public final class TestIamPermissionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestIamPermissionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsResponse) TestIamPermissionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestIamPermissionsResponse.newBuilder() to construct. private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestIamPermissionsResponse() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, + com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList permissions_; /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -90,21 +118,24 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +147,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 < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -146,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.TestIamPermissionsResponse)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsResponse other = (com.google.iam.v1.TestIamPermissionsResponse) obj; + com.google.iam.v1.TestIamPermissionsResponse other = + (com.google.iam.v1.TestIamPermissionsResponse) obj; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,130 +205,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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.iam.v1.TestIamPermissionsResponse 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 `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ - 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.iam.v1.TestIamPermissionsResponse) com.google.iam.v1.TestIamPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, + com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -309,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override @@ -330,9 +366,12 @@ public com.google.iam.v1.TestIamPermissionsResponse build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { - com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); + com.google.iam.v1.TestIamPermissionsResponse result = + new com.google.iam.v1.TestIamPermissionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -353,38 +392,39 @@ private void buildPartial0(com.google.iam.v1.TestIamPermissionsResponse result) 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.iam.v1.TestIamPermissionsResponse) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse)other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse) other); } else { super.mergeFrom(other); return this; @@ -429,18 +469,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,47 +492,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -498,81 +551,95 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -582,27 +649,31 @@ public Builder clearPermissions() { return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(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); } @@ -612,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsResponse) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsResponse) private static final com.google.iam.v1.TestIamPermissionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsResponse(); } @@ -626,27 +697,27 @@ public static com.google.iam.v1.TestIamPermissionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,6 +732,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java rename to java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index ace164f534..da677cbe54 100644 --- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -1,54 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsResponseOrBuilder extends +public interface TestIamPermissionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java similarity index 74% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java index a34f8c5995..6d67c52f34 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Request message for `CreatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.CreatePolicyRequest} */ -public final class CreatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.CreatePolicyRequest) CreatePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePolicyRequest.newBuilder() to construct. private CreatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePolicyRequest() { parent_ = ""; policyId_ = ""; @@ -26,33 +44,37 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.CreatePolicyRequest.class, com.google.iam.v2.CreatePolicyRequest.Builder.class); + com.google.iam.v2.CreatePolicyRequest.class, + com.google.iam.v2.CreatePolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -65,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -73,14 +96,15 @@ 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 that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -93,16 +117,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -113,11 +136,14 @@ public java.lang.String getParent() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v2.Policy policy_; /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -125,11 +151,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -137,6 +166,8 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to create.
    * 
@@ -149,9 +180,12 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { } public static final int POLICY_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object policyId_ = ""; /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -160,6 +194,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; + * * @return The policyId. */ @java.lang.Override @@ -168,14 +203,15 @@ public java.lang.String getPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -184,16 +220,15 @@ public java.lang.String getPolicyId() {
    * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyIdBytes() { + public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyId_ = b; return b; } else { @@ -202,6 +237,7 @@ public java.lang.String getPolicyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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_); } @@ -237,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyId_); @@ -251,22 +285,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.iam.v2.CreatePolicyRequest)) { return super.equals(obj); } com.google.iam.v2.CreatePolicyRequest other = (com.google.iam.v2.CreatePolicyRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } - if (!getPolicyId() - .equals(other.getPolicyId())) return false; + if (!getPolicyId().equals(other.getPolicyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,130 +322,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.CreatePolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.CreatePolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.CreatePolicyRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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.iam.v2.CreatePolicyRequest 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 `CreatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.CreatePolicyRequest} */ - 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.iam.v2.CreatePolicyRequest) com.google.iam.v2.CreatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.CreatePolicyRequest.class, com.google.iam.v2.CreatePolicyRequest.Builder.class); + com.google.iam.v2.CreatePolicyRequest.class, + com.google.iam.v2.CreatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.CreatePolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_CreatePolicyRequest_descriptor; } @java.lang.Override @@ -451,8 +487,11 @@ public com.google.iam.v2.CreatePolicyRequest build() { @java.lang.Override public com.google.iam.v2.CreatePolicyRequest buildPartial() { - com.google.iam.v2.CreatePolicyRequest result = new com.google.iam.v2.CreatePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2.CreatePolicyRequest result = + new com.google.iam.v2.CreatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -463,9 +502,7 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; @@ -476,38 +513,39 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { 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.iam.v2.CreatePolicyRequest) { - return mergeFrom((com.google.iam.v2.CreatePolicyRequest)other); + return mergeFrom((com.google.iam.v2.CreatePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -555,29 +593,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - policyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + policyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +627,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -603,13 +646,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -618,6 +661,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -630,15 +675,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -646,6 +690,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -658,18 +704,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -682,6 +732,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -691,6 +742,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -703,12 +756,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,24 +773,33 @@ public Builder setParentBytes( private com.google.iam.v2.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policyBuilder_; + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v2.Policy getPolicy() { @@ -746,6 +810,8 @@ public com.google.iam.v2.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -766,14 +832,15 @@ public Builder setPolicy(com.google.iam.v2.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPolicy( - com.google.iam.v2.Policy.Builder builderForValue) { + public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -784,6 +851,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -792,9 +861,9 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.iam.v2.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - policy_ != null && - policy_ != com.google.iam.v2.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && policy_ != null + && policy_ != com.google.iam.v2.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -807,6 +876,8 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -824,6 +895,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -836,6 +909,8 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The policy to create.
      * 
@@ -846,11 +921,12 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.iam.v2.Policy.getDefaultInstance() : policy_; + return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -858,14 +934,16 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; @@ -873,6 +951,8 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() { private java.lang.Object policyId_ = ""; /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -881,13 +961,13 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * string policy_id = 3; + * * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; @@ -896,6 +976,8 @@ public java.lang.String getPolicyId() { } } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -904,15 +986,14 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ - public com.google.protobuf.ByteString - getPolicyIdBytes() { + public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyId_ = b; return b; } else { @@ -920,6 +1001,8 @@ public java.lang.String getPolicyId() { } } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -928,18 +1011,22 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; + * * @param value The policyId to set. * @return This builder for chaining. */ - public Builder setPolicyId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } policyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -948,6 +1035,7 @@ public Builder setPolicyId(
      * 
* * string policy_id = 3; + * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -957,6 +1045,8 @@ public Builder clearPolicyId() { return this; } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -965,21 +1055,23 @@ public Builder clearPolicyId() {
      * 
* * string policy_id = 3; + * * @param value The bytes for policyId to set. * @return This builder for chaining. */ - public Builder setPolicyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); policyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1081,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.CreatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.CreatePolicyRequest) private static final com.google.iam.v2.CreatePolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.CreatePolicyRequest(); } @@ -1003,27 +1095,27 @@ public static com.google.iam.v2.CreatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.CreatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java index 7fa6c771c3..3825ae18ff 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface CreatePolicyRequestOrBuilder extends +public interface CreatePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.CreatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -20,10 +38,13 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -36,30 +57,38 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v2.Policy getPolicy(); /** + * + * *
    * Required. The policy to create.
    * 
@@ -69,6 +98,8 @@ public interface CreatePolicyRequestOrBuilder extends com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder(); /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -77,10 +108,13 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string policy_id = 3; + * * @return The policyId. */ java.lang.String getPolicyId(); /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -89,8 +123,8 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ - com.google.protobuf.ByteString - getPolicyIdBytes(); + com.google.protobuf.ByteString getPolicyIdBytes(); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java similarity index 73% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java index e0f3e43cd1..a1fc39876b 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Request message for `DeletePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.DeletePolicyRequest} */ -public final class DeletePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.DeletePolicyRequest) DeletePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePolicyRequest.newBuilder() to construct. private DeletePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePolicyRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,37 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.DeletePolicyRequest.class, com.google.iam.v2.DeletePolicyRequest.Builder.class); + com.google.iam.v2.DeletePolicyRequest.class, + com.google.iam.v2.DeletePolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -72,14 +95,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 policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -91,16 +115,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 { @@ -109,9 +132,12 @@ public java.lang.String getName() { } public static final int ETAG_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -121,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -129,14 +156,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. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -146,16 +174,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 { @@ -164,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +203,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_); } @@ -206,17 +233,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.iam.v2.DeletePolicyRequest)) { return super.equals(obj); } com.google.iam.v2.DeletePolicyRequest other = (com.google.iam.v2.DeletePolicyRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,130 +262,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.DeletePolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.DeletePolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.DeletePolicyRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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.iam.v2.DeletePolicyRequest 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 `DeletePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.DeletePolicyRequest} */ - 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.iam.v2.DeletePolicyRequest) com.google.iam.v2.DeletePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.DeletePolicyRequest.class, com.google.iam.v2.DeletePolicyRequest.Builder.class); + com.google.iam.v2.DeletePolicyRequest.class, + com.google.iam.v2.DeletePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.DeletePolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_DeletePolicyRequest_descriptor; } @java.lang.Override @@ -392,8 +422,11 @@ public com.google.iam.v2.DeletePolicyRequest build() { @java.lang.Override public com.google.iam.v2.DeletePolicyRequest buildPartial() { - com.google.iam.v2.DeletePolicyRequest result = new com.google.iam.v2.DeletePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2.DeletePolicyRequest result = + new com.google.iam.v2.DeletePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +445,39 @@ private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) { 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.iam.v2.DeletePolicyRequest) { - return mergeFrom((com.google.iam.v2.DeletePolicyRequest)other); + return mergeFrom((com.google.iam.v2.DeletePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -488,22 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,10 +550,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -528,13 +568,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; @@ -543,6 +583,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -554,15 +596,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 { @@ -570,6 +611,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -581,18 +624,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -604,6 +651,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -613,6 +661,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -624,12 +674,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -639,6 +691,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -648,13 +702,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; @@ -663,6 +717,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -672,15 +728,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 { @@ -688,6 +743,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -697,18 +754,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -718,6 +779,7 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -727,6 +789,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -736,21 +800,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.DeletePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.DeletePolicyRequest) private static final com.google.iam.v2.DeletePolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.DeletePolicyRequest(); } @@ -774,27 +840,27 @@ public static com.google.iam.v2.DeletePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +875,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.DeletePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java index a0740c3d09..9bdd7fc3d3 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface DeletePolicyRequestOrBuilder extends +public interface DeletePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.DeletePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -19,10 +37,13 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -34,12 +55,14 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -49,10 +72,13 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -62,8 +88,8 @@ public interface DeletePolicyRequestOrBuilder 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/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java similarity index 87% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java index dfbf330520..8fcf2a56fe 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.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/iam/v2/deny.proto package com.google.iam.v2; /** + * + * *
  * A deny rule in an IAM deny policy.
  * 
* * Protobuf type {@code google.iam.v2.DenyRule} */ -public final class DenyRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DenyRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.DenyRule) DenyRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DenyRule.newBuilder() to construct. private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DenyRule() { deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,18 +46,16 @@ private DenyRule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -52,9 +68,12 @@ protected java.lang.Object newInstance( } public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPrincipals_; /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -91,13 +110,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList - getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { return deniedPrincipals_; } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -134,12 +155,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -176,6 +200,7 @@ public int getDeniedPrincipalsCount() {
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -183,6 +208,8 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -219,18 +246,21 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPrincipals_; /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -242,13 +272,15 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList - getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { return exceptionPrincipals_; } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -260,12 +292,15 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -277,6 +312,7 @@ public int getExceptionPrincipalsCount() {
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -284,6 +320,8 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -295,18 +333,21 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPermissions_; /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -315,13 +356,15 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList - getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { return deniedPermissions_; } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -330,12 +373,15 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -344,6 +390,7 @@ public int getDeniedPermissionsCount() {
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -351,6 +398,8 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -359,18 +408,21 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPermissions_; /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -381,13 +433,15 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList - getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { return exceptionPermissions_; } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -398,12 +452,15 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -414,6 +471,7 @@ public int getExceptionPermissionsCount() {
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -421,6 +479,8 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -431,17 +491,19 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } public static final int DENIAL_CONDITION_FIELD_NUMBER = 5; private com.google.type.Expr denialCondition_; /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -455,6 +517,7 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -462,6 +525,8 @@ public boolean hasDenialCondition() { return denialCondition_ != null; } /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -475,6 +540,7 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ @java.lang.Override @@ -482,6 +548,8 @@ public com.google.type.Expr getDenialCondition() { return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -502,6 +570,7 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -513,8 +582,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 < deniedPrincipals_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deniedPrincipals_.getRaw(i));
     }
@@ -525,7 +593,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deniedPermissions_.getRaw(i));
     }
     for (int i = 0; i < exceptionPermissions_.size(); i++) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exceptionPermissions_.getRaw(i));
+      com.google.protobuf.GeneratedMessageV3.writeString(
+          output, 4, exceptionPermissions_.getRaw(i));
     }
     if (denialCondition_ != null) {
       output.writeMessage(5, getDenialCondition());
@@ -572,8 +641,7 @@ public int getSerializedSize() {
       size += 1 * getExceptionPermissionsList().size();
     }
     if (denialCondition_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getDenialCondition());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -583,25 +651,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v2.DenyRule)) {
       return super.equals(obj);
     }
     com.google.iam.v2.DenyRule other = (com.google.iam.v2.DenyRule) obj;
 
-    if (!getDeniedPrincipalsList()
-        .equals(other.getDeniedPrincipalsList())) return false;
-    if (!getExceptionPrincipalsList()
-        .equals(other.getExceptionPrincipalsList())) return false;
-    if (!getDeniedPermissionsList()
-        .equals(other.getDeniedPermissionsList())) return false;
-    if (!getExceptionPermissionsList()
-        .equals(other.getExceptionPermissionsList())) return false;
+    if (!getDeniedPrincipalsList().equals(other.getDeniedPrincipalsList())) return false;
+    if (!getExceptionPrincipalsList().equals(other.getExceptionPrincipalsList())) return false;
+    if (!getDeniedPermissionsList().equals(other.getDeniedPermissionsList())) return false;
+    if (!getExceptionPermissionsList().equals(other.getExceptionPermissionsList())) return false;
     if (hasDenialCondition() != other.hasDenialCondition()) return false;
     if (hasDenialCondition()) {
-      if (!getDenialCondition()
-          .equals(other.getDenialCondition())) return false;
+      if (!getDenialCondition().equals(other.getDenialCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -639,130 +702,133 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2.DenyRule parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v2.DenyRule parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v2.DenyRule parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule 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.iam.v2.DenyRule 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.iam.v2.DenyRule parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2.DenyRule 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.iam.v2.DenyRule parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.iam.v2.DenyRule parseFrom(com.google.protobuf.CodedInputStream 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.iam.v2.DenyRule 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.iam.v2.DenyRule 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 deny rule in an IAM deny policy.
    * 
* * Protobuf type {@code google.iam.v2.DenyRule} */ - 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.iam.v2.DenyRule) com.google.iam.v2.DenyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_fieldAccessorTable + return com.google.iam.v2.DenyRuleProto + .internal_static_google_iam_v2_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2.DenyRule.class, com.google.iam.v2.DenyRule.Builder.class); } // Construct using com.google.iam.v2.DenyRule.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -784,8 +850,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -807,7 +872,9 @@ public com.google.iam.v2.DenyRule build() { public com.google.iam.v2.DenyRule buildPartial() { com.google.iam.v2.DenyRule result = new com.google.iam.v2.DenyRule(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -838,9 +905,8 @@ private void buildPartialRepeatedFields(com.google.iam.v2.DenyRule result) { private void buildPartial0(com.google.iam.v2.DenyRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { - result.denialCondition_ = denialConditionBuilder_ == null - ? denialCondition_ - : denialConditionBuilder_.build(); + result.denialCondition_ = + denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } @@ -848,38 +914,39 @@ private void buildPartial0(com.google.iam.v2.DenyRule result) { 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.iam.v2.DenyRule) { - return mergeFrom((com.google.iam.v2.DenyRule)other); + return mergeFrom((com.google.iam.v2.DenyRule) other); } else { super.mergeFrom(other); return this; @@ -957,43 +1024,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPrincipalsIsMutable(); - deniedPrincipals_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPrincipalsIsMutable(); - exceptionPrincipals_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPermissionsIsMutable(); - deniedPermissions_.add(s); - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPermissionsIsMutable(); - exceptionPermissions_.add(s); - break; - } // case 34 - case 42: { - input.readMessage( - getDenialConditionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPrincipalsIsMutable(); + deniedPrincipals_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPrincipalsIsMutable(); + exceptionPrincipals_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPermissionsIsMutable(); + deniedPermissions_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPermissionsIsMutable(); + exceptionPermissions_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getDenialConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1003,16 +1074,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeniedPrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1049,13 +1125,15 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList - getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { return deniedPrincipals_.getUnmodifiableView(); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1092,12 +1170,15 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1134,6 +1215,7 @@ public int getDeniedPrincipalsCount() {
      * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -1141,6 +1223,8 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1177,14 +1261,16 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1221,19 +1307,23 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; + * * @param index The index to set the value at. * @param value The deniedPrincipals to set. * @return This builder for chaining. */ - public Builder setDeniedPrincipals( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeniedPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.set(index, value); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1270,18 +1360,22 @@ public Builder setDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @param value The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipals( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1318,18 +1412,19 @@ public Builder addDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @param values The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addAllDeniedPrincipals( - java.lang.Iterable values) { + public Builder addAllDeniedPrincipals(java.lang.Iterable values) { ensureDeniedPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deniedPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1366,6 +1461,7 @@ public Builder addAllDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { @@ -1375,6 +1471,8 @@ public Builder clearDeniedPrincipals() { return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1411,12 +1509,14 @@ public Builder clearDeniedPrincipals() {
      * 
* * repeated string denied_principals = 1; + * * @param value The bytes of the deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipalsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); @@ -1424,14 +1524,18 @@ public Builder addDeniedPrincipalsBytes( return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExceptionPrincipalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1443,13 +1547,15 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList - getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { return exceptionPrincipals_.getUnmodifiableView(); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1461,12 +1567,15 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1478,6 +1587,7 @@ public int getExceptionPrincipalsCount() {
      * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1485,6 +1595,8 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1496,14 +1608,16 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1515,19 +1629,23 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; + * * @param index The index to set the value at. * @param value The exceptionPrincipals to set. * @return This builder for chaining. */ - public Builder setExceptionPrincipals( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExceptionPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.set(index, value); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1539,18 +1657,22 @@ public Builder setExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @param value The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipals( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1562,18 +1684,19 @@ public Builder addExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @param values The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addAllExceptionPrincipals( - java.lang.Iterable values) { + public Builder addAllExceptionPrincipals(java.lang.Iterable values) { ensureExceptionPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exceptionPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1585,6 +1708,7 @@ public Builder addAllExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { @@ -1594,6 +1718,8 @@ public Builder clearExceptionPrincipals() { return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1605,12 +1731,14 @@ public Builder clearExceptionPrincipals() {
      * 
* * repeated string exception_principals = 2; + * * @param value The bytes of the exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipalsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); @@ -1618,14 +1746,18 @@ public Builder addExceptionPrincipalsBytes( return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeniedPermissionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1634,13 +1766,15 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList - getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { return deniedPermissions_.getUnmodifiableView(); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1649,12 +1783,15 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1663,6 +1800,7 @@ public int getDeniedPermissionsCount() {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -1670,6 +1808,8 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1678,14 +1818,16 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1694,19 +1836,23 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index to set the value at. * @param value The deniedPermissions to set. * @return This builder for chaining. */ - public Builder setDeniedPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeniedPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPermissionsIsMutable(); deniedPermissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1715,18 +1861,22 @@ public Builder setDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @param value The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1735,18 +1885,19 @@ public Builder addDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @param values The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addAllDeniedPermissions( - java.lang.Iterable values) { + public Builder addAllDeniedPermissions(java.lang.Iterable values) { ensureDeniedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deniedPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1755,6 +1906,7 @@ public Builder addAllDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { @@ -1764,6 +1916,8 @@ public Builder clearDeniedPermissions() { return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1772,12 +1926,14 @@ public Builder clearDeniedPermissions() {
      * 
* * repeated string denied_permissions = 3; + * * @param value The bytes of the deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); @@ -1785,14 +1941,18 @@ public Builder addDeniedPermissionsBytes( return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExceptionPermissionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1803,13 +1963,15 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList - getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { return exceptionPermissions_.getUnmodifiableView(); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1820,12 +1982,15 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1836,6 +2001,7 @@ public int getExceptionPermissionsCount() {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -1843,6 +2009,8 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1853,14 +2021,16 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1871,19 +2041,23 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index to set the value at. * @param value The exceptionPermissions to set. * @return This builder for chaining. */ - public Builder setExceptionPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExceptionPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1894,18 +2068,22 @@ public Builder setExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @param value The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1916,18 +2094,19 @@ public Builder addExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @param values The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addAllExceptionPermissions( - java.lang.Iterable values) { + public Builder addAllExceptionPermissions(java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exceptionPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1938,6 +2117,7 @@ public Builder addAllExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { @@ -1947,6 +2127,8 @@ public Builder clearExceptionPermissions() { return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1957,12 +2139,14 @@ public Builder clearExceptionPermissions() {
      * 
* * repeated string exception_permissions = 4; + * * @param value The bytes of the exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); @@ -1972,8 +2156,11 @@ public Builder addExceptionPermissionsBytes( private com.google.type.Expr denialCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> denialConditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + denialConditionBuilder_; /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -1987,12 +2174,15 @@ public Builder addExceptionPermissionsBytes(
      * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ public boolean hasDenialCondition() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2006,16 +2196,21 @@ public boolean hasDenialCondition() {
      * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ public com.google.type.Expr getDenialCondition() { if (denialConditionBuilder_ == null) { - return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; + return denialCondition_ == null + ? com.google.type.Expr.getDefaultInstance() + : denialCondition_; } else { return denialConditionBuilder_.getMessage(); } } /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2044,6 +2239,8 @@ public Builder setDenialCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2058,8 +2255,7 @@ public Builder setDenialCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr denial_condition = 5;
      */
-    public Builder setDenialCondition(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) {
       if (denialConditionBuilder_ == null) {
         denialCondition_ = builderForValue.build();
       } else {
@@ -2070,6 +2266,8 @@ public Builder setDenialCondition(
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2086,9 +2284,9 @@ public Builder setDenialCondition(
      */
     public Builder mergeDenialCondition(com.google.type.Expr value) {
       if (denialConditionBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          denialCondition_ != null &&
-          denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && denialCondition_ != null
+            && denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
           getDenialConditionBuilder().mergeFrom(value);
         } else {
           denialCondition_ = value;
@@ -2101,6 +2299,8 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2126,6 +2326,8 @@ public Builder clearDenialCondition() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2146,6 +2348,8 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() {
       return getDenialConditionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2164,11 +2368,14 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
       if (denialConditionBuilder_ != null) {
         return denialConditionBuilder_.getMessageOrBuilder();
       } else {
-        return denialCondition_ == null ?
-            com.google.type.Expr.getDefaultInstance() : denialCondition_;
+        return denialCondition_ == null
+            ? com.google.type.Expr.getDefaultInstance()
+            : denialCondition_;
       }
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2184,21 +2391,20 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
      * .google.type.Expr denial_condition = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getDenialConditionFieldBuilder() {
       if (denialConditionBuilder_ == null) {
-        denialConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getDenialCondition(),
-                getParentForChildren(),
-                isClean());
+        denialConditionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getDenialCondition(), getParentForChildren(), isClean());
         denialCondition_ = null;
       }
       return denialConditionBuilder_;
     }
+
     @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);
     }
 
@@ -2208,12 +2414,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v2.DenyRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2.DenyRule)
   private static final com.google.iam.v2.DenyRule DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2.DenyRule();
   }
@@ -2222,27 +2428,27 @@ public static com.google.iam.v2.DenyRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DenyRule parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DenyRule parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2257,6 +2463,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2.DenyRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
index 5dd739ab72..1d35367fb8 100644
--- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.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/iam/v2/deny.proto
 
 package com.google.iam.v2;
 
-public interface DenyRuleOrBuilder extends
+public interface DenyRuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2.DenyRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -44,11 +62,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - java.util.List - getDeniedPrincipalsList(); + java.util.List getDeniedPrincipalsList(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -85,10 +105,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ int getDeniedPrincipalsCount(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -125,11 +148,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ java.lang.String getDeniedPrincipals(int index); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -166,13 +192,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index); + com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -184,11 +212,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - java.util.List - getExceptionPrincipalsList(); + java.util.List getExceptionPrincipalsList(); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -200,10 +230,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ int getExceptionPrincipalsCount(); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -215,11 +248,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ java.lang.String getExceptionPrincipals(int index); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -231,13 +267,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index); + com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -246,11 +284,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - java.util.List - getDeniedPermissionsList(); + java.util.List getDeniedPermissionsList(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -259,10 +299,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ int getDeniedPermissionsCount(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -271,11 +314,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ java.lang.String getDeniedPermissions(int index); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -284,13 +330,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index); + com.google.protobuf.ByteString getDeniedPermissionsBytes(int index); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -301,11 +349,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - java.util.List - getExceptionPermissionsList(); + java.util.List getExceptionPermissionsList(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -316,10 +366,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ int getExceptionPermissionsCount(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -330,11 +383,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ java.lang.String getExceptionPermissions(int index); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -345,13 +401,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index); + com.google.protobuf.ByteString getExceptionPermissionsBytes(int index); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -365,10 +423,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ boolean hasDenialCondition(); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -382,10 +443,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ com.google.type.Expr getDenialCondition(); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
new file mode 100644
index 0000000000..55a5ff758b
--- /dev/null
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2/deny.proto
+
+package com.google.iam.v2;
+
+public final class DenyRuleProto {
+  private DenyRuleProto() {}
+
+  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_iam_v2_DenyRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2_DenyRule_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\030google/iam/v2/deny.proto\022\rgoogle.iam.v"
+          + "2\032\026google/type/expr.proto\"\253\001\n\010DenyRule\022\031"
+          + "\n\021denied_principals\030\001 \003(\t\022\034\n\024exception_p"
+          + "rincipals\030\002 \003(\t\022\032\n\022denied_permissions\030\003 "
+          + "\003(\t\022\035\n\025exception_permissions\030\004 \003(\t\022+\n\020de"
+          + "nial_condition\030\005 \001(\0132\021.google.type.ExprB"
+          + "\202\001\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z0"
+          + "google.golang.org/genproto/googleapis/ia"
+          + "m/v2;iam\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\"
+          + "Cloud\\Iam\\V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.type.ExprProto.getDescriptor(),
+            });
+    internal_static_google_iam_v2_DenyRule_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2_DenyRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2_DenyRule_descriptor,
+            new java.lang.String[] {
+              "DeniedPrincipals",
+              "ExceptionPrincipals",
+              "DeniedPermissions",
+              "ExceptionPermissions",
+              "DenialCondition",
+            });
+    com.google.type.ExprProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
similarity index 71%
rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
index dc08293489..31ae9840b5 100644
--- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
@@ -1,57 +1,78 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v2/policy.proto
 
 package com.google.iam.v2;
 
 /**
+ *
+ *
  * 
  * Request message for `GetPolicy`.
  * 
* * Protobuf type {@code google.iam.v2.GetPolicyRequest} */ -public final class GetPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.GetPolicyRequest) GetPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.GetPolicyRequest.class, com.google.iam.v2.GetPolicyRequest.Builder.class); + com.google.iam.v2.GetPolicyRequest.class, + com.google.iam.v2.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -63,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -71,14 +93,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 policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -90,16 +113,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 { @@ -108,6 +130,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +142,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_); } @@ -144,15 +166,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.iam.v2.GetPolicyRequest)) { return super.equals(obj); } com.google.iam.v2.GetPolicyRequest other = (com.google.iam.v2.GetPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,130 +192,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.GetPolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.GetPolicyRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.GetPolicyRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.GetPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2.GetPolicyRequest 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.iam.v2.GetPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v2.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v2.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v2.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v2.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetPolicy`.
    * 
* * Protobuf type {@code google.iam.v2.GetPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2.GetPolicyRequest) com.google.iam.v2.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.GetPolicyRequest.class, com.google.iam.v2.GetPolicyRequest.Builder.class); + com.google.iam.v2.GetPolicyRequest.class, + com.google.iam.v2.GetPolicyRequest.Builder.class); } // Construct using com.google.iam.v2.GetPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_GetPolicyRequest_descriptor; } @java.lang.Override @@ -326,7 +352,9 @@ public com.google.iam.v2.GetPolicyRequest build() { @java.lang.Override public com.google.iam.v2.GetPolicyRequest buildPartial() { com.google.iam.v2.GetPolicyRequest result = new com.google.iam.v2.GetPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +370,39 @@ private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) { 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.iam.v2.GetPolicyRequest) { - return mergeFrom((com.google.iam.v2.GetPolicyRequest)other); + return mergeFrom((com.google.iam.v2.GetPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -413,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +464,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -448,13 +482,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; @@ -463,6 +497,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -474,15 +510,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 { @@ -490,6 +525,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -501,18 +538,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -524,6 +565,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -533,6 +575,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -544,21 +588,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -568,12 +614,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.GetPolicyRequest) private static final com.google.iam.v2.GetPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.GetPolicyRequest(); } @@ -582,27 +628,27 @@ public static com.google.iam.v2.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java index 139f5227d9..6f293a3267 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface GetPolicyRequestOrBuilder extends +public interface GetPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.GetPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -19,10 +37,13 @@ public interface GetPolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -34,8 +55,8 @@ public interface GetPolicyRequestOrBuilder 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/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java similarity index 73% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java index 44d90f9013..42f23221d0 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.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/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Request message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2.ListPoliciesRequest} */ -public final class ListPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.ListPoliciesRequest) ListPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPoliciesRequest.newBuilder() to construct. private ListPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,37 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesRequest.class, com.google.iam.v2.ListPoliciesRequest.Builder.class); + com.google.iam.v2.ListPoliciesRequest.class, + com.google.iam.v2.ListPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -66,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -74,14 +97,15 @@ 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 that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -95,16 +119,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -115,12 +138,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -129,15 +155,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,30 +176,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; } } /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -178,6 +208,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +220,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_); } @@ -213,8 +243,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_); @@ -227,19 +256,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.iam.v2.ListPoliciesRequest)) { return super.equals(obj); } com.google.iam.v2.ListPoliciesRequest other = (com.google.iam.v2.ListPoliciesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,130 +288,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.ListPoliciesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.ListPoliciesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.ListPoliciesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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.iam.v2.ListPoliciesRequest 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2.ListPoliciesRequest} */ - 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.iam.v2.ListPoliciesRequest) com.google.iam.v2.ListPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesRequest.class, com.google.iam.v2.ListPoliciesRequest.Builder.class); + com.google.iam.v2.ListPoliciesRequest.class, + com.google.iam.v2.ListPoliciesRequest.Builder.class); } // Construct using com.google.iam.v2.ListPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesRequest_descriptor; } @java.lang.Override @@ -418,8 +449,11 @@ public com.google.iam.v2.ListPoliciesRequest build() { @java.lang.Override public com.google.iam.v2.ListPoliciesRequest buildPartial() { - com.google.iam.v2.ListPoliciesRequest result = new com.google.iam.v2.ListPoliciesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2.ListPoliciesRequest result = + new com.google.iam.v2.ListPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -441,38 +475,39 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) { 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.iam.v2.ListPoliciesRequest) { - return mergeFrom((com.google.iam.v2.ListPoliciesRequest)other); + return mergeFrom((com.google.iam.v2.ListPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -520,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,10 +589,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -567,13 +609,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -582,6 +624,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -595,15 +639,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -611,6 +654,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -624,18 +669,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -649,6 +698,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -658,6 +708,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -671,12 +723,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -684,14 +738,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -699,29 +756,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -733,19 +796,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -754,21 +819,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -776,30 +842,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -809,27 +882,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -839,12 +916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.ListPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2.ListPoliciesRequest) private static final com.google.iam.v2.ListPoliciesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.ListPoliciesRequest(); } @@ -853,27 +930,27 @@ public static com.google.iam.v2.ListPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.ListPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java index 9a62799933..bfea871b46 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface ListPoliciesRequestOrBuilder extends +public interface ListPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.ListPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -21,10 +39,13 @@ public interface ListPoliciesRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -38,41 +59,49 @@ public interface ListPoliciesRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java similarity index 72% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java index 5ff391bd80..85d5cf7b5d 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.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/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Response message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2.ListPoliciesResponse} */ -public final class ListPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.ListPoliciesResponse) ListPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPoliciesResponse.newBuilder() to construct. private ListPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesResponse.class, com.google.iam.v2.ListPoliciesResponse.Builder.class); + com.google.iam.v2.ListPoliciesResponse.class, + com.google.iam.v2.ListPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List policies_; /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPoliciesList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -71,11 +95,12 @@ public java.util.List getPoliciesList() { * repeated .google.iam.v2.Policy policies = 1; */ @java.lang.Override - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List getPoliciesOrBuilderList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -87,6 +112,8 @@ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -98,6 +125,8 @@ public com.google.iam.v2.Policy getPolicies(int index) { return policies_.get(index); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -105,21 +134,24 @@ public com.google.iam.v2.Policy getPolicies(int index) { * repeated .google.iam.v2.Policy policies = 1; */ @java.lang.Override - public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +160,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * 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 { @@ -160,6 +192,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -189,8 +221,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +234,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.iam.v2.ListPoliciesResponse)) { return super.equals(obj); } com.google.iam.v2.ListPoliciesResponse other = (com.google.iam.v2.ListPoliciesResponse) obj; - if (!getPoliciesList() - .equals(other.getPoliciesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPoliciesList().equals(other.getPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +265,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.ListPoliciesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.ListPoliciesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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.iam.v2.ListPoliciesResponse 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2.ListPoliciesResponse} */ - 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.iam.v2.ListPoliciesResponse) com.google.iam.v2.ListPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.ListPoliciesResponse.class, com.google.iam.v2.ListPoliciesResponse.Builder.class); + com.google.iam.v2.ListPoliciesResponse.class, + com.google.iam.v2.ListPoliciesResponse.Builder.class); } // Construct using com.google.iam.v2.ListPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_ListPoliciesResponse_descriptor; } @java.lang.Override @@ -397,9 +432,12 @@ public com.google.iam.v2.ListPoliciesResponse build() { @java.lang.Override public com.google.iam.v2.ListPoliciesResponse buildPartial() { - com.google.iam.v2.ListPoliciesResponse result = new com.google.iam.v2.ListPoliciesResponse(this); + com.google.iam.v2.ListPoliciesResponse result = + new com.google.iam.v2.ListPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +465,39 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) { 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.iam.v2.ListPoliciesResponse) { - return mergeFrom((com.google.iam.v2.ListPoliciesResponse)other); + return mergeFrom((com.google.iam.v2.ListPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +524,10 @@ public Builder mergeFrom(com.google.iam.v2.ListPoliciesResponse other) { policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoliciesFieldBuilder() : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPoliciesFieldBuilder() + : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -524,30 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.iam.v2.Policy m = - input.readMessage( - com.google.iam.v2.Policy.parser(), - extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.iam.v2.Policy m = + input.readMessage(com.google.iam.v2.Policy.parser(), extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +598,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List policies_ = - java.util.Collections.emptyList(); + private java.util.List policies_ = java.util.Collections.emptyList(); + private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policiesBuilder_; + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder> + policiesBuilder_; /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -586,6 +633,8 @@ public java.util.List getPoliciesList() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -600,6 +649,8 @@ public int getPoliciesCount() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -614,14 +665,15 @@ public com.google.iam.v2.Policy getPolicies(int index) { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder setPolicies( - int index, com.google.iam.v2.Policy value) { + public Builder setPolicies(int index, com.google.iam.v2.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +687,15 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder setPolicies( - int index, com.google.iam.v2.Policy.Builder builderForValue) { + public Builder setPolicies(int index, com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); @@ -653,6 +706,8 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -673,14 +728,15 @@ public Builder addPolicies(com.google.iam.v2.Policy value) { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies( - int index, com.google.iam.v2.Policy value) { + public Builder addPolicies(int index, com.google.iam.v2.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +750,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies( - com.google.iam.v2.Policy.Builder builderForValue) { + public Builder addPolicies(com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); @@ -712,14 +769,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addPolicies( - int index, com.google.iam.v2.Policy.Builder builderForValue) { + public Builder addPolicies(int index, com.google.iam.v2.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); @@ -730,18 +788,18 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public Builder addAllPolicies( - java.lang.Iterable values) { + public Builder addAllPolicies(java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -749,6 +807,8 @@ public Builder addAllPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -766,6 +826,8 @@ public Builder clearPolicies() { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -783,39 +845,43 @@ public Builder removePolicies(int index) { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.Policy.Builder getPoliciesBuilder( - int index) { + public com.google.iam.v2.Policy.Builder getPoliciesBuilder(int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index) { if (policiesBuilder_ == null) { - return policies_.get(index); } else { + return policies_.get(index); + } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +889,8 @@ public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -830,42 +898,46 @@ public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( * repeated .google.iam.v2.Policy policies = 1; */ public com.google.iam.v2.Policy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder( - com.google.iam.v2.Policy.getDefaultInstance()); + return getPoliciesFieldBuilder().addBuilder(com.google.iam.v2.Policy.getDefaultInstance()); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public com.google.iam.v2.Policy.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().addBuilder( - index, com.google.iam.v2.Policy.getDefaultInstance()); + public com.google.iam.v2.Policy.Builder addPoliciesBuilder(int index) { + return getPoliciesFieldBuilder() + .addBuilder(index, com.google.iam.v2.Policy.getDefaultInstance()); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2.Policy policies = 1; */ - public java.util.List - getPoliciesBuilderList() { + public java.util.List getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>( - policies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder>( + policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policies_ = null; } return policiesBuilder_; @@ -873,19 +945,21 @@ public com.google.iam.v2.Policy.Builder addPoliciesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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; @@ -894,21 +968,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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 { @@ -916,30 +991,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -949,27 +1031,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,12 +1065,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.ListPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.iam.v2.ListPoliciesResponse) private static final com.google.iam.v2.ListPoliciesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.ListPoliciesResponse(); } @@ -993,27 +1079,27 @@ public static com.google.iam.v2.ListPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1114,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.ListPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java index 5ff4ed2041..1faeb31cfb 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; -public interface ListPoliciesResponseOrBuilder extends +public interface ListPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.ListPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - java.util.List - getPoliciesList(); + java.util.List getPoliciesList(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -25,6 +44,8 @@ public interface ListPoliciesResponseOrBuilder extends */ com.google.iam.v2.Policy getPolicies(int index); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -33,43 +54,50 @@ public interface ListPoliciesResponseOrBuilder extends */ int getPoliciesCount(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - java.util.List - getPoliciesOrBuilderList(); + java.util.List getPoliciesOrBuilderList(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2.Policy policies = 1; */ - com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( - int index); + com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder(int index); /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java similarity index 72% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java index d76d87ffee..2c6ad8972b 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Data for an IAM policy.
  * 
* * Protobuf type {@code google.iam.v2.Policy} */ -public final class Policy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Policy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.Policy) PolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Policy() { name_ = ""; uid_ = ""; @@ -31,33 +49,30 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); 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() { @@ -67,9 +82,12 @@ protected com.google.protobuf.MapField internalGetMapField( } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -83,6 +101,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -91,14 +110,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; } } /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -112,16 +132,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -130,15 +149,19 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ @java.lang.Override @@ -147,30 +170,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -179,14 +202,18 @@ public java.lang.String getUid() { } public static final int KIND_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ @java.lang.Override @@ -195,29 +222,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -226,15 +253,19 @@ public java.lang.String getKind() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -243,30 +274,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -275,32 +306,35 @@ public java.lang.String getDisplayName() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -309,20 +343,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -335,6 +370,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -343,17 +380,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -362,11 +401,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -374,9 +413,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -386,6 +428,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ @java.lang.Override @@ -394,14 +437,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; } } /** + * + * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -411,16 +455,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 6; + * * @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 { @@ -431,11 +474,15 @@ public java.lang.String getEtag() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -443,11 +490,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -455,11 +506,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -469,11 +523,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -481,11 +539,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -493,11 +555,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -507,11 +572,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -519,11 +588,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -531,11 +604,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -543,9 +619,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int RULES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List rules_; /** + * + * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -558,6 +637,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -566,11 +647,12 @@ public java.util.List getRulesList() {
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public java.util.List 
-      getRulesOrBuilderList() {
+  public java.util.List getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -583,6 +665,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -595,6 +679,8 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -603,21 +689,24 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   public static final int MANAGING_AUTHORITY_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object managingAuthority_ = "";
   /**
+   *
+   *
    * 
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The managingAuthority. */ @java.lang.Override @@ -626,30 +715,30 @@ public java.lang.String getManagingAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managingAuthority_ = s; return s; } } /** + * + * *
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for managingAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString - getManagingAuthorityBytes() { + public com.google.protobuf.ByteString getManagingAuthorityBytes() { java.lang.Object ref = managingAuthority_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); managingAuthority_ = b; return b; } else { @@ -658,6 +747,7 @@ public java.lang.String getManagingAuthority() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -669,8 +759,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_); } @@ -683,12 +772,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } @@ -728,34 +813,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, rules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, rules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managingAuthority_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, managingAuthority_); @@ -768,44 +849,33 @@ 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.iam.v2.Policy)) { return super.equals(obj); } com.google.iam.v2.Policy other = (com.google.iam.v2.Policy) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getKind() - .equals(other.getKind())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) 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 (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getRulesList() - .equals(other.getRulesList())) return false; - if (!getManagingAuthority() - .equals(other.getManagingAuthority())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getManagingAuthority().equals(other.getManagingAuthority())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -854,134 +924,137 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.Policy parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.Policy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.Policy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v2.Policy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.Policy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.Policy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2.Policy 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.iam.v2.Policy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v2.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.Policy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v2.Policy parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v2.Policy parseFrom(com.google.protobuf.CodedInputStream 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.iam.v2.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v2.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Data for an IAM policy.
    * 
* * Protobuf type {@code google.iam.v2.Policy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2.Policy) com.google.iam.v2.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableAnnotations(); 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() { @@ -991,15 +1064,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( } // Construct using com.google.iam.v2.Policy.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1037,8 +1107,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @@ -1060,7 +1129,9 @@ public com.google.iam.v2.Policy build() { public com.google.iam.v2.Policy buildPartial() { com.google.iam.v2.Policy result = new com.google.iam.v2.Policy(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1099,19 +1170,13 @@ private void buildPartial0(com.google.iam.v2.Policy result) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.managingAuthority_ = managingAuthority_; @@ -1122,38 +1187,39 @@ private void buildPartial0(com.google.iam.v2.Policy result) { 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.iam.v2.Policy) { - return mergeFrom((com.google.iam.v2.Policy)other); + return mergeFrom((com.google.iam.v2.Policy) other); } else { super.mergeFrom(other); return this; @@ -1182,8 +1248,7 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; @@ -1217,9 +1282,10 @@ public Builder mergeFrom(com.google.iam.v2.Policy other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000200); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -1256,85 +1322,91 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - com.google.iam.v2.PolicyRule m = - input.readMessage( - com.google.iam.v2.PolicyRule.parser(), - extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: { - managingAuthority_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.iam.v2.PolicyRule m = + input.readMessage(com.google.iam.v2.PolicyRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + managingAuthority_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1344,10 +1416,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1361,13 +1436,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1376,6 +1451,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1389,15 +1466,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1405,6 +1481,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1418,18 +1496,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1443,6 +1525,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1452,6 +1535,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1465,12 +1550,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1480,19 +1567,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1501,21 +1590,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1523,30 +1613,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -1556,18 +1653,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -1577,18 +1678,20 @@ public Builder setUidBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -1597,20 +1700,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -1618,28 +1722,35 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kind_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKind() { @@ -1649,17 +1760,21 @@ public Builder clearKind() { return this; } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000004; @@ -1669,19 +1784,21 @@ public Builder setKindBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1690,21 +1807,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1712,30 +1830,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1745,18 +1870,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; @@ -1764,8 +1893,8 @@ public Builder setDisplayNameBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1774,11 +1903,12 @@ public Builder setDisplayNameBytes( } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1787,10 +1917,13 @@ public Builder setDisplayNameBytes( onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1799,20 +1932,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1825,6 +1959,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1833,17 +1969,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1852,23 +1990,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1876,23 +2016,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000010;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1900,17 +2039,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1918,16 +2060,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1937,13 +2079,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 6; + * * @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; @@ -1952,6 +2094,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1961,15 +2105,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; + * * @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 { @@ -1977,6 +2120,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1986,18 +2131,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2007,6 +2156,7 @@ public Builder setEtag(
      * 
* * string etag = 6; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2016,6 +2166,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -2025,12 +2177,14 @@ public Builder clearEtag() {
      * 
* * string etag = 6; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -2040,39 +2194,58 @@ public Builder setEtagBytes( 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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2088,14 +2261,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2106,17 +2282,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2129,11 +2309,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2146,11 +2330,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2158,36 +2346,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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_; @@ -2195,39 +2395,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2243,14 +2462,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2261,17 +2483,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2284,11 +2510,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2301,11 +2531,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2313,36 +2547,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2350,39 +2596,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2398,14 +2663,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2416,17 +2684,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2439,11 +2711,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2456,11 +2732,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -2468,54 +2748,71 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - private java.util.List rules_ = - java.util.Collections.emptyList(); + private java.util.List rules_ = java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder> rulesBuilder_; + com.google.iam.v2.PolicyRule, + com.google.iam.v2.PolicyRule.Builder, + com.google.iam.v2.PolicyRuleOrBuilder> + rulesBuilder_; /** + * + * *
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2531,6 +2828,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2546,6 +2845,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2561,6 +2862,8 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2568,8 +2871,7 @@ public com.google.iam.v2.PolicyRule getRules(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder setRules(
-        int index, com.google.iam.v2.PolicyRule value) {
+    public Builder setRules(int index, com.google.iam.v2.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2583,6 +2885,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2590,8 +2894,7 @@ public Builder setRules(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder setRules(
-        int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -2602,6 +2905,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2623,6 +2928,8 @@ public Builder addRules(com.google.iam.v2.PolicyRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2630,8 +2937,7 @@ public Builder addRules(com.google.iam.v2.PolicyRule value) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        int index, com.google.iam.v2.PolicyRule value) {
+    public Builder addRules(int index, com.google.iam.v2.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2645,6 +2951,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2652,8 +2960,7 @@ public Builder addRules(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder addRules(com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -2664,6 +2971,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2671,8 +2980,7 @@ public Builder addRules(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.iam.v2.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -2683,6 +2991,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2690,12 +3000,10 @@ public Builder addRules(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public Builder addAllRules(
-        java.lang.Iterable values) {
+    public Builder addAllRules(java.lang.Iterable values) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, rules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
         onChanged();
       } else {
         rulesBuilder_.addAllMessages(values);
@@ -2703,6 +3011,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2721,6 +3031,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2739,6 +3051,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2746,11 +3060,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2758,14 +3073,16 @@ public com.google.iam.v2.PolicyRule.Builder getRulesBuilder(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2773,8 +3090,7 @@ public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2782,6 +3098,8 @@ public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2790,10 +3108,11 @@ public com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
     public com.google.iam.v2.PolicyRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.iam.v2.PolicyRule.getDefaultInstance());
+      return getRulesFieldBuilder().addBuilder(com.google.iam.v2.PolicyRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2801,12 +3120,13 @@ public com.google.iam.v2.PolicyRule.Builder addRulesBuilder() {
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.iam.v2.PolicyRule.getDefaultInstance());
+    public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.iam.v2.PolicyRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2814,20 +3134,22 @@ public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(
      *
      * repeated .google.iam.v2.PolicyRule rules = 10;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder> 
+            com.google.iam.v2.PolicyRule,
+            com.google.iam.v2.PolicyRule.Builder,
+            com.google.iam.v2.PolicyRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v2.PolicyRule, com.google.iam.v2.PolicyRule.Builder, com.google.iam.v2.PolicyRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000200) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.iam.v2.PolicyRule,
+                com.google.iam.v2.PolicyRule.Builder,
+                com.google.iam.v2.PolicyRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
@@ -2835,19 +3157,21 @@ public com.google.iam.v2.PolicyRule.Builder addRulesBuilder(
 
     private java.lang.Object managingAuthority_ = "";
     /**
+     *
+     *
      * 
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The managingAuthority. */ public java.lang.String getManagingAuthority() { java.lang.Object ref = managingAuthority_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managingAuthority_ = s; return s; @@ -2856,21 +3180,22 @@ public java.lang.String getManagingAuthority() { } } /** + * + * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for managingAuthority. */ - public com.google.protobuf.ByteString - getManagingAuthorityBytes() { + public com.google.protobuf.ByteString getManagingAuthorityBytes() { java.lang.Object ref = managingAuthority_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); managingAuthority_ = b; return b; } else { @@ -2878,30 +3203,37 @@ public java.lang.String getManagingAuthority() { } } /** + * + * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The managingAuthority to set. * @return This builder for chaining. */ - public Builder setManagingAuthority( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setManagingAuthority(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } managingAuthority_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearManagingAuthority() { @@ -2911,27 +3243,31 @@ public Builder clearManagingAuthority() { return this; } /** + * + * *
      * Immutable. Specifies that this policy is managed by an authority and can only be
      * modified by that authority. Usage is restricted.
      * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for managingAuthority to set. * @return This builder for chaining. */ - public Builder setManagingAuthorityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setManagingAuthorityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); managingAuthority_ = value; bitField0_ |= 0x00000400; 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); } @@ -2941,12 +3277,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v2.Policy) private static final com.google.iam.v2.Policy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.Policy(); } @@ -2955,27 +3291,27 @@ public static com.google.iam.v2.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2990,6 +3326,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java similarity index 66% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java index eadb6a085c..15a04e7840 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Metadata for long-running `Policy` operations.
  * 
* * Protobuf type {@code google.iam.v2.PolicyOperationMetadata} */ -public final class PolicyOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.PolicyOperationMetadata) PolicyOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyOperationMetadata.newBuilder() to construct. private PolicyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyOperationMetadata() { - } + + private PolicyOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.PolicyOperationMetadata.class, com.google.iam.v2.PolicyOperationMetadata.Builder.class); + com.google.iam.v2.PolicyOperationMetadata.class, + com.google.iam.v2.PolicyOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -62,11 +83,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -86,6 +112,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +124,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -112,8 +138,7 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +148,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.iam.v2.PolicyOperationMetadata)) { return super.equals(obj); } - com.google.iam.v2.PolicyOperationMetadata other = (com.google.iam.v2.PolicyOperationMetadata) obj; + com.google.iam.v2.PolicyOperationMetadata other = + (com.google.iam.v2.PolicyOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -155,130 +180,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.PolicyOperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.PolicyOperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2.PolicyOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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.iam.v2.PolicyOperationMetadata 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; } /** + * + * *
    * Metadata for long-running `Policy` operations.
    * 
* * Protobuf type {@code google.iam.v2.PolicyOperationMetadata} */ - 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.iam.v2.PolicyOperationMetadata) com.google.iam.v2.PolicyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.PolicyOperationMetadata.class, com.google.iam.v2.PolicyOperationMetadata.Builder.class); + com.google.iam.v2.PolicyOperationMetadata.class, + com.google.iam.v2.PolicyOperationMetadata.Builder.class); } // Construct using com.google.iam.v2.PolicyOperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.iam.v2.PolicyOperationMetadata build() { @java.lang.Override public com.google.iam.v2.PolicyOperationMetadata buildPartial() { - com.google.iam.v2.PolicyOperationMetadata result = new com.google.iam.v2.PolicyOperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2.PolicyOperationMetadata result = + new com.google.iam.v2.PolicyOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +356,7 @@ public com.google.iam.v2.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } } @@ -332,38 +364,39 @@ private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { 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.iam.v2.PolicyOperationMetadata) { - return mergeFrom((com.google.iam.v2.PolicyOperationMetadata)other); + return mergeFrom((com.google.iam.v2.PolicyOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -401,19 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +456,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @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(); } } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -475,14 +522,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -493,6 +541,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -501,9 +551,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -516,6 +566,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -533,6 +585,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -545,6 +599,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -555,11 +611,14 @@ 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_; } } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -567,21 +626,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.PolicyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.iam.v2.PolicyOperationMetadata) private static final com.google.iam.v2.PolicyOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.PolicyOperationMetadata(); } @@ -605,27 +667,27 @@ public static com.google.iam.v2.PolicyOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +702,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.PolicyOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java similarity index 58% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java index 1451317f14..902e8200cd 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyOperationMetadataOrBuilder extends +public interface PolicyOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.PolicyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java similarity index 80% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java index d4938bddfc..44e15c3d3b 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyOrBuilder extends +public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -21,10 +39,13 @@ public interface PolicyOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -38,76 +59,93 @@ public interface PolicyOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -117,6 +155,8 @@ public interface PolicyOrBuilder extends
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -124,15 +164,13 @@ public interface PolicyOrBuilder extends
    *
    * map<string, string> annotations = 5;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -140,9 +178,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 5;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -151,11 +190,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 5;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -163,10 +204,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 5;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -176,10 +218,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -189,93 +234,128 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -283,9 +363,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  java.util.List 
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -295,6 +376,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.iam.v2.PolicyRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -304,6 +387,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -311,9 +396,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -321,28 +407,32 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2.PolicyRule rules = 10;
    */
-  com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.iam.v2.PolicyRuleOrBuilder getRulesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The managingAuthority. */ java.lang.String getManagingAuthority(); /** + * + * *
    * Immutable. Specifies that this policy is managed by an authority and can only be
    * modified by that authority. Usage is restricted.
    * 
* * string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for managingAuthority. */ - com.google.protobuf.ByteString - getManagingAuthorityBytes(); + com.google.protobuf.ByteString getManagingAuthorityBytes(); } diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java new file mode 100644 index 0000000000..9cbab03385 --- /dev/null +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java @@ -0,0 +1,256 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v2/policy.proto + +package com.google.iam.v2; + +public final class PolicyProto { + private PolicyProto() {} + + 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_iam_v2_Policy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_PolicyRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_PolicyRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_ListPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_ListPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_GetPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_CreatePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_DeletePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v2_PolicyOperationMetadata_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\032google/iam/v2/policy.proto\022\rgoogle.iam" + + ".v2\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\030google/iam/v2/deny.proto\032#g" + + "oogle/longrunning/operations.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" + + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" + + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" + + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" + + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" + + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" + + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" + + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" + + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" + + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" + + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" + + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" + + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" + + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" + + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" + + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" + + "es\022\".google.iam.v2.ListPoliciesRequest\032#" + + ".google.iam.v2.ListPoliciesResponse\"*\202\323\344" + + "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022" + + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" + + "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v" + + "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat" + + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" + + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + + "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027" + + "parent,policy,policy_id\312A!\n\006Policy\022\027Poli" + + "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g" + + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" + + "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po" + + "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po" + + "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete" + + "Policy\022\".google.iam.v2.DeletePolicyReque" + + "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002" + + "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006" + + "Policy\022\027PolicyOperationMetadata\032F\312A\022iam." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\200\001\n\021com.google.i" + + "am.v2B\013PolicyProtoP\001Z0google.golang.org/" + + "genproto/googleapis/iam/v2;iam\252\002\023Google." + + "Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2b\006prot" + + "o3" + }; + 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.iam.v2.DenyRuleProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_iam_v2_Policy_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v2_Policy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_Policy_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Kind", + "DisplayName", + "Annotations", + "Etag", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Rules", + "ManagingAuthority", + }); + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor = + internal_static_google_iam_v2_Policy_descriptor.getNestedTypes().get(0); + internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_iam_v2_PolicyRule_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v2_PolicyRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_PolicyRule_descriptor, + new java.lang.String[] { + "DenyRule", "Description", "Kind", + }); + internal_static_google_iam_v2_ListPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_ListPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_iam_v2_ListPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_ListPoliciesResponse_descriptor, + new java.lang.String[] { + "Policies", "NextPageToken", + }); + internal_static_google_iam_v2_GetPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_GetPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_v2_CreatePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_CreatePolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "Policy", "PolicyId", + }); + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_UpdatePolicyRequest_descriptor, + new java.lang.String[] { + "Policy", + }); + internal_static_google_iam_v2_DeletePolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_DeletePolicyRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v2_PolicyOperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + }); + 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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.iam.v2.DenyRuleProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java similarity index 70% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java index 5c012293f4..9e842ab3f1 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java @@ -1,42 +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/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * A single rule in a `Policy`.
  * 
* * Protobuf type {@code google.iam.v2.PolicyRule} */ -public final class PolicyRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.PolicyRule) PolicyRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyRule.newBuilder() to construct. private PolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyRule() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -50,12 +66,15 @@ protected java.lang.Object newInstance( private int kindCase_ = 0; private java.lang.Object kind_; + public enum KindCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DENY_RULE(2), KIND_NOT_SET(0); private final int value; + private KindCase(int value) { this.value = value; } @@ -71,29 +90,34 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 2: return DENY_RULE; - case 0: return KIND_NOT_SET; - default: return null; + case 2: + return DENY_RULE; + case 0: + return KIND_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public static final int DENY_RULE_FIELD_NUMBER = 2; /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -101,21 +125,26 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return The denyRule. */ @java.lang.Override public com.google.iam.v2.DenyRule getDenyRule() { if (kindCase_ == 2) { - return (com.google.iam.v2.DenyRule) kind_; + return (com.google.iam.v2.DenyRule) kind_; } return com.google.iam.v2.DenyRule.getDefaultInstance(); } /** + * + * *
    * A rule for a deny policy.
    * 
@@ -125,21 +154,25 @@ public com.google.iam.v2.DenyRule getDenyRule() { @java.lang.Override public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { if (kindCase_ == 2) { - return (com.google.iam.v2.DenyRule) kind_; + return (com.google.iam.v2.DenyRule) kind_; } return com.google.iam.v2.DenyRule.getDefaultInstance(); } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -148,30 +181,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -180,6 +213,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -212,8 +245,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.iam.v2.DenyRule) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.iam.v2.DenyRule) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,20 +257,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.iam.v2.PolicyRule)) { return super.equals(obj); } com.google.iam.v2.PolicyRule other = (com.google.iam.v2.PolicyRule) obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 2: - if (!getDenyRule() - .equals(other.getDenyRule())) return false; + if (!getDenyRule().equals(other.getDenyRule())) return false; break; case 0: default: @@ -267,130 +299,133 @@ public int hashCode() { return hash; } - public static com.google.iam.v2.PolicyRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2.PolicyRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2.PolicyRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2.PolicyRule 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.iam.v2.PolicyRule parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v2.PolicyRule parseFrom(com.google.protobuf.CodedInputStream 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.iam.v2.PolicyRule 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.iam.v2.PolicyRule 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 single rule in a `Policy`.
    * 
* * Protobuf type {@code google.iam.v2.PolicyRule} */ - 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.iam.v2.PolicyRule) com.google.iam.v2.PolicyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2.PolicyRule.class, com.google.iam.v2.PolicyRule.Builder.class); } // Construct using com.google.iam.v2.PolicyRule.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,8 +440,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -427,7 +461,9 @@ public com.google.iam.v2.PolicyRule build() { @java.lang.Override public com.google.iam.v2.PolicyRule buildPartial() { com.google.iam.v2.PolicyRule result = new com.google.iam.v2.PolicyRule(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -443,8 +479,7 @@ private void buildPartial0(com.google.iam.v2.PolicyRule result) { private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; - if (kindCase_ == 2 && - denyRuleBuilder_ != null) { + if (kindCase_ == 2 && denyRuleBuilder_ != null) { result.kind_ = denyRuleBuilder_.build(); } } @@ -453,38 +488,39 @@ private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) { 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.iam.v2.PolicyRule) { - return mergeFrom((com.google.iam.v2.PolicyRule)other); + return mergeFrom((com.google.iam.v2.PolicyRule) other); } else { super.mergeFrom(other); return this; @@ -499,13 +535,15 @@ public Builder mergeFrom(com.google.iam.v2.PolicyRule other) { onChanged(); } switch (other.getKindCase()) { - case DENY_RULE: { - mergeDenyRule(other.getDenyRule()); - break; - } - case KIND_NOT_SET: { - break; - } + case DENY_RULE: + { + mergeDenyRule(other.getDenyRule()); + break; + } + case KIND_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -533,24 +571,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getDenyRuleFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getDenyRuleFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,12 +599,12 @@ public Builder mergeFrom( } // finally return this; } + private int kindCase_ = 0; private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public Builder clearKind() { @@ -578,13 +617,19 @@ public Builder clearKind() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder> denyRuleBuilder_; + com.google.iam.v2.DenyRule, + com.google.iam.v2.DenyRule.Builder, + com.google.iam.v2.DenyRuleOrBuilder> + denyRuleBuilder_; /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -592,11 +637,14 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return The denyRule. */ @java.lang.Override @@ -614,6 +662,8 @@ public com.google.iam.v2.DenyRule getDenyRule() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -634,14 +684,15 @@ public Builder setDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2.DenyRule deny_rule = 2; */ - public Builder setDenyRule( - com.google.iam.v2.DenyRule.Builder builderForValue) { + public Builder setDenyRule(com.google.iam.v2.DenyRule.Builder builderForValue) { if (denyRuleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -652,6 +703,8 @@ public Builder setDenyRule( return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -660,10 +713,11 @@ public Builder setDenyRule( */ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { if (denyRuleBuilder_ == null) { - if (kindCase_ == 2 && - kind_ != com.google.iam.v2.DenyRule.getDefaultInstance()) { - kind_ = com.google.iam.v2.DenyRule.newBuilder((com.google.iam.v2.DenyRule) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 2 && kind_ != com.google.iam.v2.DenyRule.getDefaultInstance()) { + kind_ = + com.google.iam.v2.DenyRule.newBuilder((com.google.iam.v2.DenyRule) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -679,6 +733,8 @@ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -702,6 +758,8 @@ public Builder clearDenyRule() { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -712,6 +770,8 @@ public com.google.iam.v2.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -730,6 +790,8 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -737,17 +799,20 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { * .google.iam.v2.DenyRule deny_rule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder> + com.google.iam.v2.DenyRule, + com.google.iam.v2.DenyRule.Builder, + com.google.iam.v2.DenyRuleOrBuilder> getDenyRuleFieldBuilder() { if (denyRuleBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.iam.v2.DenyRule.getDefaultInstance(); } - denyRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.DenyRule, com.google.iam.v2.DenyRule.Builder, com.google.iam.v2.DenyRuleOrBuilder>( - (com.google.iam.v2.DenyRule) kind_, - getParentForChildren(), - isClean()); + denyRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2.DenyRule, + com.google.iam.v2.DenyRule.Builder, + com.google.iam.v2.DenyRuleOrBuilder>( + (com.google.iam.v2.DenyRule) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; @@ -757,19 +822,21 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -778,21 +845,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -800,30 +868,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -833,27 +908,31 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,12 +942,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2.PolicyRule) } // @@protoc_insertion_point(class_scope:google.iam.v2.PolicyRule) private static final com.google.iam.v2.PolicyRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2.PolicyRule(); } @@ -877,27 +956,27 @@ public static com.google.iam.v2.PolicyRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2.PolicyRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java similarity index 63% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java index 47b005f579..712ec0723f 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.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/iam/v2/policy.proto package com.google.iam.v2; -public interface PolicyRuleOrBuilder extends +public interface PolicyRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2.PolicyRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ boolean hasDenyRule(); /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2.DenyRule deny_rule = 2; + * * @return The denyRule. */ com.google.iam.v2.DenyRule getDenyRule(); /** + * + * *
    * A rule for a deny policy.
    * 
@@ -35,26 +59,31 @@ public interface PolicyRuleOrBuilder extends com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder(); /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); public com.google.iam.v2.PolicyRule.KindCase getKindCase(); } diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java similarity index 71% rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java index dc245ae48f..bc506e2671 100644 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto package com.google.iam.v2; /** + * + * *
  * Request message for `UpdatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePolicyRequest() { - } + + private UpdatePolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.UpdatePolicyRequest.class, com.google.iam.v2.UpdatePolicyRequest.Builder.class); + com.google.iam.v2.UpdatePolicyRequest.class, + com.google.iam.v2.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2.Policy policy_; /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -73,6 +96,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -80,6 +104,8 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -95,6 +121,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -106,8 +133,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -121,8 +147,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -132,7 +157,7 @@ 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.iam.v2.UpdatePolicyRequest)) {
       return super.equals(obj);
@@ -141,8 +166,7 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -164,130 +188,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v2.UpdatePolicyRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest 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.iam.v2.UpdatePolicyRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2.UpdatePolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v2.UpdatePolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `UpdatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2.UpdatePolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2.UpdatePolicyRequest) com.google.iam.v2.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2.UpdatePolicyRequest.class, com.google.iam.v2.UpdatePolicyRequest.Builder.class); + com.google.iam.v2.UpdatePolicyRequest.class, + com.google.iam.v2.UpdatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2.UpdatePolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2.PolicyProto + .internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; } @java.lang.Override @@ -322,8 +351,11 @@ public com.google.iam.v2.UpdatePolicyRequest build() { @java.lang.Override public com.google.iam.v2.UpdatePolicyRequest buildPartial() { - com.google.iam.v2.UpdatePolicyRequest result = new com.google.iam.v2.UpdatePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2.UpdatePolicyRequest result = + new com.google.iam.v2.UpdatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,9 +363,7 @@ public com.google.iam.v2.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } } @@ -341,38 +371,39 @@ private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) { 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.iam.v2.UpdatePolicyRequest) { - return mergeFrom((com.google.iam.v2.UpdatePolicyRequest)other); + return mergeFrom((com.google.iam.v2.UpdatePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -410,19 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,12 +463,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v2.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> policyBuilder_; + com.google.iam.v2.Policy, + com.google.iam.v2.Policy.Builder, + com.google.iam.v2.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -446,12 +483,15 @@ public Builder mergeFrom(
      * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -460,6 +500,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v2.Policy getPolicy() { @@ -470,6 +511,8 @@ public com.google.iam.v2.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -493,6 +536,8 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -502,8 +547,7 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
      *
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(
-        com.google.iam.v2.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -514,6 +558,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -525,9 +571,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v2.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v2.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v2.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -540,6 +586,8 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -560,6 +608,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -575,6 +625,8 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -588,11 +640,12 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v2.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -603,21 +656,23 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder> 
+            com.google.iam.v2.Policy,
+            com.google.iam.v2.Policy.Builder,
+            com.google.iam.v2.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v2.Policy, com.google.iam.v2.Policy.Builder, com.google.iam.v2.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v2.Policy,
+                com.google.iam.v2.Policy.Builder,
+                com.google.iam.v2.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -627,12 +682,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v2.UpdatePolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2.UpdatePolicyRequest)
   private static final com.google.iam.v2.UpdatePolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2.UpdatePolicyRequest();
   }
@@ -641,27 +696,27 @@ public static com.google.iam.v2.UpdatePolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdatePolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdatePolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -676,6 +731,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2.UpdatePolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
rename to java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
index 3b2318682d..fa20ec03d5 100644
--- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.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/iam/v2/policy.proto
 
 package com.google.iam.v2;
 
-public interface UpdatePolicyRequestOrBuilder extends
+public interface UpdatePolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2.UpdatePolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -16,10 +34,13 @@ public interface UpdatePolicyRequestOrBuilder extends
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -28,10 +49,13 @@ public interface UpdatePolicyRequestOrBuilder extends
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v2.Policy getPolicy(); /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto b/java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
similarity index 100%
rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
rename to java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/deny.proto
diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto b/java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
similarity index 100%
rename from owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
rename to java-iam/proto-google-iam-v2/src/main/proto/google/iam/v2/policy.proto
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
similarity index 74%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
index 5b43c9bf86..370189917a 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.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/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
+ *
+ *
  * 
  * Request message for `CreatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.CreatePolicyRequest} */ -public final class CreatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.CreatePolicyRequest) CreatePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePolicyRequest.newBuilder() to construct. private CreatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePolicyRequest() { parent_ = ""; policyId_ = ""; @@ -26,33 +44,37 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.CreatePolicyRequest.class, com.google.iam.v2beta.CreatePolicyRequest.Builder.class); + com.google.iam.v2beta.CreatePolicyRequest.class, + com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -65,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -73,14 +96,15 @@ 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 that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -93,16 +117,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -113,11 +136,14 @@ public java.lang.String getParent() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v2beta.Policy policy_; /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -125,11 +151,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -137,6 +166,8 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to create.
    * 
@@ -149,9 +180,12 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { } public static final int POLICY_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object policyId_ = ""; /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -160,6 +194,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; + * * @return The policyId. */ @java.lang.Override @@ -168,14 +203,15 @@ public java.lang.String getPolicyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -184,16 +220,15 @@ public java.lang.String getPolicyId() {
    * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyIdBytes() { + public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyId_ = b; return b; } else { @@ -202,6 +237,7 @@ public java.lang.String getPolicyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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_); } @@ -237,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyId_); @@ -251,22 +285,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v2beta.CreatePolicyRequest)) { return super.equals(obj); } - com.google.iam.v2beta.CreatePolicyRequest other = (com.google.iam.v2beta.CreatePolicyRequest) obj; + com.google.iam.v2beta.CreatePolicyRequest other = + (com.google.iam.v2beta.CreatePolicyRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } - if (!getPolicyId() - .equals(other.getPolicyId())) return false; + if (!getPolicyId().equals(other.getPolicyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,130 +323,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.CreatePolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.CreatePolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2beta.CreatePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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.iam.v2beta.CreatePolicyRequest 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 `CreatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.CreatePolicyRequest} */ - 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.iam.v2beta.CreatePolicyRequest) com.google.iam.v2beta.CreatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.CreatePolicyRequest.class, com.google.iam.v2beta.CreatePolicyRequest.Builder.class); + com.google.iam.v2beta.CreatePolicyRequest.class, + com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.CreatePolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; } @java.lang.Override @@ -451,8 +489,11 @@ public com.google.iam.v2beta.CreatePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.CreatePolicyRequest buildPartial() { - com.google.iam.v2beta.CreatePolicyRequest result = new com.google.iam.v2beta.CreatePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.CreatePolicyRequest result = + new com.google.iam.v2beta.CreatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -463,9 +504,7 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; @@ -476,38 +515,39 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { 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.iam.v2beta.CreatePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.CreatePolicyRequest)other); + return mergeFrom((com.google.iam.v2beta.CreatePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -555,29 +595,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - policyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + policyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +629,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -603,13 +648,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -618,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -630,15 +677,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -646,6 +692,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -658,18 +706,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -682,6 +734,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -691,6 +744,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -703,12 +758,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,24 +775,33 @@ public Builder setParentBytes( private com.google.iam.v2beta.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policyBuilder_; + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v2beta.Policy getPolicy() { @@ -746,6 +812,8 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -766,14 +834,15 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPolicy( - com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); } else { @@ -784,6 +853,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -792,9 +863,9 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - policy_ != null && - policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && policy_ != null + && policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); } else { policy_ = value; @@ -807,6 +878,8 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -824,6 +897,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -836,6 +911,8 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The policy to create.
      * 
@@ -846,11 +923,12 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; + return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -858,14 +936,17 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; @@ -873,6 +954,8 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() { private java.lang.Object policyId_ = ""; /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -881,13 +964,13 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * string policy_id = 3; + * * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; @@ -896,6 +979,8 @@ public java.lang.String getPolicyId() { } } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -904,15 +989,14 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ - public com.google.protobuf.ByteString - getPolicyIdBytes() { + public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyId_ = b; return b; } else { @@ -920,6 +1004,8 @@ public java.lang.String getPolicyId() { } } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -928,18 +1014,22 @@ public java.lang.String getPolicyId() {
      * 
* * string policy_id = 3; + * * @param value The policyId to set. * @return This builder for chaining. */ - public Builder setPolicyId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } policyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -948,6 +1038,7 @@ public Builder setPolicyId(
      * 
* * string policy_id = 3; + * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -957,6 +1048,8 @@ public Builder clearPolicyId() { return this; } /** + * + * *
      * The ID to use for this policy, which will become the final component of
      * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -965,21 +1058,23 @@ public Builder clearPolicyId() {
      * 
* * string policy_id = 3; + * * @param value The bytes for policyId to set. * @return This builder for chaining. */ - public Builder setPolicyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); policyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.CreatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.CreatePolicyRequest) private static final com.google.iam.v2beta.CreatePolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.CreatePolicyRequest(); } @@ -1003,27 +1098,27 @@ public static com.google.iam.v2beta.CreatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.CreatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java index 70d1441809..24c4fc2fb6 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface CreatePolicyRequestOrBuilder extends +public interface CreatePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.CreatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -20,10 +38,13 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to create. Format: `policies/{attachment_point}/denypolicies`
@@ -36,30 +57,38 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. The policy to create.
    * 
* * .google.iam.v2beta.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v2beta.Policy getPolicy(); /** + * + * *
    * Required. The policy to create.
    * 
@@ -69,6 +98,8 @@ public interface CreatePolicyRequestOrBuilder extends com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder(); /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -77,10 +108,13 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string policy_id = 3; + * * @return The policyId. */ java.lang.String getPolicyId(); /** + * + * *
    * The ID to use for this policy, which will become the final component of
    * the policy's resource name. The ID must contain 3 to 63 characters. It can
@@ -89,8 +123,8 @@ public interface CreatePolicyRequestOrBuilder extends
    * 
* * string policy_id = 3; + * * @return The bytes for policyId. */ - com.google.protobuf.ByteString - getPolicyIdBytes(); + com.google.protobuf.ByteString getPolicyIdBytes(); } diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java similarity index 72% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java index 5fdc95c1c2..9eae189aef 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** + * + * *
  * Request message for `DeletePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.DeletePolicyRequest} */ -public final class DeletePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.DeletePolicyRequest) DeletePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePolicyRequest.newBuilder() to construct. private DeletePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePolicyRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,37 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.DeletePolicyRequest.class, com.google.iam.v2beta.DeletePolicyRequest.Builder.class); + com.google.iam.v2beta.DeletePolicyRequest.class, + com.google.iam.v2beta.DeletePolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -72,14 +95,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 policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -91,16 +115,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 { @@ -109,9 +132,12 @@ public java.lang.String getName() { } public static final int ETAG_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -121,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -129,14 +156,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. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -146,16 +174,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 { @@ -164,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +203,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_); } @@ -206,17 +233,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.iam.v2beta.DeletePolicyRequest)) { return super.equals(obj); } - com.google.iam.v2beta.DeletePolicyRequest other = (com.google.iam.v2beta.DeletePolicyRequest) obj; + com.google.iam.v2beta.DeletePolicyRequest other = + (com.google.iam.v2beta.DeletePolicyRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,130 +263,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.DeletePolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.DeletePolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2beta.DeletePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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.iam.v2beta.DeletePolicyRequest 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 `DeletePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.DeletePolicyRequest} */ - 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.iam.v2beta.DeletePolicyRequest) com.google.iam.v2beta.DeletePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.DeletePolicyRequest.class, com.google.iam.v2beta.DeletePolicyRequest.Builder.class); + com.google.iam.v2beta.DeletePolicyRequest.class, + com.google.iam.v2beta.DeletePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.DeletePolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; } @java.lang.Override @@ -392,8 +424,11 @@ public com.google.iam.v2beta.DeletePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.DeletePolicyRequest buildPartial() { - com.google.iam.v2beta.DeletePolicyRequest result = new com.google.iam.v2beta.DeletePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.DeletePolicyRequest result = + new com.google.iam.v2beta.DeletePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +447,39 @@ private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) { 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.iam.v2beta.DeletePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.DeletePolicyRequest)other); + return mergeFrom((com.google.iam.v2beta.DeletePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -488,22 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,10 +552,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -528,13 +570,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; @@ -543,6 +585,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -554,15 +598,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 { @@ -570,6 +613,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -581,18 +626,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -604,6 +653,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -613,6 +663,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -624,12 +676,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -639,6 +693,8 @@ public Builder setNameBytes( private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -648,13 +704,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; @@ -663,6 +719,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -672,15 +730,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 { @@ -688,6 +745,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -697,18 +756,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -718,6 +781,7 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -727,6 +791,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. The expected `etag` of the policy to delete. If the value does not match
      * the value that is stored in IAM, the request fails with a `409` error code
@@ -736,21 +802,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.DeletePolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.DeletePolicyRequest) private static final com.google.iam.v2beta.DeletePolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.DeletePolicyRequest(); } @@ -774,27 +842,27 @@ public static com.google.iam.v2beta.DeletePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +877,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.DeletePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java index ac1011817f..1b19529885 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface DeletePolicyRequestOrBuilder extends +public interface DeletePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.DeletePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -19,10 +37,13 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the policy to delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -34,12 +55,14 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -49,10 +72,13 @@ public interface DeletePolicyRequestOrBuilder extends
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. The expected `etag` of the policy to delete. If the value does not match
    * the value that is stored in IAM, the request fails with a `409` error code
@@ -62,8 +88,8 @@ public interface DeletePolicyRequestOrBuilder 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/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java similarity index 86% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java index fd94a25313..2d2a3b6363 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.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/iam/v2beta/deny.proto package com.google.iam.v2beta; /** + * + * *
  * A deny rule in an IAM deny policy.
  * 
* * Protobuf type {@code google.iam.v2beta.DenyRule} */ -public final class DenyRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DenyRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.DenyRule) DenyRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DenyRule.newBuilder() to construct. private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DenyRule() { deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,33 +46,36 @@ private DenyRule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.DenyRuleProto + .internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable + return com.google.iam.v2beta.DenyRuleProto + .internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPrincipals_; /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -91,13 +112,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList - getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { return deniedPrincipals_; } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -134,12 +157,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -176,6 +202,7 @@ public int getDeniedPrincipalsCount() {
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -183,6 +210,8 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -219,18 +248,21 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPrincipals_; /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -242,13 +274,15 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList - getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { return exceptionPrincipals_; } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -260,12 +294,15 @@ public java.lang.String getDeniedPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -277,6 +314,7 @@ public int getExceptionPrincipalsCount() {
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -284,6 +322,8 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -295,18 +335,21 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deniedPermissions_; /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -315,13 +358,15 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList - getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { return deniedPermissions_; } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -330,12 +375,15 @@ public java.lang.String getExceptionPrincipals(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -344,6 +392,7 @@ public int getDeniedPermissionsCount() {
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -351,6 +400,8 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -359,18 +410,21 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exceptionPermissions_; /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -381,13 +435,15 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList - getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { return exceptionPermissions_; } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -398,12 +454,15 @@ public java.lang.String getDeniedPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -414,6 +473,7 @@ public int getExceptionPermissionsCount() {
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -421,6 +481,8 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -431,17 +493,19 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } public static final int DENIAL_CONDITION_FIELD_NUMBER = 5; private com.google.type.Expr denialCondition_; /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -455,6 +519,7 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -462,6 +527,8 @@ public boolean hasDenialCondition() { return denialCondition_ != null; } /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -475,6 +542,7 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ @java.lang.Override @@ -482,6 +550,8 @@ public com.google.type.Expr getDenialCondition() { return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; } /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -502,6 +572,7 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -513,8 +584,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 < deniedPrincipals_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deniedPrincipals_.getRaw(i));
     }
@@ -525,7 +595,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deniedPermissions_.getRaw(i));
     }
     for (int i = 0; i < exceptionPermissions_.size(); i++) {
-      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exceptionPermissions_.getRaw(i));
+      com.google.protobuf.GeneratedMessageV3.writeString(
+          output, 4, exceptionPermissions_.getRaw(i));
     }
     if (denialCondition_ != null) {
       output.writeMessage(5, getDenialCondition());
@@ -572,8 +643,7 @@ public int getSerializedSize() {
       size += 1 * getExceptionPermissionsList().size();
     }
     if (denialCondition_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getDenialCondition());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -583,25 +653,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v2beta.DenyRule)) {
       return super.equals(obj);
     }
     com.google.iam.v2beta.DenyRule other = (com.google.iam.v2beta.DenyRule) obj;
 
-    if (!getDeniedPrincipalsList()
-        .equals(other.getDeniedPrincipalsList())) return false;
-    if (!getExceptionPrincipalsList()
-        .equals(other.getExceptionPrincipalsList())) return false;
-    if (!getDeniedPermissionsList()
-        .equals(other.getDeniedPermissionsList())) return false;
-    if (!getExceptionPermissionsList()
-        .equals(other.getExceptionPermissionsList())) return false;
+    if (!getDeniedPrincipalsList().equals(other.getDeniedPrincipalsList())) return false;
+    if (!getExceptionPrincipalsList().equals(other.getExceptionPrincipalsList())) return false;
+    if (!getDeniedPermissionsList().equals(other.getDeniedPermissionsList())) return false;
+    if (!getExceptionPermissionsList().equals(other.getExceptionPermissionsList())) return false;
     if (hasDenialCondition() != other.hasDenialCondition()) return false;
     if (hasDenialCondition()) {
-      if (!getDenialCondition()
-          .equals(other.getDenialCondition())) return false;
+      if (!getDenialCondition().equals(other.getDenialCondition())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -639,130 +704,134 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.DenyRule parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.DenyRule parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v2beta.DenyRule parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.iam.v2beta.DenyRule parseFrom(com.google.protobuf.CodedInputStream 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.iam.v2beta.DenyRule 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.iam.v2beta.DenyRule 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 deny rule in an IAM deny policy.
    * 
* * Protobuf type {@code google.iam.v2beta.DenyRule} */ - 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.iam.v2beta.DenyRule) com.google.iam.v2beta.DenyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.DenyRuleProto + .internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable + return com.google.iam.v2beta.DenyRuleProto + .internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } // Construct using com.google.iam.v2beta.DenyRule.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -784,9 +853,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.DenyRuleProto.internal_static_google_iam_v2beta_DenyRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.DenyRuleProto + .internal_static_google_iam_v2beta_DenyRule_descriptor; } @java.lang.Override @@ -807,7 +876,9 @@ public com.google.iam.v2beta.DenyRule build() { public com.google.iam.v2beta.DenyRule buildPartial() { com.google.iam.v2beta.DenyRule result = new com.google.iam.v2beta.DenyRule(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -838,9 +909,8 @@ private void buildPartialRepeatedFields(com.google.iam.v2beta.DenyRule result) { private void buildPartial0(com.google.iam.v2beta.DenyRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { - result.denialCondition_ = denialConditionBuilder_ == null - ? denialCondition_ - : denialConditionBuilder_.build(); + result.denialCondition_ = + denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } @@ -848,38 +918,39 @@ private void buildPartial0(com.google.iam.v2beta.DenyRule result) { 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.iam.v2beta.DenyRule) { - return mergeFrom((com.google.iam.v2beta.DenyRule)other); + return mergeFrom((com.google.iam.v2beta.DenyRule) other); } else { super.mergeFrom(other); return this; @@ -957,43 +1028,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPrincipalsIsMutable(); - deniedPrincipals_.add(s); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPrincipalsIsMutable(); - exceptionPrincipals_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeniedPermissionsIsMutable(); - deniedPermissions_.add(s); - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExceptionPermissionsIsMutable(); - exceptionPermissions_.add(s); - break; - } // case 34 - case 42: { - input.readMessage( - getDenialConditionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPrincipalsIsMutable(); + deniedPrincipals_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPrincipalsIsMutable(); + exceptionPrincipals_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeniedPermissionsIsMutable(); + deniedPermissions_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExceptionPermissionsIsMutable(); + exceptionPermissions_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getDenialConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1003,16 +1078,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeniedPrincipalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1049,13 +1129,15 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList - getDeniedPrincipalsList() { + public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { return deniedPrincipals_.getUnmodifiableView(); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1092,12 +1174,15 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ public int getDeniedPrincipalsCount() { return deniedPrincipals_.size(); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1134,6 +1219,7 @@ public int getDeniedPrincipalsCount() {
      * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ @@ -1141,6 +1227,8 @@ public java.lang.String getDeniedPrincipals(int index) { return deniedPrincipals_.get(index); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1177,14 +1265,16 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - public com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) { return deniedPrincipals_.getByteString(index); } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1221,19 +1311,23 @@ public java.lang.String getDeniedPrincipals(int index) {
      * 
* * repeated string denied_principals = 1; + * * @param index The index to set the value at. * @param value The deniedPrincipals to set. * @return This builder for chaining. */ - public Builder setDeniedPrincipals( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeniedPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.set(index, value); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1270,18 +1364,22 @@ public Builder setDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @param value The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipals( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1318,18 +1416,19 @@ public Builder addDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @param values The deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addAllDeniedPrincipals( - java.lang.Iterable values) { + public Builder addAllDeniedPrincipals(java.lang.Iterable values) { ensureDeniedPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deniedPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_); onChanged(); return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1366,6 +1465,7 @@ public Builder addAllDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { @@ -1375,6 +1475,8 @@ public Builder clearDeniedPrincipals() { return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1411,12 +1513,14 @@ public Builder clearDeniedPrincipals() {
      * 
* * repeated string denied_principals = 1; + * * @param value The bytes of the deniedPrincipals to add. * @return This builder for chaining. */ - public Builder addDeniedPrincipalsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.add(value); @@ -1424,14 +1528,18 @@ public Builder addDeniedPrincipalsBytes( return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExceptionPrincipalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1443,13 +1551,15 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList - getExceptionPrincipalsList() { + public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { return exceptionPrincipals_.getUnmodifiableView(); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1461,12 +1571,15 @@ private void ensureExceptionPrincipalsIsMutable() {
      * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ public int getExceptionPrincipalsCount() { return exceptionPrincipals_.size(); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1478,6 +1591,7 @@ public int getExceptionPrincipalsCount() {
      * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1485,6 +1599,8 @@ public java.lang.String getExceptionPrincipals(int index) { return exceptionPrincipals_.get(index); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1496,14 +1612,16 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - public com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) { return exceptionPrincipals_.getByteString(index); } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1515,19 +1633,23 @@ public java.lang.String getExceptionPrincipals(int index) {
      * 
* * repeated string exception_principals = 2; + * * @param index The index to set the value at. * @param value The exceptionPrincipals to set. * @return This builder for chaining. */ - public Builder setExceptionPrincipals( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExceptionPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.set(index, value); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1539,18 +1661,22 @@ public Builder setExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @param value The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipals( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1562,18 +1688,19 @@ public Builder addExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @param values The exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addAllExceptionPrincipals( - java.lang.Iterable values) { + public Builder addAllExceptionPrincipals(java.lang.Iterable values) { ensureExceptionPrincipalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exceptionPrincipals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_); onChanged(); return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1585,6 +1712,7 @@ public Builder addAllExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { @@ -1594,6 +1722,8 @@ public Builder clearExceptionPrincipals() { return this; } /** + * + * *
      * The identities that are excluded from the deny rule, even if they are
      * listed in the `denied_principals`. For example, you could add a Google
@@ -1605,12 +1735,14 @@ public Builder clearExceptionPrincipals() {
      * 
* * repeated string exception_principals = 2; + * * @param value The bytes of the exceptionPrincipals to add. * @return This builder for chaining. */ - public Builder addExceptionPrincipalsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.add(value); @@ -1618,14 +1750,18 @@ public Builder addExceptionPrincipalsBytes( return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeniedPermissionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1634,13 +1770,15 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList - getDeniedPermissionsList() { + public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { return deniedPermissions_.getUnmodifiableView(); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1649,12 +1787,15 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ public int getDeniedPermissionsCount() { return deniedPermissions_.size(); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1663,6 +1804,7 @@ public int getDeniedPermissionsCount() {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ @@ -1670,6 +1812,8 @@ public java.lang.String getDeniedPermissions(int index) { return deniedPermissions_.get(index); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1678,14 +1822,16 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - public com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index) { + public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) { return deniedPermissions_.getByteString(index); } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1694,19 +1840,23 @@ public java.lang.String getDeniedPermissions(int index) {
      * 
* * repeated string denied_permissions = 3; + * * @param index The index to set the value at. * @param value The deniedPermissions to set. * @return This builder for chaining. */ - public Builder setDeniedPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeniedPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPermissionsIsMutable(); deniedPermissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1715,18 +1865,22 @@ public Builder setDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @param value The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1735,18 +1889,19 @@ public Builder addDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @param values The deniedPermissions to add. * @return This builder for chaining. */ - public Builder addAllDeniedPermissions( - java.lang.Iterable values) { + public Builder addAllDeniedPermissions(java.lang.Iterable values) { ensureDeniedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deniedPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_); onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1755,6 +1910,7 @@ public Builder addAllDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { @@ -1764,6 +1920,8 @@ public Builder clearDeniedPermissions() { return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1772,12 +1930,14 @@ public Builder clearDeniedPermissions() {
      * 
* * repeated string denied_permissions = 3; + * * @param value The bytes of the deniedPermissions to add. * @return This builder for chaining. */ - public Builder addDeniedPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDeniedPermissionsIsMutable(); deniedPermissions_.add(value); @@ -1785,14 +1945,18 @@ public Builder addDeniedPermissionsBytes( return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExceptionPermissionsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1803,13 +1967,15 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList - getExceptionPermissionsList() { + public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { return exceptionPermissions_.getUnmodifiableView(); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1820,12 +1986,15 @@ private void ensureExceptionPermissionsIsMutable() {
      * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ public int getExceptionPermissionsCount() { return exceptionPermissions_.size(); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1836,6 +2005,7 @@ public int getExceptionPermissionsCount() {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -1843,6 +2013,8 @@ public java.lang.String getExceptionPermissions(int index) { return exceptionPermissions_.get(index); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1853,14 +2025,16 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - public com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index) { + public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { return exceptionPermissions_.getByteString(index); } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1871,19 +2045,23 @@ public java.lang.String getExceptionPermissions(int index) {
      * 
* * repeated string exception_permissions = 4; + * * @param index The index to set the value at. * @param value The exceptionPermissions to set. * @return This builder for chaining. */ - public Builder setExceptionPermissions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExceptionPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1894,18 +2072,22 @@ public Builder setExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @param value The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1916,18 +2098,19 @@ public Builder addExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @param values The exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addAllExceptionPermissions( - java.lang.Iterable values) { + public Builder addAllExceptionPermissions(java.lang.Iterable values) { ensureExceptionPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exceptionPermissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_); onChanged(); return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1938,6 +2121,7 @@ public Builder addAllExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { @@ -1947,6 +2131,8 @@ public Builder clearExceptionPermissions() { return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1957,12 +2143,14 @@ public Builder clearExceptionPermissions() {
      * 
* * repeated string exception_permissions = 4; + * * @param value The bytes of the exceptionPermissions to add. * @return This builder for chaining. */ - public Builder addExceptionPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureExceptionPermissionsIsMutable(); exceptionPermissions_.add(value); @@ -1972,8 +2160,11 @@ public Builder addExceptionPermissionsBytes( private com.google.type.Expr denialCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> denialConditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + denialConditionBuilder_; /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -1987,12 +2178,15 @@ public Builder addExceptionPermissionsBytes(
      * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ public boolean hasDenialCondition() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2006,16 +2200,21 @@ public boolean hasDenialCondition() {
      * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ public com.google.type.Expr getDenialCondition() { if (denialConditionBuilder_ == null) { - return denialCondition_ == null ? com.google.type.Expr.getDefaultInstance() : denialCondition_; + return denialCondition_ == null + ? com.google.type.Expr.getDefaultInstance() + : denialCondition_; } else { return denialConditionBuilder_.getMessage(); } } /** + * + * *
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2044,6 +2243,8 @@ public Builder setDenialCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2058,8 +2259,7 @@ public Builder setDenialCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr denial_condition = 5;
      */
-    public Builder setDenialCondition(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue) {
       if (denialConditionBuilder_ == null) {
         denialCondition_ = builderForValue.build();
       } else {
@@ -2070,6 +2270,8 @@ public Builder setDenialCondition(
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2086,9 +2288,9 @@ public Builder setDenialCondition(
      */
     public Builder mergeDenialCondition(com.google.type.Expr value) {
       if (denialConditionBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          denialCondition_ != null &&
-          denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && denialCondition_ != null
+            && denialCondition_ != com.google.type.Expr.getDefaultInstance()) {
           getDenialConditionBuilder().mergeFrom(value);
         } else {
           denialCondition_ = value;
@@ -2101,6 +2303,8 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2126,6 +2330,8 @@ public Builder clearDenialCondition() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2146,6 +2352,8 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() {
       return getDenialConditionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2164,11 +2372,14 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
       if (denialConditionBuilder_ != null) {
         return denialConditionBuilder_.getMessageOrBuilder();
       } else {
-        return denialCondition_ == null ?
-            com.google.type.Expr.getDefaultInstance() : denialCondition_;
+        return denialCondition_ == null
+            ? com.google.type.Expr.getDefaultInstance()
+            : denialCondition_;
       }
     }
     /**
+     *
+     *
      * 
      * The condition that determines whether this deny rule applies to a request.
      * If the condition expression evaluates to `true`, then the deny rule is
@@ -2184,21 +2395,20 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
      * .google.type.Expr denial_condition = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getDenialConditionFieldBuilder() {
       if (denialConditionBuilder_ == null) {
-        denialConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getDenialCondition(),
-                getParentForChildren(),
-                isClean());
+        denialConditionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getDenialCondition(), getParentForChildren(), isClean());
         denialCondition_ = null;
       }
       return denialConditionBuilder_;
     }
+
     @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);
     }
 
@@ -2208,12 +2418,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.DenyRule)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.DenyRule)
   private static final com.google.iam.v2beta.DenyRule DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.DenyRule();
   }
@@ -2222,27 +2432,27 @@ public static com.google.iam.v2beta.DenyRule getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DenyRule parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DenyRule parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2257,6 +2467,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.DenyRule getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
similarity index 92%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
index 5439e65a9a..30258206ce 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.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/iam/v2beta/deny.proto
 
 package com.google.iam.v2beta;
 
-public interface DenyRuleOrBuilder extends
+public interface DenyRuleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2beta.DenyRule)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -44,11 +62,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @return A list containing the deniedPrincipals. */ - java.util.List - getDeniedPrincipalsList(); + java.util.List getDeniedPrincipalsList(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -85,10 +105,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @return The count of deniedPrincipals. */ int getDeniedPrincipalsCount(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -125,11 +148,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the element to return. * @return The deniedPrincipals at the given index. */ java.lang.String getDeniedPrincipals(int index); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -166,13 +192,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_principals = 1; + * * @param index The index of the value to return. * @return The bytes of the deniedPrincipals at the given index. */ - com.google.protobuf.ByteString - getDeniedPrincipalsBytes(int index); + com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -184,11 +212,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @return A list containing the exceptionPrincipals. */ - java.util.List - getExceptionPrincipalsList(); + java.util.List getExceptionPrincipalsList(); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -200,10 +230,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @return The count of exceptionPrincipals. */ int getExceptionPrincipalsCount(); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -215,11 +248,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ java.lang.String getExceptionPrincipals(int index); /** + * + * *
    * The identities that are excluded from the deny rule, even if they are
    * listed in the `denied_principals`. For example, you could add a Google
@@ -231,13 +267,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_principals = 2; + * * @param index The index of the value to return. * @return The bytes of the exceptionPrincipals at the given index. */ - com.google.protobuf.ByteString - getExceptionPrincipalsBytes(int index); + com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -246,11 +284,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @return A list containing the deniedPermissions. */ - java.util.List - getDeniedPermissionsList(); + java.util.List getDeniedPermissionsList(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -259,10 +299,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @return The count of deniedPermissions. */ int getDeniedPermissionsCount(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -271,11 +314,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the element to return. * @return The deniedPermissions at the given index. */ java.lang.String getDeniedPermissions(int index); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -284,13 +330,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string denied_permissions = 3; + * * @param index The index of the value to return. * @return The bytes of the deniedPermissions at the given index. */ - com.google.protobuf.ByteString - getDeniedPermissionsBytes(int index); + com.google.protobuf.ByteString getDeniedPermissionsBytes(int index); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -301,11 +349,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @return A list containing the exceptionPermissions. */ - java.util.List - getExceptionPermissionsList(); + java.util.List getExceptionPermissionsList(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -316,10 +366,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @return The count of exceptionPermissions. */ int getExceptionPermissionsCount(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -330,11 +383,14 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ java.lang.String getExceptionPermissions(int index); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -345,13 +401,15 @@ public interface DenyRuleOrBuilder extends
    * 
* * repeated string exception_permissions = 4; + * * @param index The index of the value to return. * @return The bytes of the exceptionPermissions at the given index. */ - com.google.protobuf.ByteString - getExceptionPermissionsBytes(int index); + com.google.protobuf.ByteString getExceptionPermissionsBytes(int index); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -365,10 +423,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ boolean hasDenialCondition(); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
@@ -382,10 +443,13 @@ public interface DenyRuleOrBuilder extends
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ com.google.type.Expr getDenialCondition(); /** + * + * *
    * The condition that determines whether this deny rule applies to a request.
    * If the condition expression evaluates to `true`, then the deny rule is
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
new file mode 100644
index 0000000000..ef77af915a
--- /dev/null
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2beta/deny.proto
+
+package com.google.iam.v2beta;
+
+public final class DenyRuleProto {
+  private DenyRuleProto() {}
+
+  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_iam_v2beta_DenyRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_DenyRule_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\034google/iam/v2beta/deny.proto\022\021google.i"
+          + "am.v2beta\032\026google/type/expr.proto\"\253\001\n\010De"
+          + "nyRule\022\031\n\021denied_principals\030\001 \003(\t\022\034\n\024exc"
+          + "eption_principals\030\002 \003(\t\022\032\n\022denied_permis"
+          + "sions\030\003 \003(\t\022\035\n\025exception_permissions\030\004 \003"
+          + "(\t\022+\n\020denial_condition\030\005 \001(\0132\021.google.ty"
+          + "pe.ExprB\222\001\n\025com.google.iam.v2betaB\rDenyR"
+          + "uleProtoP\001Z4google.golang.org/genproto/g"
+          + "oogleapis/iam/v2beta;iam\252\002\027Google.Cloud."
+          + "Iam.V2Beta\312\002\027Google\\Cloud\\Iam\\V2betab\006pr"
+          + "oto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.type.ExprProto.getDescriptor(),
+            });
+    internal_static_google_iam_v2beta_DenyRule_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_DenyRule_descriptor,
+            new java.lang.String[] {
+              "DeniedPrincipals",
+              "ExceptionPrincipals",
+              "DeniedPermissions",
+              "ExceptionPermissions",
+              "DenialCondition",
+            });
+    com.google.type.ExprProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
similarity index 71%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
index afe2a5238e..fbe4827adc 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
@@ -1,57 +1,79 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
+ *
+ *
  * 
  * Request message for `GetPolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.GetPolicyRequest} */ -public final class GetPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.GetPolicyRequest) GetPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.GetPolicyRequest.class, com.google.iam.v2beta.GetPolicyRequest.Builder.class); + com.google.iam.v2beta.GetPolicyRequest.class, + com.google.iam.v2beta.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -63,6 +85,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -71,14 +94,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 policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -90,16 +114,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 { @@ -108,6 +131,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +143,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_); } @@ -144,15 +167,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.iam.v2beta.GetPolicyRequest)) { return super.equals(obj); } com.google.iam.v2beta.GetPolicyRequest other = (com.google.iam.v2beta.GetPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,130 +193,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.GetPolicyRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v2beta.GetPolicyRequest 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.iam.v2beta.GetPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v2beta.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v2beta.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v2beta.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetPolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.GetPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.GetPolicyRequest) com.google.iam.v2beta.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.GetPolicyRequest.class, com.google.iam.v2beta.GetPolicyRequest.Builder.class); + com.google.iam.v2beta.GetPolicyRequest.class, + com.google.iam.v2beta.GetPolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.GetPolicyRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +332,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; } @java.lang.Override @@ -325,8 +353,11 @@ public com.google.iam.v2beta.GetPolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.GetPolicyRequest buildPartial() { - com.google.iam.v2beta.GetPolicyRequest result = new com.google.iam.v2beta.GetPolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.GetPolicyRequest result = + new com.google.iam.v2beta.GetPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +373,39 @@ private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) { 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.iam.v2beta.GetPolicyRequest) { - return mergeFrom((com.google.iam.v2beta.GetPolicyRequest)other); + return mergeFrom((com.google.iam.v2beta.GetPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -413,17 +445,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +467,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -448,13 +485,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; @@ -463,6 +500,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -474,15 +513,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 { @@ -490,6 +528,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -501,18 +541,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -524,6 +568,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -533,6 +578,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -544,21 +591,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -568,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.GetPolicyRequest) private static final com.google.iam.v2beta.GetPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.GetPolicyRequest(); } @@ -582,27 +631,27 @@ public static com.google.iam.v2beta.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +666,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java index 85720166a6..def786214b 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface GetPolicyRequestOrBuilder extends +public interface GetPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.GetPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -19,10 +37,13 @@ public interface GetPolicyRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the policy to retrieve. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -34,8 +55,8 @@ public interface GetPolicyRequestOrBuilder 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/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java similarity index 72% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java index c7b7ed1081..36db2f0ff0 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** + * + * *
  * Request message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesRequest} */ -public final class ListPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.ListPoliciesRequest) ListPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPoliciesRequest.newBuilder() to construct. private ListPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPoliciesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,37 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesRequest.class, com.google.iam.v2beta.ListPoliciesRequest.Builder.class); + com.google.iam.v2beta.ListPoliciesRequest.class, + com.google.iam.v2beta.ListPoliciesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -66,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -74,14 +97,15 @@ 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 that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -95,16 +119,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -115,12 +138,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -129,15 +155,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,30 +176,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; } } /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -178,6 +208,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +220,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_); } @@ -213,8 +243,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_); @@ -227,19 +256,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.iam.v2beta.ListPoliciesRequest)) { return super.equals(obj); } - com.google.iam.v2beta.ListPoliciesRequest other = (com.google.iam.v2beta.ListPoliciesRequest) obj; + com.google.iam.v2beta.ListPoliciesRequest other = + (com.google.iam.v2beta.ListPoliciesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,130 +289,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.ListPoliciesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.ListPoliciesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2beta.ListPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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.iam.v2beta.ListPoliciesRequest 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesRequest} */ - 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.iam.v2beta.ListPoliciesRequest) com.google.iam.v2beta.ListPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesRequest.class, com.google.iam.v2beta.ListPoliciesRequest.Builder.class); + com.google.iam.v2beta.ListPoliciesRequest.class, + com.google.iam.v2beta.ListPoliciesRequest.Builder.class); } // Construct using com.google.iam.v2beta.ListPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +430,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; } @java.lang.Override @@ -418,8 +451,11 @@ public com.google.iam.v2beta.ListPoliciesRequest build() { @java.lang.Override public com.google.iam.v2beta.ListPoliciesRequest buildPartial() { - com.google.iam.v2beta.ListPoliciesRequest result = new com.google.iam.v2beta.ListPoliciesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.ListPoliciesRequest result = + new com.google.iam.v2beta.ListPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -441,38 +477,39 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) { 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.iam.v2beta.ListPoliciesRequest) { - return mergeFrom((com.google.iam.v2beta.ListPoliciesRequest)other); + return mergeFrom((com.google.iam.v2beta.ListPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -520,27 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,10 +591,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -567,13 +611,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -582,6 +626,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -595,15 +641,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -611,6 +656,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -624,18 +671,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -649,6 +700,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -658,6 +710,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -671,12 +725,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -684,14 +740,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -699,29 +758,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of policies to return. IAM ignores this value and uses
      * the value 1000.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -733,19 +798,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -754,21 +821,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -776,30 +844,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -809,27 +884,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
      * retrieve the next page.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -839,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.ListPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.ListPoliciesRequest) private static final com.google.iam.v2beta.ListPoliciesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.ListPoliciesRequest(); } @@ -853,27 +932,27 @@ public static com.google.iam.v2beta.ListPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,6 +967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.ListPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java index 72c4ec14f6..3090b50243 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface ListPoliciesRequestOrBuilder extends +public interface ListPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.ListPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -21,10 +39,13 @@ public interface ListPoliciesRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource that the policy is attached to, along with the kind of policy
    * to list. Format:
@@ -38,41 +59,49 @@ public interface ListPoliciesRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of policies to return. IAM ignores this value and uses
    * the value 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to
    * retrieve the next page.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java similarity index 72% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java index 44041e1889..423bc3f3ff 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.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/iam/v2beta/policy.proto package com.google.iam.v2beta; /** + * + * *
  * Response message for `ListPolicies`.
  * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesResponse} */ -public final class ListPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.ListPoliciesResponse) ListPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPoliciesResponse.newBuilder() to construct. private ListPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPoliciesResponse() { policies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesResponse.class, com.google.iam.v2beta.ListPoliciesResponse.Builder.class); + com.google.iam.v2beta.ListPoliciesResponse.class, + com.google.iam.v2beta.ListPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List policies_; /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPoliciesList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -71,11 +95,13 @@ public java.util.List getPoliciesList() { * repeated .google.iam.v2beta.Policy policies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPoliciesOrBuilderList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -87,6 +113,8 @@ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -98,6 +126,8 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { return policies_.get(index); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -105,21 +135,24 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { * repeated .google.iam.v2beta.Policy policies = 1; */ @java.lang.Override - public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { return policies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +161,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 page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * 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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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 < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } @@ -189,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +235,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v2beta.ListPoliciesResponse)) { return super.equals(obj); } - com.google.iam.v2beta.ListPoliciesResponse other = (com.google.iam.v2beta.ListPoliciesResponse) obj; + com.google.iam.v2beta.ListPoliciesResponse other = + (com.google.iam.v2beta.ListPoliciesResponse) obj; - if (!getPoliciesList() - .equals(other.getPoliciesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPoliciesList().equals(other.getPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +267,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.ListPoliciesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.ListPoliciesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2beta.ListPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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.iam.v2beta.ListPoliciesResponse 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 `ListPolicies`.
    * 
* * Protobuf type {@code google.iam.v2beta.ListPoliciesResponse} */ - 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.iam.v2beta.ListPoliciesResponse) com.google.iam.v2beta.ListPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.ListPoliciesResponse.class, com.google.iam.v2beta.ListPoliciesResponse.Builder.class); + com.google.iam.v2beta.ListPoliciesResponse.class, + com.google.iam.v2beta.ListPoliciesResponse.Builder.class); } // Construct using com.google.iam.v2beta.ListPoliciesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; } @java.lang.Override @@ -397,9 +434,12 @@ public com.google.iam.v2beta.ListPoliciesResponse build() { @java.lang.Override public com.google.iam.v2beta.ListPoliciesResponse buildPartial() { - com.google.iam.v2beta.ListPoliciesResponse result = new com.google.iam.v2beta.ListPoliciesResponse(this); + com.google.iam.v2beta.ListPoliciesResponse result = + new com.google.iam.v2beta.ListPoliciesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +467,39 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) { 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.iam.v2beta.ListPoliciesResponse) { - return mergeFrom((com.google.iam.v2beta.ListPoliciesResponse)other); + return mergeFrom((com.google.iam.v2beta.ListPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +526,10 @@ public Builder mergeFrom(com.google.iam.v2beta.ListPoliciesResponse other) { policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoliciesFieldBuilder() : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPoliciesFieldBuilder() + : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -524,30 +566,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.iam.v2beta.Policy m = - input.readMessage( - com.google.iam.v2beta.Policy.parser(), - extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.iam.v2beta.Policy m = + input.readMessage(com.google.iam.v2beta.Policy.parser(), extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +600,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List policies_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policiesBuilder_; + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder> + policiesBuilder_; /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -586,6 +636,8 @@ public java.util.List getPoliciesList() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -600,6 +652,8 @@ public int getPoliciesCount() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -614,14 +668,15 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder setPolicies( - int index, com.google.iam.v2beta.Policy value) { + public Builder setPolicies(int index, com.google.iam.v2beta.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +690,15 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder setPolicies( - int index, com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder setPolicies(int index, com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); @@ -653,6 +709,8 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -673,14 +731,15 @@ public Builder addPolicies(com.google.iam.v2beta.Policy value) { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies( - int index, com.google.iam.v2beta.Policy value) { + public Builder addPolicies(int index, com.google.iam.v2beta.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +753,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies( - com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder addPolicies(com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); @@ -712,14 +772,15 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public Builder addPolicies( - int index, com.google.iam.v2beta.Policy.Builder builderForValue) { + public Builder addPolicies(int index, com.google.iam.v2beta.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); @@ -730,6 +791,8 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -740,8 +803,7 @@ public Builder addAllPolicies( java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -749,6 +811,8 @@ public Builder addAllPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -766,6 +830,8 @@ public Builder clearPolicies() { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -783,39 +849,44 @@ public Builder removePolicies(int index) { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.Policy.Builder getPoliciesBuilder( - int index) { + public com.google.iam.v2beta.Policy.Builder getPoliciesBuilder(int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { if (policiesBuilder_ == null) { - return policies_.get(index); } else { + return policies_.get(index); + } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +894,8 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -830,42 +903,47 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( * repeated .google.iam.v2beta.Policy policies = 1; */ public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder( - com.google.iam.v2beta.Policy.getDefaultInstance()); + return getPoliciesFieldBuilder() + .addBuilder(com.google.iam.v2beta.Policy.getDefaultInstance()); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().addBuilder( - index, com.google.iam.v2beta.Policy.getDefaultInstance()); + public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder(int index) { + return getPoliciesFieldBuilder() + .addBuilder(index, com.google.iam.v2beta.Policy.getDefaultInstance()); } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - public java.util.List - getPoliciesBuilderList() { + public java.util.List getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>( - policies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder>( + policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policies_ = null; } return policiesBuilder_; @@ -873,19 +951,21 @@ public com.google.iam.v2beta.Policy.Builder addPoliciesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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; @@ -894,21 +974,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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 { @@ -916,30 +997,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -949,27 +1037,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
      * next page. If this field is omitted, there are no additional pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.ListPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.ListPoliciesResponse) private static final com.google.iam.v2beta.ListPoliciesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.ListPoliciesResponse(); } @@ -993,27 +1085,27 @@ public static com.google.iam.v2beta.ListPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.ListPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java index 43961e421e..51d88d35e0 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface ListPoliciesResponseOrBuilder extends +public interface ListPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.ListPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - java.util.List - getPoliciesList(); + java.util.List getPoliciesList(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -25,6 +44,8 @@ public interface ListPoliciesResponseOrBuilder extends */ com.google.iam.v2beta.Policy getPolicies(int index); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -33,43 +54,50 @@ public interface ListPoliciesResponseOrBuilder extends */ int getPoliciesCount(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - java.util.List - getPoliciesOrBuilderList(); + java.util.List getPoliciesOrBuilderList(); /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
* * repeated .google.iam.v2beta.Policy policies = 1; */ - com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( - int index); + com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index); /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the
    * next page. If this field is omitted, there are no additional pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java similarity index 71% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java index ba0efb5140..55ce515fb5 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto package com.google.iam.v2beta; /** + * + * *
  * Data for an IAM policy.
  * 
* * Protobuf type {@code google.iam.v2beta.Policy} */ -public final class Policy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Policy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.Policy) PolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Policy() { name_ = ""; uid_ = ""; @@ -30,45 +48,46 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); 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.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -82,6 +101,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -90,14 +110,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; } } /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -111,16 +132,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -129,15 +149,19 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ @java.lang.Override @@ -146,30 +170,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -178,14 +202,18 @@ public java.lang.String getUid() { } public static final int KIND_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ @java.lang.Override @@ -194,29 +222,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -225,15 +253,19 @@ public java.lang.String getKind() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -242,30 +274,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -274,32 +306,35 @@ public java.lang.String getDisplayName() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -308,20 +343,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -334,6 +370,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -342,17 +380,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -361,11 +401,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -373,9 +413,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -385,6 +428,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ @java.lang.Override @@ -393,14 +437,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; } } /** + * + * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -410,16 +455,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 6; + * * @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 { @@ -430,11 +474,15 @@ public java.lang.String getEtag() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -442,11 +490,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -454,11 +506,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -468,11 +523,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -480,11 +539,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -492,11 +555,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -506,11 +572,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -518,11 +588,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -530,11 +604,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -542,9 +619,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int RULES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List rules_; /** + * + * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -557,6 +637,8 @@ public java.util.List getRulesList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -565,11 +647,13 @@ public java.util.List getRulesList() {
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRulesOrBuilderList() {
     return rules_;
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -582,6 +666,8 @@ public int getRulesCount() {
     return rules_.size();
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -594,6 +680,8 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
     return rules_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -602,12 +690,12 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
   @java.lang.Override
-  public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
-      int index) {
+  public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
     return rules_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -619,8 +707,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_);
     }
@@ -633,12 +720,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetAnnotations(),
-        AnnotationsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_);
     }
@@ -675,34 +758,30 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetAnnotations().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, annotations__);
+    for (java.util.Map.Entry entry :
+        internalGetAnnotations().getMap().entrySet()) {
+      com.google.protobuf.MapEntry annotations__ =
+          AnnotationsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
     }
     if (deleteTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getDeleteTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime());
     }
     for (int i = 0; i < rules_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, rules_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, rules_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -712,42 +791,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v2beta.Policy)) {
       return super.equals(obj);
     }
     com.google.iam.v2beta.Policy other = (com.google.iam.v2beta.Policy) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getUid()
-        .equals(other.getUid())) return false;
-    if (!getKind()
-        .equals(other.getKind())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!internalGetAnnotations().equals(
-        other.internalGetAnnotations())) return false;
-    if (!getEtag()
-        .equals(other.getEtag())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getUid().equals(other.getUid())) return false;
+    if (!getKind().equals(other.getKind())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
+    if (!getEtag().equals(other.getEtag())) 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 (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
     }
     if (hasDeleteTime() != other.hasDeleteTime()) return false;
     if (hasDeleteTime()) {
-      if (!getDeleteTime()
-          .equals(other.getDeleteTime())) return false;
+      if (!getDeleteTime().equals(other.getDeleteTime())) return false;
     }
-    if (!getRulesList()
-        .equals(other.getRulesList())) return false;
+    if (!getRulesList().equals(other.getRulesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -794,152 +863,153 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.Policy parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.Policy parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.Policy parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.iam.v2beta.Policy parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v2beta.Policy parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.Policy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.Policy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.Policy parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.Policy 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.iam.v2beta.Policy parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.Policy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2beta.Policy parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.iam.v2beta.Policy parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.iam.v2beta.Policy parseFrom(com.google.protobuf.CodedInputStream 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.iam.v2beta.Policy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v2beta.Policy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Data for an IAM policy.
    * 
* * Protobuf type {@code google.iam.v2beta.Policy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.Policy) com.google.iam.v2beta.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableAnnotations(); 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.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } // Construct using com.google.iam.v2beta.Policy.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -976,8 +1046,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @@ -999,7 +1068,9 @@ public com.google.iam.v2beta.Policy build() { public com.google.iam.v2beta.Policy buildPartial() { com.google.iam.v2beta.Policy result = new com.google.iam.v2beta.Policy(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1038,19 +1109,13 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } } @@ -1058,38 +1123,39 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) { 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.iam.v2beta.Policy) { - return mergeFrom((com.google.iam.v2beta.Policy)other); + return mergeFrom((com.google.iam.v2beta.Policy) other); } else { super.mergeFrom(other); return this; @@ -1118,8 +1184,7 @@ public Builder mergeFrom(com.google.iam.v2beta.Policy other) { bitField0_ |= 0x00000008; onChanged(); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; @@ -1153,9 +1218,10 @@ public Builder mergeFrom(com.google.iam.v2beta.Policy other) { rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000200); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; } else { rulesBuilder_.addAllMessages(other.rules_); } @@ -1187,80 +1253,85 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - com.google.iam.v2beta.PolicyRule m = - input.readMessage( - com.google.iam.v2beta.PolicyRule.parser(), - extensionRegistry); - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(m); - } else { - rulesBuilder_.addMessage(m); - } - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.iam.v2beta.PolicyRule m = + input.readMessage(com.google.iam.v2beta.PolicyRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1270,10 +1341,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1287,13 +1361,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1302,6 +1376,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1315,15 +1391,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1331,6 +1406,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1344,18 +1421,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1369,6 +1450,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1378,6 +1460,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1391,12 +1475,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1406,19 +1492,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1427,21 +1515,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1449,30 +1538,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -1482,18 +1578,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
      * `Policy` is created.
      * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -1503,18 +1603,20 @@ public Builder setUidBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -1523,20 +1625,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -1544,28 +1647,35 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kind_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKind() { @@ -1575,17 +1685,21 @@ public Builder clearKind() { return this; } /** + * + * *
      * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
      * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000004; @@ -1595,19 +1709,21 @@ public Builder setKindBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1616,21 +1732,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1638,30 +1755,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1671,18 +1795,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A user-specified description of the `Policy`. This value can be up to 63
      * characters.
      * 
* * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; @@ -1690,8 +1818,8 @@ public Builder setDisplayNameBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1700,11 +1828,12 @@ public Builder setDisplayNameBytes( } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1713,10 +1842,13 @@ public Builder setDisplayNameBytes( onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1725,20 +1857,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1751,6 +1884,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1759,17 +1894,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1778,23 +1915,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000010);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1802,23 +1941,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 5;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000010;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1826,17 +1964,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000010;
       return this;
     }
     /**
+     *
+     *
      * 
      * A key-value map to store arbitrary metadata for the `Policy`. Keys
      * can be up to 63 characters. Values can be up to 255 characters.
@@ -1844,16 +1985,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000010;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1863,13 +2004,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 6; + * * @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; @@ -1878,6 +2019,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1887,15 +2030,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; + * * @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 { @@ -1903,6 +2045,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1912,18 +2056,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 6; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1933,6 +2081,7 @@ public Builder setEtag(
      * 
* * string etag = 6; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1942,6 +2091,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * An opaque tag that identifies the current version of the `Policy`. IAM uses
      * this value to help manage concurrent updates, so they do not cause one
@@ -1951,12 +2102,14 @@ public Builder clearEtag() {
      * 
* * string etag = 6; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -1966,39 +2119,58 @@ public Builder setEtagBytes( 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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2014,14 +2186,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2032,17 +2207,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2055,11 +2234,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2072,11 +2255,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2084,36 +2271,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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 when the `Policy` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.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_; @@ -2121,39 +2320,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2169,14 +2387,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2187,17 +2408,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2210,11 +2435,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2227,11 +2456,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2239,36 +2472,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time when the `Policy` was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2276,39 +2521,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2324,14 +2588,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2342,17 +2609,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2365,11 +2636,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2382,11 +2657,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -2394,54 +2673,72 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 9 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } private java.util.List rules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder> rulesBuilder_; + com.google.iam.v2beta.PolicyRule, + com.google.iam.v2beta.PolicyRule.Builder, + com.google.iam.v2beta.PolicyRuleOrBuilder> + rulesBuilder_; /** + * + * *
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2457,6 +2754,8 @@ public java.util.List getRulesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2472,6 +2771,8 @@ public int getRulesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2487,6 +2788,8 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2494,8 +2797,7 @@ public com.google.iam.v2beta.PolicyRule getRules(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder setRules(
-        int index, com.google.iam.v2beta.PolicyRule value) {
+    public Builder setRules(int index, com.google.iam.v2beta.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2509,6 +2811,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2516,8 +2820,7 @@ public Builder setRules(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder setRules(
-        int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder setRules(int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.set(index, builderForValue.build());
@@ -2528,6 +2831,8 @@ public Builder setRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2549,6 +2854,8 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2556,8 +2863,7 @@ public Builder addRules(com.google.iam.v2beta.PolicyRule value) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        int index, com.google.iam.v2beta.PolicyRule value) {
+    public Builder addRules(int index, com.google.iam.v2beta.PolicyRule value) {
       if (rulesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2571,6 +2877,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2578,8 +2886,7 @@ public Builder addRules(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder addRules(com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(builderForValue.build());
@@ -2590,6 +2897,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2597,8 +2906,7 @@ public Builder addRules(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public Builder addRules(
-        int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
+    public Builder addRules(int index, com.google.iam.v2beta.PolicyRule.Builder builderForValue) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
         rules_.add(index, builderForValue.build());
@@ -2609,6 +2917,8 @@ public Builder addRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2620,8 +2930,7 @@ public Builder addAllRules(
         java.lang.Iterable values) {
       if (rulesBuilder_ == null) {
         ensureRulesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, rules_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
         onChanged();
       } else {
         rulesBuilder_.addAllMessages(values);
@@ -2629,6 +2938,8 @@ public Builder addAllRules(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2647,6 +2958,8 @@ public Builder clearRules() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2665,6 +2978,8 @@ public Builder removeRules(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2672,11 +2987,12 @@ public Builder removeRules(int index) {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(
-        int index) {
+    public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(int index) {
       return getRulesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2684,14 +3000,16 @@ public com.google.iam.v2beta.PolicyRule.Builder getRulesBuilder(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
-        int index) {
+    public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index) {
       if (rulesBuilder_ == null) {
-        return rules_.get(index);  } else {
+        return rules_.get(index);
+      } else {
         return rulesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2699,8 +3017,8 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public java.util.List 
-         getRulesOrBuilderList() {
+    public java.util.List
+        getRulesOrBuilderList() {
       if (rulesBuilder_ != null) {
         return rulesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2708,6 +3026,8 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2716,10 +3036,12 @@ public com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
     public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder() {
-      return getRulesFieldBuilder().addBuilder(
-          com.google.iam.v2beta.PolicyRule.getDefaultInstance());
+      return getRulesFieldBuilder()
+          .addBuilder(com.google.iam.v2beta.PolicyRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2727,12 +3049,13 @@ public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder() {
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(
-        int index) {
-      return getRulesFieldBuilder().addBuilder(
-          index, com.google.iam.v2beta.PolicyRule.getDefaultInstance());
+    public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(int index) {
+      return getRulesFieldBuilder()
+          .addBuilder(index, com.google.iam.v2beta.PolicyRule.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of rules that specify the behavior of the `Policy`. All of the rules
      * should be of the `kind` specified in the `Policy`.
@@ -2740,27 +3063,29 @@ public com.google.iam.v2beta.PolicyRule.Builder addRulesBuilder(
      *
      * repeated .google.iam.v2beta.PolicyRule rules = 10;
      */
-    public java.util.List 
-         getRulesBuilderList() {
+    public java.util.List getRulesBuilderList() {
       return getRulesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder> 
+            com.google.iam.v2beta.PolicyRule,
+            com.google.iam.v2beta.PolicyRule.Builder,
+            com.google.iam.v2beta.PolicyRuleOrBuilder>
         getRulesFieldBuilder() {
       if (rulesBuilder_ == null) {
-        rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v2beta.PolicyRule, com.google.iam.v2beta.PolicyRule.Builder, com.google.iam.v2beta.PolicyRuleOrBuilder>(
-                rules_,
-                ((bitField0_ & 0x00000200) != 0),
-                getParentForChildren(),
-                isClean());
+        rulesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.iam.v2beta.PolicyRule,
+                com.google.iam.v2beta.PolicyRule.Builder,
+                com.google.iam.v2beta.PolicyRuleOrBuilder>(
+                rules_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean());
         rules_ = null;
       }
       return rulesBuilder_;
     }
+
     @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);
     }
 
@@ -2770,12 +3095,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.Policy)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.Policy)
   private static final com.google.iam.v2beta.Policy DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.Policy();
   }
@@ -2784,27 +3109,27 @@ public static com.google.iam.v2beta.Policy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Policy parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Policy parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2819,6 +3144,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.Policy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
similarity index 67%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
index 24abdc5f6d..7c1c6a9bb9 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
+ *
+ *
  * 
  * Metadata for long-running `Policy` operations.
  * 
* * Protobuf type {@code google.iam.v2beta.PolicyOperationMetadata} */ -public final class PolicyOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.PolicyOperationMetadata) PolicyOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyOperationMetadata.newBuilder() to construct. private PolicyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyOperationMetadata() { - } + + private PolicyOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyOperationMetadata.class, com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); + com.google.iam.v2beta.PolicyOperationMetadata.class, + com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -62,11 +83,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -86,6 +112,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +124,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -112,8 +138,7 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +148,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.iam.v2beta.PolicyOperationMetadata)) { return super.equals(obj); } - com.google.iam.v2beta.PolicyOperationMetadata other = (com.google.iam.v2beta.PolicyOperationMetadata) obj; + com.google.iam.v2beta.PolicyOperationMetadata other = + (com.google.iam.v2beta.PolicyOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -155,130 +180,136 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.PolicyOperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.PolicyOperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v2beta.PolicyOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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.iam.v2beta.PolicyOperationMetadata 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; } /** + * + * *
    * Metadata for long-running `Policy` operations.
    * 
* * Protobuf type {@code google.iam.v2beta.PolicyOperationMetadata} */ - 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.iam.v2beta.PolicyOperationMetadata) com.google.iam.v2beta.PolicyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyOperationMetadata.class, com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); + com.google.iam.v2beta.PolicyOperationMetadata.class, + com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } // Construct using com.google.iam.v2beta.PolicyOperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.iam.v2beta.PolicyOperationMetadata build() { @java.lang.Override public com.google.iam.v2beta.PolicyOperationMetadata buildPartial() { - com.google.iam.v2beta.PolicyOperationMetadata result = new com.google.iam.v2beta.PolicyOperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.PolicyOperationMetadata result = + new com.google.iam.v2beta.PolicyOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +356,7 @@ public com.google.iam.v2beta.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } } @@ -332,38 +364,39 @@ private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) 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.iam.v2beta.PolicyOperationMetadata) { - return mergeFrom((com.google.iam.v2beta.PolicyOperationMetadata)other); + return mergeFrom((com.google.iam.v2beta.PolicyOperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -401,19 +434,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +456,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @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(); } } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -475,14 +522,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -493,6 +541,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -501,9 +551,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -516,6 +566,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -533,6 +585,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -545,6 +599,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -555,11 +611,14 @@ 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_; } } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -567,21 +626,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.PolicyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.PolicyOperationMetadata) private static final com.google.iam.v2beta.PolicyOperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.PolicyOperationMetadata(); } @@ -605,27 +667,27 @@ public static com.google.iam.v2beta.PolicyOperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +702,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.PolicyOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java similarity index 59% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java index ee8ec358aa..11fc1dca82 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyOperationMetadataOrBuilder extends +public interface PolicyOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.PolicyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java similarity index 80% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java index 75f332c62b..a1a4d2a7b2 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyOrBuilder extends +public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -21,10 +39,13 @@ public interface PolicyOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The resource name of the `Policy`, which must be unique. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -38,76 +59,93 @@ public interface PolicyOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
    * `Policy` is created.
    * 
* * string uid = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
    * 
* * string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A user-specified description of the `Policy`. This value can be up to 63
    * characters.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -117,6 +155,8 @@ public interface PolicyOrBuilder extends
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -124,15 +164,13 @@ public interface PolicyOrBuilder extends
    *
    * map<string, string> annotations = 5;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -140,9 +178,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 5;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -151,11 +190,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 5;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * A key-value map to store arbitrary metadata for the `Policy`. Keys
    * can be up to 63 characters. Values can be up to 255 characters.
@@ -163,10 +204,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 5;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -176,10 +218,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * An opaque tag that identifies the current version of the `Policy`. IAM uses
    * this value to help manage concurrent updates, so they do not cause one
@@ -189,93 +234,128 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time when the `Policy` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time when the `Policy` was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -283,9 +363,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  java.util.List 
-      getRulesList();
+  java.util.List getRulesList();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -295,6 +376,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.iam.v2beta.PolicyRule getRules(int index);
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -304,6 +387,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getRulesCount();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -311,9 +396,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  java.util.List 
-      getRulesOrBuilderList();
+  java.util.List getRulesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of rules that specify the behavior of the `Policy`. All of the rules
    * should be of the `kind` specified in the `Policy`.
@@ -321,6 +407,5 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.iam.v2beta.PolicyRule rules = 10;
    */
-  com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(
-      int index);
+  com.google.iam.v2beta.PolicyRuleOrBuilder getRulesOrBuilder(int index);
 }
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
new file mode 100644
index 0000000000..fd7363e931
--- /dev/null
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
@@ -0,0 +1,257 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/iam/v2beta/policy.proto
+
+package com.google.iam.v2beta;
+
+public final class PolicyProto {
+  private PolicyProto() {}
+
+  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_iam_v2beta_Policy_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_Policy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_PolicyRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_GetPolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_iam_v2beta_PolicyOperationMetadata_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\036google/iam/v2beta/policy.proto\022\021google"
+          + ".iam.v2beta\032\034google/api/annotations.prot"
+          + "o\032\027google/api/client.proto\032\037google/api/f"
+          + "ield_behavior.proto\032\034google/iam/v2beta/d"
+          + "eny.proto\032#google/longrunning/operations"
+          + ".proto\032\037google/protobuf/timestamp.proto\""
+          + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001"
+          + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na"
+          + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i"
+          + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta"
+          + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr"
+          + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001"
+          + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d"
+          + "elete_time\030\t \001(\0132\032.google.protobuf.Times"
+          + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2"
+          + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k"
+          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul"
+          + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta"
+          + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind"
+          + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB"
+          + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 "
+          + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030"
+          + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next"
+          + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n"
+          + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022"
+          + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g"
+          + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i"
+          + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy"
+          + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";"
+          + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002"
+          + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe"
+          + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro"
+          + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol"
+          + "icies\022&.google.iam.v2beta.ListPoliciesRe"
+          + "quest\032\'.google.iam.v2beta.ListPoliciesRe"
+          + "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies"
+          + "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam"
+          + ".v2beta.GetPolicyRequest\032\031.google.iam.v2"
+          + "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic"
+          + "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo"
+          + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo"
+          + "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be"
+          + "ta/{parent=policies/*/*}:\006policy\332A\027paren"
+          + "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe"
+          + "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google"
+          + ".iam.v2beta.UpdatePolicyRequest\032\035.google"
+          + ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/"
+          + "{policy.name=policies/*/*/*}:\006policy\312A!\n"
+          + "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del"
+          + "etePolicy\022&.google.iam.v2beta.DeletePoli"
+          + "cyRequest\032\035.google.longrunning.Operation"
+          + "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332"
+          + "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada"
+          + "ta\032F\312A\022iam.googleapis.com\322A.https://www."
+          + "googleapis.com/auth/cloud-platformB\220\001\n\025c"
+          + "om.google.iam.v2betaB\013PolicyProtoP\001Z4goo"
+          + "gle.golang.org/genproto/googleapis/iam/v"
+          + "2beta;iam\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Go"
+          + "ogle\\Cloud\\Iam\\V2betab\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.iam.v2beta.DenyRuleProto.getDescriptor(),
+              com.google.longrunning.OperationsProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
+    internal_static_google_iam_v2beta_Policy_descriptor = getDescriptor().getMessageTypes().get(0);
+    internal_static_google_iam_v2beta_Policy_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_Policy_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Uid",
+              "Kind",
+              "DisplayName",
+              "Annotations",
+              "Etag",
+              "CreateTime",
+              "UpdateTime",
+              "DeleteTime",
+              "Rules",
+            });
+    internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor =
+        internal_static_google_iam_v2beta_Policy_descriptor.getNestedTypes().get(0);
+    internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_iam_v2beta_PolicyRule_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_PolicyRule_descriptor,
+            new java.lang.String[] {
+              "DenyRule", "Description", "Kind",
+            });
+    internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor,
+            new java.lang.String[] {
+              "Policies", "NextPageToken",
+            });
+    internal_static_google_iam_v2beta_GetPolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_GetPolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Policy", "PolicyId",
+            });
+    internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Policy",
+            });
+    internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Etag",
+            });
+    internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor,
+            new java.lang.String[] {
+              "CreateTime",
+            });
+    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.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.iam.v2beta.DenyRuleProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
similarity index 69%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
index 7a6aa73089..8da3bc2c5e 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
@@ -1,61 +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/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
 /**
+ *
+ *
  * 
  * A single rule in a `Policy`.
  * 
* * Protobuf type {@code google.iam.v2beta.PolicyRule} */ -public final class PolicyRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.PolicyRule) PolicyRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyRule.newBuilder() to construct. private PolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyRule() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyRule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v2beta.PolicyRule.class, com.google.iam.v2beta.PolicyRule.Builder.class); } private int kindCase_ = 0; private java.lang.Object kind_; + public enum KindCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DENY_RULE(2), KIND_NOT_SET(0); private final int value; + private KindCase(int value) { this.value = value; } @@ -71,29 +92,34 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 2: return DENY_RULE; - case 0: return KIND_NOT_SET; - default: return null; + case 2: + return DENY_RULE; + case 0: + return KIND_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public static final int DENY_RULE_FIELD_NUMBER = 2; /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -101,21 +127,26 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return The denyRule. */ @java.lang.Override public com.google.iam.v2beta.DenyRule getDenyRule() { if (kindCase_ == 2) { - return (com.google.iam.v2beta.DenyRule) kind_; + return (com.google.iam.v2beta.DenyRule) kind_; } return com.google.iam.v2beta.DenyRule.getDefaultInstance(); } /** + * + * *
    * A rule for a deny policy.
    * 
@@ -125,21 +156,25 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { @java.lang.Override public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { if (kindCase_ == 2) { - return (com.google.iam.v2beta.DenyRule) kind_; + return (com.google.iam.v2beta.DenyRule) kind_; } return com.google.iam.v2beta.DenyRule.getDefaultInstance(); } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -148,30 +183,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -180,6 +215,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -212,8 +247,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.iam.v2beta.DenyRule) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.iam.v2beta.DenyRule) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,20 +259,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.iam.v2beta.PolicyRule)) { return super.equals(obj); } com.google.iam.v2beta.PolicyRule other = (com.google.iam.v2beta.PolicyRule) obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 2: - if (!getDenyRule() - .equals(other.getDenyRule())) return false; + if (!getDenyRule().equals(other.getDenyRule())) return false; break; case 0: default: @@ -267,130 +301,135 @@ public int hashCode() { return hash; } - public static com.google.iam.v2beta.PolicyRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v2beta.PolicyRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v2beta.PolicyRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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.iam.v2beta.PolicyRule 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 single rule in a `Policy`.
    * 
* * Protobuf type {@code google.iam.v2beta.PolicyRule} */ - 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.iam.v2beta.PolicyRule) com.google.iam.v2beta.PolicyRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.PolicyRule.class, com.google.iam.v2beta.PolicyRule.Builder.class); + com.google.iam.v2beta.PolicyRule.class, + com.google.iam.v2beta.PolicyRule.Builder.class); } // Construct using com.google.iam.v2beta.PolicyRule.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_PolicyRule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_PolicyRule_descriptor; } @java.lang.Override @@ -427,7 +466,9 @@ public com.google.iam.v2beta.PolicyRule build() { @java.lang.Override public com.google.iam.v2beta.PolicyRule buildPartial() { com.google.iam.v2beta.PolicyRule result = new com.google.iam.v2beta.PolicyRule(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -443,8 +484,7 @@ private void buildPartial0(com.google.iam.v2beta.PolicyRule result) { private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; - if (kindCase_ == 2 && - denyRuleBuilder_ != null) { + if (kindCase_ == 2 && denyRuleBuilder_ != null) { result.kind_ = denyRuleBuilder_.build(); } } @@ -453,38 +493,39 @@ private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) { 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.iam.v2beta.PolicyRule) { - return mergeFrom((com.google.iam.v2beta.PolicyRule)other); + return mergeFrom((com.google.iam.v2beta.PolicyRule) other); } else { super.mergeFrom(other); return this; @@ -499,13 +540,15 @@ public Builder mergeFrom(com.google.iam.v2beta.PolicyRule other) { onChanged(); } switch (other.getKindCase()) { - case DENY_RULE: { - mergeDenyRule(other.getDenyRule()); - break; - } - case KIND_NOT_SET: { - break; - } + case DENY_RULE: + { + mergeDenyRule(other.getDenyRule()); + break; + } + case KIND_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -533,24 +576,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getDenyRuleFieldBuilder().getBuilder(), - extensionRegistry); - kindCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getDenyRuleFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,12 +604,12 @@ public Builder mergeFrom( } // finally return this; } + private int kindCase_ = 0; private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public Builder clearKind() { @@ -578,13 +622,19 @@ public Builder clearKind() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder> denyRuleBuilder_; + com.google.iam.v2beta.DenyRule, + com.google.iam.v2beta.DenyRule.Builder, + com.google.iam.v2beta.DenyRuleOrBuilder> + denyRuleBuilder_; /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ @java.lang.Override @@ -592,11 +642,14 @@ public boolean hasDenyRule() { return kindCase_ == 2; } /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return The denyRule. */ @java.lang.Override @@ -614,6 +667,8 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -634,14 +689,15 @@ public Builder setDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; */ - public Builder setDenyRule( - com.google.iam.v2beta.DenyRule.Builder builderForValue) { + public Builder setDenyRule(com.google.iam.v2beta.DenyRule.Builder builderForValue) { if (denyRuleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); @@ -652,6 +708,8 @@ public Builder setDenyRule( return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -660,10 +718,11 @@ public Builder setDenyRule( */ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { if (denyRuleBuilder_ == null) { - if (kindCase_ == 2 && - kind_ != com.google.iam.v2beta.DenyRule.getDefaultInstance()) { - kind_ = com.google.iam.v2beta.DenyRule.newBuilder((com.google.iam.v2beta.DenyRule) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 2 && kind_ != com.google.iam.v2beta.DenyRule.getDefaultInstance()) { + kind_ = + com.google.iam.v2beta.DenyRule.newBuilder((com.google.iam.v2beta.DenyRule) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -679,6 +738,8 @@ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -702,6 +763,8 @@ public Builder clearDenyRule() { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -712,6 +775,8 @@ public com.google.iam.v2beta.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -730,6 +795,8 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -737,17 +804,20 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { * .google.iam.v2beta.DenyRule deny_rule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder> + com.google.iam.v2beta.DenyRule, + com.google.iam.v2beta.DenyRule.Builder, + com.google.iam.v2beta.DenyRuleOrBuilder> getDenyRuleFieldBuilder() { if (denyRuleBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.iam.v2beta.DenyRule.getDefaultInstance(); } - denyRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.DenyRule, com.google.iam.v2beta.DenyRule.Builder, com.google.iam.v2beta.DenyRuleOrBuilder>( - (com.google.iam.v2beta.DenyRule) kind_, - getParentForChildren(), - isClean()); + denyRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v2beta.DenyRule, + com.google.iam.v2beta.DenyRule.Builder, + com.google.iam.v2beta.DenyRuleOrBuilder>( + (com.google.iam.v2beta.DenyRule) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; @@ -757,19 +827,21 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { private java.lang.Object description_ = ""; /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -778,21 +850,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -800,30 +873,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -833,27 +913,31 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A user-specified description of the rule. This value can be up to 256
      * characters.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,12 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v2beta.PolicyRule) } // @@protoc_insertion_point(class_scope:google.iam.v2beta.PolicyRule) private static final com.google.iam.v2beta.PolicyRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v2beta.PolicyRule(); } @@ -877,27 +961,27 @@ public static com.google.iam.v2beta.PolicyRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,6 +996,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v2beta.PolicyRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java similarity index 64% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java index bb0f894226..1c71f86bff 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.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/iam/v2beta/policy.proto package com.google.iam.v2beta; -public interface PolicyRuleOrBuilder extends +public interface PolicyRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v2beta.PolicyRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return Whether the denyRule field is set. */ boolean hasDenyRule(); /** + * + * *
    * A rule for a deny policy.
    * 
* * .google.iam.v2beta.DenyRule deny_rule = 2; + * * @return The denyRule. */ com.google.iam.v2beta.DenyRule getDenyRule(); /** + * + * *
    * A rule for a deny policy.
    * 
@@ -35,26 +59,31 @@ public interface PolicyRuleOrBuilder extends com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder(); /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A user-specified description of the rule. This value can be up to 256
    * characters.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); public com.google.iam.v2beta.PolicyRule.KindCase getKindCase(); } diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java similarity index 70% rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java index 0b82990b39..97a01efac9 100644 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto package com.google.iam.v2beta; /** + * + * *
  * Request message for `UpdatePolicy`.
  * 
* * Protobuf type {@code google.iam.v2beta.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v2beta.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePolicyRequest() { - } + + private UpdatePolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.UpdatePolicyRequest.class, com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); + com.google.iam.v2beta.UpdatePolicyRequest.class, + com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2beta.Policy policy_; /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -73,6 +96,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -80,6 +104,8 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -95,6 +121,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -106,8 +133,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (policy_ != null) {
       output.writeMessage(1, getPolicy());
     }
@@ -121,8 +147,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -132,17 +157,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.iam.v2beta.UpdatePolicyRequest)) {
       return super.equals(obj);
     }
-    com.google.iam.v2beta.UpdatePolicyRequest other = (com.google.iam.v2beta.UpdatePolicyRequest) obj;
+    com.google.iam.v2beta.UpdatePolicyRequest other =
+        (com.google.iam.v2beta.UpdatePolicyRequest) obj;
 
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -164,130 +189,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest 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.iam.v2beta.UpdatePolicyRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v2beta.UpdatePolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v2beta.UpdatePolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `UpdatePolicy`.
    * 
* * Protobuf type {@code google.iam.v2beta.UpdatePolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v2beta.UpdatePolicyRequest) com.google.iam.v2beta.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v2beta.UpdatePolicyRequest.class, com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); + com.google.iam.v2beta.UpdatePolicyRequest.class, + com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } // Construct using com.google.iam.v2beta.UpdatePolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +332,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v2beta.PolicyProto + .internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; } @java.lang.Override @@ -322,8 +353,11 @@ public com.google.iam.v2beta.UpdatePolicyRequest build() { @java.lang.Override public com.google.iam.v2beta.UpdatePolicyRequest buildPartial() { - com.google.iam.v2beta.UpdatePolicyRequest result = new com.google.iam.v2beta.UpdatePolicyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v2beta.UpdatePolicyRequest result = + new com.google.iam.v2beta.UpdatePolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,9 +365,7 @@ public com.google.iam.v2beta.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.policy_ = policyBuilder_ == null - ? policy_ - : policyBuilder_.build(); + result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); } } @@ -341,38 +373,39 @@ private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) { 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.iam.v2beta.UpdatePolicyRequest) { - return mergeFrom((com.google.iam.v2beta.UpdatePolicyRequest)other); + return mergeFrom((com.google.iam.v2beta.UpdatePolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -410,19 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,12 +465,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.iam.v2beta.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> policyBuilder_; + com.google.iam.v2beta.Policy, + com.google.iam.v2beta.Policy.Builder, + com.google.iam.v2beta.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -446,12 +485,15 @@ public Builder mergeFrom(
      * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -460,6 +502,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v2beta.Policy getPolicy() { @@ -470,6 +513,8 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -493,6 +538,8 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -502,8 +549,7 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
      *
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(
-        com.google.iam.v2beta.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
       } else {
@@ -514,6 +560,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -525,9 +573,9 @@ public Builder setPolicy(
      */
     public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
       if (policyBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          policy_ != null &&
-          policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && policy_ != null
+            && policy_ != com.google.iam.v2beta.Policy.getDefaultInstance()) {
           getPolicyBuilder().mergeFrom(value);
         } else {
           policy_ = value;
@@ -540,6 +588,8 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -560,6 +610,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -575,6 +627,8 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -588,11 +642,12 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v2beta.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      * To prevent conflicting updates, the `etag` value must match the value that
@@ -603,21 +658,24 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder> 
+            com.google.iam.v2beta.Policy,
+            com.google.iam.v2beta.Policy.Builder,
+            com.google.iam.v2beta.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v2beta.Policy, com.google.iam.v2beta.Policy.Builder, com.google.iam.v2beta.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v2beta.Policy,
+                com.google.iam.v2beta.Policy.Builder,
+                com.google.iam.v2beta.PolicyOrBuilder>(
+                getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -627,12 +685,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v2beta.UpdatePolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v2beta.UpdatePolicyRequest)
   private static final com.google.iam.v2beta.UpdatePolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v2beta.UpdatePolicyRequest();
   }
@@ -641,27 +699,27 @@ public static com.google.iam.v2beta.UpdatePolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdatePolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdatePolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -676,6 +734,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v2beta.UpdatePolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
rename to java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
index 2511387687..ffbd2892e1 100644
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.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/iam/v2beta/policy.proto
 
 package com.google.iam.v2beta;
 
-public interface UpdatePolicyRequestOrBuilder extends
+public interface UpdatePolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v2beta.UpdatePolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -16,10 +34,13 @@ public interface UpdatePolicyRequestOrBuilder extends
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
@@ -28,10 +49,13 @@ public interface UpdatePolicyRequestOrBuilder extends
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v2beta.Policy getPolicy(); /** + * + * *
    * Required. The policy to update.
    * To prevent conflicting updates, the `etag` value must match the value that
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto b/java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
similarity index 100%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
rename to java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/deny.proto
diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto b/java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto
similarity index 100%
rename from owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto
rename to java-iam/proto-google-iam-v2beta/src/main/proto/google/iam/v2beta/policy.proto
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
deleted file mode 100644
index 1636f34c79..0000000000
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
+++ /dev/null
@@ -1,131 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/iam_policy.proto
-
-package com.google.iam.v1;
-
-public final class IamPolicyProto {
-  private IamPolicyProto() {}
-  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_iam_v1_SetIamPolicyRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_GetIamPolicyRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_TestIamPermissionsResponse_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\036google/iam/v1/iam_policy.proto\022\rgoogle" +
-      ".iam.v1\032\034google/api/annotations.proto\032\027g" +
-      "oogle/api/client.proto\032\037google/api/field" +
-      "_behavior.proto\032\031google/api/resource.pro" +
-      "to\032\033google/iam/v1/options.proto\032\032google/" +
-      "iam/v1/policy.proto\032 google/protobuf/fie" +
-      "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" +
-      "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" +
-      "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" +
-      "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" +
-      "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" +
-      "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" +
-      "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" +
-      "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" +
-      "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" +
-      "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" +
-      "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." +
-      "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" +
-      "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" +
-      "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" +
-      ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" +
-      "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" +
-      "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" +
-      "am.v1.TestIamPermissionsRequest\032).google" +
-      ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" +
-      "\002)\"$/v1/{resource=**}:testIamPermissions" +
-      ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" +
-      "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" +
-      "gle.golang.org/genproto/googleapis/iam/v" +
-      "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" +
-      "Cloud\\Iam\\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.iam.v1.OptionsProto.getDescriptor(),
-          com.google.iam.v1.PolicyProto.getDescriptor(),
-          com.google.protobuf.FieldMaskProto.getDescriptor(),
-        });
-    internal_static_google_iam_v1_SetIamPolicyRequest_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_SetIamPolicyRequest_descriptor,
-        new java.lang.String[] { "Resource", "Policy", "UpdateMask", });
-    internal_static_google_iam_v1_GetIamPolicyRequest_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_GetIamPolicyRequest_descriptor,
-        new java.lang.String[] { "Resource", "Options", });
-    internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor,
-        new java.lang.String[] { "Resource", "Permissions", });
-    internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor,
-        new java.lang.String[] { "Permissions", });
-    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.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.iam.v1.OptionsProto.getDescriptor();
-    com.google.iam.v1.PolicyProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
deleted file mode 100644
index 6c60c51bcd..0000000000
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/options.proto
-
-package com.google.iam.v1;
-
-public final class OptionsProto {
-  private OptionsProto() {}
-  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_iam_v1_GetPolicyOptions_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_GetPolicyOptions_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\033google/iam/v1/options.proto\022\rgoogle.ia" +
-      "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" +
-      "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" +
-      "B\014OptionsProtoP\001Z0google.golang.org/genp" +
-      "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" +
-      "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" +
-      "3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        });
-    internal_static_google_iam_v1_GetPolicyOptions_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_GetPolicyOptions_descriptor,
-        new java.lang.String[] { "RequestedPolicyVersion", });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
deleted file mode 100644
index 37ca956d15..0000000000
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
+++ /dev/null
@@ -1,144 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/policy.proto
-
-package com.google.iam.v1;
-
-public final class PolicyProto {
-  private PolicyProto() {}
-  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_iam_v1_Policy_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_Policy_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_Binding_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_Binding_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditConfig_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditLogConfig_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_PolicyDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_BindingDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_BindingDelta_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditConfigDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditConfigDelta_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\032google/iam/v1/policy.proto\022\rgoogle.iam" +
-      ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" +
-      "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" +
-      "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" +
-      "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" +
-      "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" +
-      " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" +
-      "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" +
-      "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" +
-      "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" +
-      "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" +
-      ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" +
-      "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" +
-      "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" +
-      "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" +
-      ".google.iam.v1.BindingDelta\022<\n\023audit_con" +
-      "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" +
-      "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" +
-      "(\0162\".google.iam.v1.BindingDelta.Action\022\014" +
-      "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" +
-      "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" +
-      "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" +
-      "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" +
-      ".google.iam.v1.AuditConfigDelta.Action\022\017" +
-      "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" +
-      "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" +
-      "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" +
-      "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" +
-      "olang.org/genproto/googleapis/iam/v1;iam" +
-      "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" +
-      "\\Iam\\V1b\006proto3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.type.ExprProto.getDescriptor(),
-        });
-    internal_static_google_iam_v1_Policy_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_Policy_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_Policy_descriptor,
-        new java.lang.String[] { "Version", "Bindings", "AuditConfigs", "Etag", });
-    internal_static_google_iam_v1_Binding_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_iam_v1_Binding_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_Binding_descriptor,
-        new java.lang.String[] { "Role", "Members", "Condition", });
-    internal_static_google_iam_v1_AuditConfig_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditConfig_descriptor,
-        new java.lang.String[] { "Service", "AuditLogConfigs", });
-    internal_static_google_iam_v1_AuditLogConfig_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditLogConfig_descriptor,
-        new java.lang.String[] { "LogType", "ExemptedMembers", });
-    internal_static_google_iam_v1_PolicyDelta_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_PolicyDelta_descriptor,
-        new java.lang.String[] { "BindingDeltas", "AuditConfigDeltas", });
-    internal_static_google_iam_v1_BindingDelta_descriptor =
-      getDescriptor().getMessageTypes().get(5);
-    internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_BindingDelta_descriptor,
-        new java.lang.String[] { "Action", "Role", "Member", "Condition", });
-    internal_static_google_iam_v1_AuditConfigDelta_descriptor =
-      getDescriptor().getMessageTypes().get(6);
-    internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditConfigDelta_descriptor,
-        new java.lang.String[] { "Action", "Service", "ExemptedMember", "LogType", });
-    com.google.type.ExprProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java b/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
deleted file mode 100644
index 4d18065a31..0000000000
--- a/owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
+++ /dev/null
@@ -1,683 +0,0 @@
-package com.google.iam.v2;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- * 
- * An interface for managing Identity and Access Management (IAM) policies.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/v2/policy.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PoliciesGrpc { - - private PoliciesGrpc() {} - - public static final String SERVICE_NAME = "google.iam.v2.Policies"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicies", - requestType = com.google.iam.v2.ListPoliciesRequest.class, - responseType = com.google.iam.v2.ListPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPoliciesMethod() { - io.grpc.MethodDescriptor getListPoliciesMethod; - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - PoliciesGrpc.getListPoliciesMethod = getListPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.ListPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.ListPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) - .build(); - } - } - } - return getListPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = com.google.iam.v2.GetPolicyRequest.class, - responseType = com.google.iam.v2.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPolicyMethod() { - io.grpc.MethodDescriptor getGetPolicyMethod; - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - PoliciesGrpc.getGetPolicyMethod = getGetPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.Policy.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", - requestType = com.google.iam.v2.CreatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePolicyMethod() { - io.grpc.MethodDescriptor getCreatePolicyMethod; - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - PoliciesGrpc.getCreatePolicyMethod = getCreatePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.CreatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) - .build(); - } - } - } - return getCreatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = com.google.iam.v2.UpdatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { - io.grpc.MethodDescriptor getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - PoliciesGrpc.getUpdatePolicyMethod = getUpdatePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", - requestType = com.google.iam.v2.DeletePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePolicyMethod() { - io.grpc.MethodDescriptor getDeletePolicyMethod; - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - PoliciesGrpc.getDeletePolicyMethod = getDeletePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2.DeletePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) - .build(); - } - } - } - return getDeletePolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static PoliciesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - }; - return PoliciesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PoliciesBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - }; - return PoliciesBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PoliciesFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - }; - return PoliciesFutureStub.newStub(factory, channel); - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static abstract class PoliciesImplBase implements io.grpc.BindableService { - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies(com.google.iam.v2.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy(com.google.iam.v2.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy(com.google.iam.v2.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), responseObserver); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.ListPoliciesRequest, - com.google.iam.v2.ListPoliciesResponse>( - this, METHODID_LIST_POLICIES))) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.GetPolicyRequest, - com.google.iam.v2.Policy>( - this, METHODID_GET_POLICY))) - .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.CreatePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.UpdatePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.DeletePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_POLICY))) - .build(); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { - private PoliciesStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies(com.google.iam.v2.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy(com.google.iam.v2.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy(com.google.iam.v2.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PoliciesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.iam.v2.ListPoliciesResponse listPolicies(com.google.iam.v2.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPoliciesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public com.google.longrunning.Operation createPolicy(com.google.iam.v2.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.longrunning.Operation updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.longrunning.Operation deletePolicy(com.google.iam.v2.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyMethod(), getCallOptions(), request); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesFutureStub extends io.grpc.stub.AbstractFutureStub { - private PoliciesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPolicies( - com.google.iam.v2.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPolicy( - com.google.iam.v2.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPolicy( - com.google.iam.v2.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePolicy( - com.google.iam.v2.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICIES = 0; - private static final int METHODID_GET_POLICY = 1; - private static final int METHODID_CREATE_POLICY = 2; - private static final int METHODID_UPDATE_POLICY = 3; - private static final int METHODID_DELETE_POLICY = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final PoliciesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PoliciesImplBase 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_POLICIES: - serviceImpl.listPolicies((com.google.iam.v2.ListPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_POLICY: - serviceImpl.getPolicy((com.google.iam.v2.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_POLICY: - serviceImpl.createPolicy((com.google.iam.v2.CreatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy((com.google.iam.v2.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY: - serviceImpl.deletePolicy((com.google.iam.v2.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PoliciesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.v2.PolicyProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Policies"); - } - } - - private static final class PoliciesFileDescriptorSupplier - extends PoliciesBaseDescriptorSupplier { - PoliciesFileDescriptorSupplier() {} - } - - private static final class PoliciesMethodDescriptorSupplier - extends PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) - .addMethod(getListPoliciesMethod()) - .addMethod(getGetPolicyMethod()) - .addMethod(getCreatePolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getDeletePolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java deleted file mode 100644 index c236648210..0000000000 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v2/deny.proto - -package com.google.iam.v2; - -public final class DenyRuleProto { - private DenyRuleProto() {} - 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_iam_v2_DenyRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_DenyRule_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\030google/iam/v2/deny.proto\022\rgoogle.iam.v" + - "2\032\026google/type/expr.proto\"\253\001\n\010DenyRule\022\031" + - "\n\021denied_principals\030\001 \003(\t\022\034\n\024exception_p" + - "rincipals\030\002 \003(\t\022\032\n\022denied_permissions\030\003 " + - "\003(\t\022\035\n\025exception_permissions\030\004 \003(\t\022+\n\020de" + - "nial_condition\030\005 \001(\0132\021.google.type.ExprB" + - "\202\001\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z0" + - "google.golang.org/genproto/googleapis/ia" + - "m/v2;iam\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\" + - "Cloud\\Iam\\V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_v2_DenyRule_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2_DenyRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_DenyRule_descriptor, - new java.lang.String[] { "DeniedPrincipals", "ExceptionPrincipals", "DeniedPermissions", "ExceptionPermissions", "DenialCondition", }); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java deleted file mode 100644 index 3808c789f6..0000000000 --- a/owl-bot-staging/java-iam/v2/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ /dev/null @@ -1,224 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v2/policy.proto - -package com.google.iam.v2; - -public final class PolicyProto { - private PolicyProto() {} - 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_iam_v2_Policy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_PolicyRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_PolicyRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_ListPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_ListPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_GetPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_CreatePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_DeletePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2_PolicyOperationMetadata_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\032google/iam/v2/policy.proto\022\rgoogle.iam" + - ".v2\032\034google/api/annotations.proto\032\027googl" + - "e/api/client.proto\032\037google/api/field_beh" + - "avior.proto\032\030google/iam/v2/deny.proto\032#g" + - "oogle/longrunning/operations.proto\032\037goog" + - "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" + - "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" + - "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" + - "annotations\030\005 \003(\0132&.google.iam.v2.Policy" + - ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" + - "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" + - "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" + - "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" + - "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" + - "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" + - "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" + - "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" + - "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" + - "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" + - "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" + - "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" + - "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" + - "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" + - "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" + - "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" + - "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" + - "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + - "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" + - "es\022\".google.iam.v2.ListPoliciesRequest\032#" + - ".google.iam.v2.ListPoliciesResponse\"*\202\323\344" + - "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022" + - "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" + - "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v" + - "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat" + - "ePolicy\022\".google.iam.v2.CreatePolicyRequ" + - "est\032\035.google.longrunning.Operation\"g\202\323\344\223" + - "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027" + - "parent,policy,policy_id\312A!\n\006Policy\022\027Poli" + - "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g" + - "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" + - "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po" + - "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po" + - "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete" + - "Policy\022\".google.iam.v2.DeletePolicyReque" + - "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002" + - "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006" + - "Policy\022\027PolicyOperationMetadata\032F\312A\022iam." + - "googleapis.com\322A.https://www.googleapis." + - "com/auth/cloud-platformB\200\001\n\021com.google.i" + - "am.v2B\013PolicyProtoP\001Z0google.golang.org/" + - "genproto/googleapis/iam/v2;iam\252\002\023Google." + - "Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2b\006prot" + - "o3" - }; - 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.iam.v2.DenyRuleProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_iam_v2_Policy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2_Policy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_Policy_descriptor, - new java.lang.String[] { "Name", "Uid", "Kind", "DisplayName", "Annotations", "Etag", "CreateTime", "UpdateTime", "DeleteTime", "Rules", "ManagingAuthority", }); - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor = - internal_static_google_iam_v2_Policy_descriptor.getNestedTypes().get(0); - internal_static_google_iam_v2_Policy_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_Policy_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_iam_v2_PolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v2_PolicyRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_PolicyRule_descriptor, - new java.lang.String[] { "DenyRule", "Description", "Kind", }); - internal_static_google_iam_v2_ListPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v2_ListPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_ListPoliciesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_iam_v2_ListPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v2_ListPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_ListPoliciesResponse_descriptor, - new java.lang.String[] { "Policies", "NextPageToken", }); - internal_static_google_iam_v2_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v2_GetPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_GetPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_v2_CreatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_v2_CreatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_CreatePolicyRequest_descriptor, - new java.lang.String[] { "Parent", "Policy", "PolicyId", }); - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_v2_UpdatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_UpdatePolicyRequest_descriptor, - new java.lang.String[] { "Policy", }); - internal_static_google_iam_v2_DeletePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_iam_v2_DeletePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_DeletePolicyRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_iam_v2_PolicyOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2_PolicyOperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.iam.v2.DenyRuleProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java b/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java deleted file mode 100644 index 30a5cf76b3..0000000000 --- a/owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java +++ /dev/null @@ -1,683 +0,0 @@ -package com.google.iam.v2beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * An interface for managing Identity and Access Management (IAM) policies.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/v2beta/policy.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PoliciesGrpc { - - private PoliciesGrpc() {} - - public static final String SERVICE_NAME = "google.iam.v2beta.Policies"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicies", - requestType = com.google.iam.v2beta.ListPoliciesRequest.class, - responseType = com.google.iam.v2beta.ListPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPoliciesMethod() { - io.grpc.MethodDescriptor getListPoliciesMethod; - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getListPoliciesMethod = PoliciesGrpc.getListPoliciesMethod) == null) { - PoliciesGrpc.getListPoliciesMethod = getListPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.ListPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.ListPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("ListPolicies")) - .build(); - } - } - } - return getListPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = com.google.iam.v2beta.GetPolicyRequest.class, - responseType = com.google.iam.v2beta.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPolicyMethod() { - io.grpc.MethodDescriptor getGetPolicyMethod; - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getGetPolicyMethod = PoliciesGrpc.getGetPolicyMethod) == null) { - PoliciesGrpc.getGetPolicyMethod = getGetPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.Policy.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicy", - requestType = com.google.iam.v2beta.CreatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePolicyMethod() { - io.grpc.MethodDescriptor getCreatePolicyMethod; - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getCreatePolicyMethod = PoliciesGrpc.getCreatePolicyMethod) == null) { - PoliciesGrpc.getCreatePolicyMethod = getCreatePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.CreatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("CreatePolicy")) - .build(); - } - } - } - return getCreatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = com.google.iam.v2beta.UpdatePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { - io.grpc.MethodDescriptor getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getUpdatePolicyMethod = PoliciesGrpc.getUpdatePolicyMethod) == null) { - PoliciesGrpc.getUpdatePolicyMethod = getUpdatePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicy", - requestType = com.google.iam.v2beta.DeletePolicyRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePolicyMethod() { - io.grpc.MethodDescriptor getDeletePolicyMethod; - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - synchronized (PoliciesGrpc.class) { - if ((getDeletePolicyMethod = PoliciesGrpc.getDeletePolicyMethod) == null) { - PoliciesGrpc.getDeletePolicyMethod = getDeletePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v2beta.DeletePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PoliciesMethodDescriptorSupplier("DeletePolicy")) - .build(); - } - } - } - return getDeletePolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static PoliciesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - }; - return PoliciesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PoliciesBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - }; - return PoliciesBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PoliciesFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - }; - return PoliciesFutureStub.newStub(factory, channel); - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static abstract class PoliciesImplBase implements io.grpc.BindableService { - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), responseObserver); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.ListPoliciesRequest, - com.google.iam.v2beta.ListPoliciesResponse>( - this, METHODID_LIST_POLICIES))) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.GetPolicyRequest, - com.google.iam.v2beta.Policy>( - this, METHODID_GET_POLICY))) - .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.CreatePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.UpdatePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.DeletePolicyRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_POLICY))) - .build(); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesStub extends io.grpc.stub.AbstractAsyncStub { - private PoliciesStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PoliciesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesBlockingStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.iam.v2beta.ListPoliciesResponse listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPoliciesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public com.google.longrunning.Operation createPolicy(com.google.iam.v2beta.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.longrunning.Operation updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.longrunning.Operation deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyMethod(), getCallOptions(), request); - } - } - - /** - *
-   * An interface for managing Identity and Access Management (IAM) policies.
-   * 
- */ - public static final class PoliciesFutureStub extends io.grpc.stub.AbstractFutureStub { - private PoliciesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PoliciesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PoliciesFutureStub(channel, callOptions); - } - - /** - *
-     * Retrieves the policies of the specified kind that are attached to a
-     * resource.
-     * The response lists only policy metadata. In particular, policy rules are
-     * omitted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPolicy( - com.google.iam.v2beta.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified policy.
-     * You can update only the rules and the display name for the policy.
-     * To update a policy, you should use a read-modify-write loop:
-     * 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy.
-     * 2. Modify the policy as needed.
-     * 3. Use `UpdatePolicy` to write the updated policy.
-     * This pattern helps prevent conflicts between concurrent updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a policy. This action is permanent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICIES = 0; - private static final int METHODID_GET_POLICY = 1; - private static final int METHODID_CREATE_POLICY = 2; - private static final int METHODID_UPDATE_POLICY = 3; - private static final int METHODID_DELETE_POLICY = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final PoliciesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PoliciesImplBase 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_POLICIES: - serviceImpl.listPolicies((com.google.iam.v2beta.ListPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_POLICY: - serviceImpl.getPolicy((com.google.iam.v2beta.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_POLICY: - serviceImpl.createPolicy((com.google.iam.v2beta.CreatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy((com.google.iam.v2beta.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY: - serviceImpl.deletePolicy((com.google.iam.v2beta.DeletePolicyRequest) 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 PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PoliciesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.v2beta.PolicyProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Policies"); - } - } - - private static final class PoliciesFileDescriptorSupplier - extends PoliciesBaseDescriptorSupplier { - PoliciesFileDescriptorSupplier() {} - } - - private static final class PoliciesMethodDescriptorSupplier - extends PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PoliciesMethodDescriptorSupplier(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 (PoliciesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) - .addMethod(getListPoliciesMethod()) - .addMethod(getGetPolicyMethod()) - .addMethod(getCreatePolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getDeletePolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java deleted file mode 100644 index 8cadda2b86..0000000000 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v2beta/deny.proto - -package com.google.iam.v2beta; - -public final class DenyRuleProto { - private DenyRuleProto() {} - 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_iam_v2beta_DenyRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_DenyRule_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\034google/iam/v2beta/deny.proto\022\021google.i" + - "am.v2beta\032\026google/type/expr.proto\"\253\001\n\010De" + - "nyRule\022\031\n\021denied_principals\030\001 \003(\t\022\034\n\024exc" + - "eption_principals\030\002 \003(\t\022\032\n\022denied_permis" + - "sions\030\003 \003(\t\022\035\n\025exception_permissions\030\004 \003" + - "(\t\022+\n\020denial_condition\030\005 \001(\0132\021.google.ty" + - "pe.ExprB\222\001\n\025com.google.iam.v2betaB\rDenyR" + - "uleProtoP\001Z4google.golang.org/genproto/g" + - "oogleapis/iam/v2beta;iam\252\002\027Google.Cloud." + - "Iam.V2Beta\312\002\027Google\\Cloud\\Iam\\V2betab\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_v2beta_DenyRule_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2beta_DenyRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_DenyRule_descriptor, - new java.lang.String[] { "DeniedPrincipals", "ExceptionPrincipals", "DeniedPermissions", "ExceptionPermissions", "DenialCondition", }); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java deleted file mode 100644 index 412d297f58..0000000000 --- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java +++ /dev/null @@ -1,225 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v2beta/policy.proto - -package com.google.iam.v2beta; - -public final class PolicyProto { - private PolicyProto() {} - 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_iam_v2beta_Policy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_PolicyRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v2beta_PolicyOperationMetadata_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\036google/iam/v2beta/policy.proto\022\021google" + - ".iam.v2beta\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\034google/iam/v2beta/d" + - "eny.proto\032#google/longrunning/operations" + - ".proto\032\037google/protobuf/timestamp.proto\"" + - "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" + - "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" + - "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" + - "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" + - "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + - "elete_time\030\t \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" + - "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" + - "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" + - ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" + - "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" + - "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" + - "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" + - "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" + - "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" + - "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" + - "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" + - "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" + - "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + - "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" + - "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + - "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" + - "icies\022&.google.iam.v2beta.ListPoliciesRe" + - "quest\032\'.google.iam.v2beta.ListPoliciesRe" + - "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies" + - "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam" + - ".v2beta.GetPolicyRequest\032\031.google.iam.v2" + - "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic" + - "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo" + - "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" + - "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be" + - "ta/{parent=policies/*/*}:\006policy\332A\027paren" + - "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe" + - "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google" + - ".iam.v2beta.UpdatePolicyRequest\032\035.google" + - ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/" + - "{policy.name=policies/*/*/*}:\006policy\312A!\n" + - "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del" + - "etePolicy\022&.google.iam.v2beta.DeletePoli" + - "cyRequest\032\035.google.longrunning.Operation" + - "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332" + - "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada" + - "ta\032F\312A\022iam.googleapis.com\322A.https://www." + - "googleapis.com/auth/cloud-platformB\220\001\n\025c" + - "om.google.iam.v2betaB\013PolicyProtoP\001Z4goo" + - "gle.golang.org/genproto/googleapis/iam/v" + - "2beta;iam\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Go" + - "ogle\\Cloud\\Iam\\V2betab\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.iam.v2beta.DenyRuleProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_iam_v2beta_Policy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v2beta_Policy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_Policy_descriptor, - new java.lang.String[] { "Name", "Uid", "Kind", "DisplayName", "Annotations", "Etag", "CreateTime", "UpdateTime", "DeleteTime", "Rules", }); - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor = - internal_static_google_iam_v2beta_Policy_descriptor.getNestedTypes().get(0); - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_Policy_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_iam_v2beta_PolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v2beta_PolicyRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_PolicyRule_descriptor, - new java.lang.String[] { "DenyRule", "Description", "Kind", }); - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v2beta_ListPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v2beta_ListPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor, - new java.lang.String[] { "Policies", "NextPageToken", }); - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v2beta_GetPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_GetPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_v2beta_CreatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor, - new java.lang.String[] { "Parent", "Policy", "PolicyId", }); - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_v2beta_UpdatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor, - new java.lang.String[] { "Policy", }); - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_iam_v2beta_DeletePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_iam_v2beta_PolicyOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.iam.v2beta.DenyRuleProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}