From e12f449ba0ab7e8e2ca53a3b2229028891e70fcc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 23 May 2023 17:43:10 +0000 Subject: [PATCH 1/7] chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation PiperOrigin-RevId: 534084593 Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6IjM3MDMyNWFmODIzNjczMmY1ODg1ZjU5NDBlMGVmNDgxZmVlODMwMDMifQ== --- .../com/google/iam/v1/IamPolicyProto.java | 149 -- .../java/com/google/iam/v1/OptionsProto.java | 64 - .../java/com/google/iam/v1/PolicyProto.java | 161 -- .../java/com/google/iam/v2/DenyRuleProto.java | 75 - .../java/com/google/iam/v2/PolicyProto.java | 255 --- .../com/google/iam/v2beta/DenyRuleProto.java | 76 - .../com/google/iam/v2beta/PolicyProto.java | 257 --- .../java/com/google/iam/v1/IAMPolicyGrpc.java | 379 ++--- .../java/com/google/iam/v1/AuditConfig.java | 470 ++---- .../com/google/iam/v1/AuditConfigDelta.java | 577 +++---- .../iam/v1/AuditConfigDeltaOrBuilder.java | 51 +- .../google/iam/v1/AuditConfigOrBuilder.java | 45 +- .../com/google/iam/v1/AuditLogConfig.java | 504 ++---- .../iam/v1/AuditLogConfigOrBuilder.java | 42 +- .../main/java/com/google/iam/v1/Binding.java | 698 ++++---- .../java/com/google/iam/v1/BindingDelta.java | 570 +++---- .../google/iam/v1/BindingDeltaOrBuilder.java | 50 +- .../com/google/iam/v1/BindingOrBuilder.java | 106 +- .../google/iam/v1/GetIamPolicyRequest.java | 442 ++--- .../iam/v1/GetIamPolicyRequestOrBuilder.java | 43 +- .../com/google/iam/v1/GetPolicyOptions.java | 297 ++-- .../iam/v1/GetPolicyOptionsOrBuilder.java | 25 +- .../com/google/iam/v1/IamPolicyProto.java | 131 ++ .../java/com/google/iam/v1/OptionsProto.java | 51 + .../main/java/com/google/iam/v1/Policy.java | 681 ++++---- .../java/com/google/iam/v1/PolicyDelta.java | 540 +++--- .../google/iam/v1/PolicyDeltaOrBuilder.java | 55 +- .../com/google/iam/v1/PolicyOrBuilder.java | 74 +- .../java/com/google/iam/v1/PolicyProto.java | 144 ++ .../google/iam/v1/SetIamPolicyRequest.java | 536 +++--- .../iam/v1/SetIamPolicyRequestOrBuilder.java | 54 +- .../iam/v1/TestIamPermissionsRequest.java | 498 ++---- .../TestIamPermissionsRequestOrBuilder.java | 53 +- .../iam/v1/TestIamPermissionsResponse.java | 398 ++--- .../TestIamPermissionsResponseOrBuilder.java | 36 +- .../java/com/google/iam/v2/PoliciesGrpc.java | 544 +++--- .../google/iam/v2/CreatePolicyRequest.java | 500 +++--- .../iam/v2/CreatePolicyRequestOrBuilder.java | 50 +- .../google/iam/v2/DeletePolicyRequest.java | 425 ++--- .../iam/v2/DeletePolicyRequestOrBuilder.java | 44 +- .../main/java/com/google/iam/v2/DenyRule.java | 1021 ++++++----- .../com/google/iam/v2/DenyRuleOrBuilder.java | 144 +- .../java/com/google/iam/v2/DenyRuleProto.java | 57 + .../com/google/iam/v2/GetPolicyRequest.java | 340 ++-- .../iam/v2/GetPolicyRequestOrBuilder.java | 33 +- .../google/iam/v2/ListPoliciesRequest.java | 449 ++--- .../iam/v2/ListPoliciesRequestOrBuilder.java | 45 +- .../google/iam/v2/ListPoliciesResponse.java | 487 ++---- .../iam/v2/ListPoliciesResponseOrBuilder.java | 46 +- .../main/java/com/google/iam/v2/Policy.java | 1499 +++++++---------- .../iam/v2/PolicyOperationMetadata.java | 349 ++-- .../v2/PolicyOperationMetadataOrBuilder.java | 26 +- .../com/google/iam/v2/PolicyOrBuilder.java | 180 +- .../java/com/google/iam/v2/PolicyProto.java | 224 +++ .../java/com/google/iam/v2/PolicyRule.java | 437 ++--- .../google/iam/v2/PolicyRuleOrBuilder.java | 37 +- .../google/iam/v2/UpdatePolicyRequest.java | 350 ++-- .../iam/v2/UpdatePolicyRequestOrBuilder.java | 29 +- .../src/main/proto/google/iam/v2/deny.proto | 0 .../src/main/proto/google/iam/v2/policy.proto | 0 .../com/google/iam/v2beta/PoliciesGrpc.java | 550 +++--- .../iam/v2beta/CreatePolicyRequest.java | 505 +++--- .../v2beta/CreatePolicyRequestOrBuilder.java | 50 +- .../iam/v2beta/DeletePolicyRequest.java | 429 ++--- .../v2beta/DeletePolicyRequestOrBuilder.java | 44 +- .../java/com/google/iam/v2beta/DenyRule.java | 1033 ++++++------ .../google/iam/v2beta/DenyRuleOrBuilder.java | 144 +- .../com/google/iam/v2beta/DenyRuleProto.java | 57 + .../google/iam/v2beta/GetPolicyRequest.java | 343 ++-- .../iam/v2beta/GetPolicyRequestOrBuilder.java | 33 +- .../iam/v2beta/ListPoliciesRequest.java | 453 ++--- .../v2beta/ListPoliciesRequestOrBuilder.java | 45 +- .../iam/v2beta/ListPoliciesResponse.java | 491 ++---- .../v2beta/ListPoliciesResponseOrBuilder.java | 46 +- .../java/com/google/iam/v2beta/Policy.java | 1430 ++++++---------- .../iam/v2beta/PolicyOperationMetadata.java | 349 ++-- .../PolicyOperationMetadataOrBuilder.java | 26 +- .../google/iam/v2beta/PolicyOrBuilder.java | 171 +- .../com/google/iam/v2beta/PolicyProto.java | 225 +++ .../com/google/iam/v2beta/PolicyRule.java | 452 ++--- .../iam/v2beta/PolicyRuleOrBuilder.java | 37 +- .../iam/v2beta/UpdatePolicyRequest.java | 355 ++-- .../v2beta/UpdatePolicyRequestOrBuilder.java | 29 +- .../main/proto/google/iam/v2beta/deny.proto | 0 .../main/proto/google/iam/v2beta/policy.proto | 0 85 files changed, 9130 insertions(+), 14070 deletions(-) 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 (63%) 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 (70%) 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 (72%) 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 (93%) 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 (68%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java (65%) 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 (75%) 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 (87%) 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 (71%) 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 (65%) 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 (62%) rename {java-iam => owl-bot-staging/java-iam/v1}/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java (61%) rename {java-iam => owl-bot-staging/java-iam/v2}/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java (51%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java (73%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java (80%) 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 (76%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java (84%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java (93%) 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 (69%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java (70%) 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 (76%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java (70%) 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 (71%) 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 (68%) rename {java-iam => owl-bot-staging/java-iam/v2}/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java (60%) 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 (70%) 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%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java (50%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java (73%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java (80%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java (71%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java (76%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java (83%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java (94%) 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 (69%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java (70%) 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 (76%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java (70%) 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 (70%) 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 (67%) rename {java-iam => owl-bot-staging/java-iam/v2beta}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java (61%) 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 (70%) 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/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 e1a3a44398..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\177\n\021c" - + "om.google.iam.v1B\016IamPolicyProtoP\001Z)clou" - + "d.google.com/go/iam/apiv1/iampb;iampb\370\001\001" - + "\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Ia" - + "m\\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 9f6acfc563..0000000000 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java +++ /dev/null @@ -1,64 +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}\n\021com.google.iam.v1B" - + "\014OptionsProtoP\001Z)cloud.google.com/go/iam" - + "/apiv1/iampb;iampb\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[] {}); - 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 13ad10267e..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|\n\021com" - + ".google.iam.v1B\013PolicyProtoP\001Z)cloud.goo" - + "gle.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Go" - + "ogle.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 fbe8dc3714..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" - + "{\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z)c" - + "loud.google.com/go/iam/apiv2/iampb;iampb" - + "\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\Cloud\\Ia" - + "m\\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 d7b59bfe2a..0000000000 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ /dev/null @@ -1,255 +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-platformBy\n\021com.google.ia" - + "m.v2B\013PolicyProtoP\001Z)cloud.google.com/go" - + "/iam/apiv2/iampb;iampb\252\002\023Google.Cloud.Ia" - + "m.V2\312\002\023Google\\Cloud\\Iam\\V2b\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.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 2f14e35670..0000000000 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java +++ /dev/null @@ -1,76 +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\213\001\n\025com.google.iam.v2betaB\rDenyR" - + "uleProtoP\001Z-cloud.google.com/go/iam/apiv" - + "2beta/iampb;iampb\252\002\027Google.Cloud.Iam.V2B" - + "eta\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3" - }; - 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 ac3be8e6d1..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\211\001\n\025c" - + "om.google.iam.v2betaB\013PolicyProtoP\001Z-clo" - + "ud.google.com/go/iam/apiv2beta/iampb;iam" - + "pb\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Google\\Cl" - + "oud\\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 63% 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 ab6ee46a4d..48839ed68d 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.
@@ -238,40 +197,30 @@ public IAMPolicyFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default 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.
      * 
*/ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default 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,18 +230,14 @@ default void getIamPolicy(
      * may "fail open" without warning.
      * 
*/ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service IAMPolicy. - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -314,17 +259,16 @@ default void testIamPermissions(
    * attached.
    * 
*/ - public abstract static class IAMPolicyImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class IAMPolicyImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return IAMPolicyGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service IAMPolicy. - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -346,55 +290,46 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * attached.
    * 
*/ - public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyStub + extends io.grpc.stub.AbstractAsyncStub { + 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
@@ -404,20 +339,15 @@ 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); } } /** * A stub to allow clients to do synchronous rpc calls to service IAMPolicy. - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -441,7 +371,8 @@ public void testIamPermissions(
    */
   public static final class IAMPolicyBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private IAMPolicyBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -452,8 +383,6 @@ protected IAMPolicyBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
@@ -466,8 +395,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
@@ -480,8 +407,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
@@ -491,8 +416,7 @@ 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); } @@ -500,7 +424,6 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service IAMPolicy. - * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -524,48 +447,44 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
    */
   public static final class IAMPolicyFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private IAMPolicyFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    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
@@ -575,9 +494,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); } @@ -587,11 +505,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 AsyncService serviceImpl; private final int methodId; @@ -605,20 +523,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(); @@ -639,28 +553,31 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .build(); } - 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 @@ -702,14 +619,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 5414ae4c2c..630859296c 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,36 +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; /** - * - * *
  * Specifies the audit configuration for a service.
  * The configuration determines which permission types are logged, and what
  * identities, if any, are exempted from logging.
  * An AuditConfig must have one or more AuditLogConfigs.
+ *
  * If there are AuditConfigs for both `allServices` and a specific service,
  * the union of the two AuditConfigs is used for that service: the log_types
  * specified in each AuditConfig are enabled, and the exempted_members in each
  * AuditLogConfig are exempted.
+ *
  * Example Policy with multiple AuditConfigs:
+ *
  *     {
  *       "audit_configs": [
  *         {
@@ -66,6 +52,7 @@
  *         }
  *       ]
  *     }
+ *
  * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
  * logging. It also exempts jose@example.com from DATA_READ logging, and
  * aliya@example.com from DATA_WRITE logging.
@@ -73,16 +60,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,35 +76,28 @@ 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() {
-    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`.
@@ -126,7 +105,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string service = 1; - * * @return The service. */ @java.lang.Override @@ -135,15 +113,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`.
@@ -151,15 +128,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 { @@ -168,12 +146,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.
    * 
@@ -185,8 +160,6 @@ public java.util.List getAuditLogConfigsList() return auditLogConfigs_; } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -194,13 +167,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.
    * 
@@ -212,8 +183,6 @@ public int getAuditLogConfigsCount() { return auditLogConfigs_.size(); } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -225,8 +194,6 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { return auditLogConfigs_.get(index); } /** - * - * *
    * The configuration for logging of each type of permission.
    * 
@@ -234,12 +201,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; @@ -251,7 +218,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_); } @@ -271,7 +239,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; @@ -281,15 +250,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; } @@ -312,113 +283,112 @@ 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
    * identities, if any, are exempted from logging.
    * An AuditConfig must have one or more AuditLogConfigs.
+   *
    * If there are AuditConfigs for both `allServices` and a specific service,
    * the union of the two AuditConfigs is used for that service: the log_types
    * specified in each AuditConfig are enabled, and the exempted_members in each
    * AuditLogConfig are exempted.
+   *
    * Example Policy with multiple AuditConfigs:
+   *
    *     {
    *       "audit_configs": [
    *         {
@@ -454,6 +424,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         }
    *       ]
    *     }
+   *
    * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
    * logging. It also exempts jose@example.com from DATA_READ logging, and
    * aliya@example.com from DATA_WRITE logging.
@@ -461,30 +432,33 @@ 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();
@@ -501,7 +475,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_AuditConfig_descriptor;
     }
 
@@ -523,9 +498,7 @@ 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;
     }
@@ -549,43 +522,10 @@ private void buildPartial0(com.google.iam.v1.AuditConfig result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.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;
@@ -617,10 +557,9 @@ 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_);
           }
@@ -652,31 +591,30 @@ 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) {
@@ -686,13 +624,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`.
@@ -700,13 +635,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; @@ -715,8 +650,6 @@ public java.lang.String getService() { } } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -724,14 +657,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 { @@ -739,8 +673,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`.
@@ -748,22 +680,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`.
@@ -771,7 +699,6 @@ public Builder setService(java.lang.String value) {
      * 
* * string service = 1; - * * @return This builder for chaining. */ public Builder clearService() { @@ -781,8 +708,6 @@ public Builder clearService() { return this; } /** - * - * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -790,14 +715,12 @@ 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; @@ -806,25 +729,18 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { } 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.
      * 
@@ -839,8 +755,6 @@ public java.util.List getAuditLogConfigsList() } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -855,8 +769,6 @@ public int getAuditLogConfigsCount() { } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -871,15 +783,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(); @@ -893,8 +804,6 @@ public Builder setAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig va return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -913,8 +822,6 @@ public Builder setAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -935,15 +842,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(); @@ -957,15 +863,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()); @@ -976,8 +881,6 @@ public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig.Builder build return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -996,8 +899,6 @@ public Builder addAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1008,7 +909,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); @@ -1016,8 +918,6 @@ public Builder addAllAuditLogConfigs( return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1035,8 +935,6 @@ public Builder clearAuditLogConfigs() { return this; } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1054,44 +952,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 { @@ -1099,8 +992,6 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int } } /** - * - * *
      * The configuration for logging of each type of permission.
      * 
@@ -1108,47 +999,38 @@ 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_ & 0x00000002) != 0), getParentForChildren(), @@ -1157,9 +1039,9 @@ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder(int in } 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); } @@ -1169,12 +1051,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(); } @@ -1183,27 +1065,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; @@ -1218,4 +1100,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 9fc1f68b1d..b08f90ae92 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,34 @@ 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() {
-    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 +65,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -101,8 +73,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -114,8 +84,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -124,8 +92,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -134,8 +100,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -144,6 +108,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 +133,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; @@ -230,47 +195,35 @@ 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`.
@@ -279,7 +232,6 @@ public com.google.iam.v1.AuditConfigDelta.Action getAction() {
    * 
* * string service = 2; - * * @return The service. */ @java.lang.Override @@ -288,15 +240,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`.
@@ -305,15 +256,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 { @@ -322,12 +274,9 @@ public com.google.protobuf.ByteString getServiceBytes() { } 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.
@@ -335,7 +284,6 @@ public com.google.protobuf.ByteString getServiceBytes() {
    * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ @java.lang.Override @@ -344,15 +292,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.
@@ -360,15 +307,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 { @@ -377,12 +325,9 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { } 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.
@@ -390,7 +335,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() {
    * 
* * string log_type = 4; - * * @return The logType. */ @java.lang.Override @@ -399,15 +343,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.
@@ -415,15 +358,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 { @@ -432,7 +376,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -444,7 +387,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_); } @@ -467,7 +411,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_); @@ -486,7 +431,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); @@ -494,9 +439,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; } @@ -521,103 +469,99 @@ 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.
@@ -625,32 +569,33 @@ 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();
@@ -663,9 +608,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
@@ -685,9 +630,7 @@ 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;
     }
@@ -708,43 +651,10 @@ private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.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;
@@ -797,37 +707,32 @@ 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) {
@@ -837,36 +742,28 @@ 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. */ @@ -877,33 +774,26 @@ 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. */ @@ -917,15 +807,12 @@ 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() { @@ -937,8 +824,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`.
@@ -947,13 +832,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; @@ -962,8 +847,6 @@ public java.lang.String getService() { } } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -972,14 +855,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 { @@ -987,8 +871,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`.
@@ -997,22 +879,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`.
@@ -1021,7 +899,6 @@ public Builder setService(java.lang.String value) {
      * 
* * string service = 2; - * * @return This builder for chaining. */ public Builder clearService() { @@ -1031,8 +908,6 @@ public Builder clearService() { return this; } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1041,14 +916,12 @@ 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; @@ -1058,8 +931,6 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { private java.lang.Object exemptedMember_ = ""; /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1067,13 +938,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; @@ -1082,8 +953,6 @@ public java.lang.String getExemptedMember() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1091,14 +960,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 { @@ -1106,8 +976,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1115,22 +983,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.
@@ -1138,7 +1002,6 @@ public Builder setExemptedMember(java.lang.String value) {
      * 
* * string exempted_member = 3; - * * @return This builder for chaining. */ public Builder clearExemptedMember() { @@ -1148,8 +1011,6 @@ public Builder clearExemptedMember() { return this; } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1157,14 +1018,12 @@ 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; @@ -1174,8 +1033,6 @@ public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { private java.lang.Object logType_ = ""; /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1183,13 +1040,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; @@ -1198,8 +1055,6 @@ public java.lang.String getLogType() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1207,14 +1062,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 { @@ -1222,8 +1078,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1231,22 +1085,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.
@@ -1254,7 +1104,6 @@ public Builder setLogType(java.lang.String value) {
      * 
* * string log_type = 4; - * * @return This builder for chaining. */ public Builder clearLogType() { @@ -1264,8 +1113,6 @@ public Builder clearLogType() { return this; } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1273,23 +1120,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); } @@ -1299,12 +1144,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(); } @@ -1313,27 +1158,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; @@ -1348,4 +1193,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 70% 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 dbdb7e2c76..73559b9246 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,29 +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; /** - * - * *
  * Provides the configuration for logging a type of permissions.
  * Example:
+ *
  *     {
  *       "audit_log_configs": [
  *         {
@@ -37,54 +21,49 @@
  *         }
  *       ]
  *     }
+ *
  * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
  * jose@example.com from DATA_READ logging.
  * 
* * 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; + exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AuditLogConfig(); } - @java.lang.Override - 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 +71,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 +82,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ LOG_TYPE_UNSPECIFIED(0), /** - * - * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -114,8 +90,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ ADMIN_READ(1), /** - * - * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -124,8 +98,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { */ DATA_WRITE(2), /** - * - * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -137,8 +109,6 @@ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default case. Should never be this.
      * 
@@ -147,8 +117,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 +125,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 +133,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 +141,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 +166,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; @@ -265,45 +229,34 @@ 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_; + private com.google.protobuf.LazyStringArrayList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -312,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.
@@ -329,15 +280,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.
@@ -346,7 +294,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. */ @@ -354,8 +301,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.
@@ -364,16 +309,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; @@ -385,7 +329,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_); } @@ -402,7 +347,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; @@ -420,7 +366,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); @@ -428,7 +374,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; } @@ -451,106 +398,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:
+   *
    *     {
    *       "audit_log_configs": [
    *         {
@@ -564,49 +508,53 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         }
    *       ]
    *     }
+   *
    * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
    * jose@example.com from DATA_READ logging.
    * 
* * 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_ & ~0x00000002); + exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); 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; } @@ -627,66 +575,26 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(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_ & ~0x00000002); - } - result.exemptedMembers_ = exemptedMembers_; - } - 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) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + exemptedMembers_.makeImmutable(); + result.exemptedMembers_ = exemptedMembers_; + } } @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; @@ -701,7 +609,7 @@ public Builder mergeFrom(com.google.iam.v1.AuditLogConfig other) { if (!other.exemptedMembers_.isEmpty()) { if (exemptedMembers_.isEmpty()) { exemptedMembers_ = other.exemptedMembers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExemptedMembersIsMutable(); exemptedMembers_.addAll(other.exemptedMembers_); @@ -734,26 +642,23 @@ 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) { @@ -763,34 +668,26 @@ 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. */ @@ -801,31 +698,24 @@ 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. */ @@ -839,14 +729,11 @@ 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() { @@ -856,18 +743,15 @@ public Builder clearLogType() { return this; } - private com.google.protobuf.LazyStringList exemptedMembers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExemptedMembersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!exemptedMembers_.isModifiable()) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -876,15 +760,14 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; - * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList getExemptedMembersList() { - return exemptedMembers_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getExemptedMembersList() { + exemptedMembers_.makeImmutable(); + return exemptedMembers_; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -893,15 +776,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.
@@ -910,7 +790,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. */ @@ -918,8 +797,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.
@@ -928,16 +805,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.
@@ -946,23 +821,20 @@ 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); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -971,22 +843,19 @@ 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); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -995,19 +864,19 @@ 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_); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -1016,18 +885,16 @@ 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_ & ~0x00000002); + exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -1036,23 +903,22 @@ 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); + 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); } @@ -1062,12 +928,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(); } @@ -1076,27 +942,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; @@ -1111,4 +977,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 4025472975..1e0998f377 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.
@@ -59,13 +35,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.
@@ -74,13 +48,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.
@@ -89,14 +60,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.
@@ -105,9 +73,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 b24aa460af..a41b1fc452 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,59 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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; + members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Binding(); } - @java.lang.Override - 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,19 +46,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } 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 @@ -87,30 +63,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 { @@ -119,30 +95,36 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int MEMBERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList members_; + private com.google.protobuf.LazyStringArrayList members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -150,43 +132,52 @@ public com.google.protobuf.ByteString getRoleBytes() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -194,43 +185,51 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -238,17 +237,19 @@ public int getMembersCount() {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -256,26 +257,32 @@ 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -283,43 +290,46 @@ public java.lang.String getMembers(int index) {
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -327,22 +337,22 @@ 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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ @java.lang.Override @@ -350,15 +360,16 @@ 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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -372,7 +383,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -384,7 +394,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_);
     }
@@ -415,7 +426,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;
@@ -425,18 +437,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;
@@ -464,114 +479,111 @@ 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; } @@ -584,19 +596,22 @@ 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_ & ~0x00000002); + members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -606,7 +621,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_Binding_descriptor; } @@ -627,69 +643,31 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(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_ & ~0x00000002); - } - result.members_ = members_; - } - private void buildPartial0(com.google.iam.v1.Binding result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.role_ = role_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + members_.makeImmutable(); + result.members_ = members_; + } if (((from_bitField0_ & 0x00000004) != 0)) { - result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + 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) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -706,7 +684,7 @@ public Builder mergeFrom(com.google.iam.v1.Binding other) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureMembersIsMutable(); members_.addAll(other.members_); @@ -742,32 +720,30 @@ 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) { @@ -777,26 +753,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; @@ -805,22 +778,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 { @@ -828,37 +800,30 @@ 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() { @@ -868,22 +833,18 @@ 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; @@ -891,36 +852,41 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList members_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!members_.isModifiable()) { members_ = new com.google.protobuf.LazyStringArrayList(members_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -928,43 +894,53 @@ private void ensureMembersIsMutable() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList getMembersList() { - return members_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getMembersList() { + members_.makeImmutable(); + return members_; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -972,43 +948,51 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1016,17 +1000,19 @@ public int getMembersCount() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -1034,26 +1020,32 @@ 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:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1061,44 +1053,53 @@ public java.lang.String getMembers(int index) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1106,51 +1107,59 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1158,50 +1167,58 @@ public Builder setMembers(int index, java.lang.String value) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1209,47 +1226,58 @@ public Builder addMembers(java.lang.String value) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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_); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1257,46 +1285,55 @@ public Builder addAllMembers(java.lang.Iterable values) {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @return This builder for chaining. */ public Builder clearMembers() { - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + members_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
+     *
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
+     *
      * * `allAuthenticatedUsers`: A special identifier that represents anyone
      *    who is authenticated with a Google account or a service account.
+     *
      * * `user:{emailid}`: An email address that represents a specific Google
      *    account. For example, `alice@example.com` .
+     *
+     *
      * * `serviceAccount:{emailid}`: An email address that represents a service
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+     *
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     *
      * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a user that has been recently deleted. For
      *    example, `alice@example.com?uid=123456789012345678901`. If the user is
      *    recovered, this value reverts to `user:{emailid}` and the recovered user
      *    retains the role in the binding.
+     *
      * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
      *    unique identifier) representing a service account that has been recently
      *    deleted. For example,
@@ -1304,74 +1341,75 @@ public Builder clearMembers() {
      *    If the service account is undeleted, this value reverts to
      *    `serviceAccount:{emailid}` and the undeleted service account retains the
      *    role in the binding.
+     *
      * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
      *    identifier) representing a Google group that has been recently
      *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
      *    the group is recovered, this value reverts to `group:{emailid}` and the
      *    recovered group retains the role in the binding.
+     *
+     *
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * 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); + bitField0_ |= 0x00000002; 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.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1382,15 +1420,16 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1412,15 +1451,16 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1428,7 +1468,8 @@ 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 {
@@ -1439,15 +1480,16 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The condition that is associated with this binding.
+     *
      * If the condition evaluates to `true`, then this binding applies to the
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1457,9 +1499,9 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
      */
     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;
@@ -1472,15 +1514,16 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1499,15 +1542,16 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1521,15 +1565,16 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1541,19 +1586,21 @@ 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
      * current request.
+     *
      * If the condition evaluates to `false`, then this binding does not apply to
      * the current request. However, a different role binding might grant the same
      * role to one or more of the principals in this binding.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1562,20 +1609,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);
     }
 
@@ -1585,12 +1633,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();
   }
@@ -1599,27 +1647,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;
@@ -1634,4 +1682,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 72%
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 340980bdfc..59c06d4918 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,34 @@ 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() {
-    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 +64,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of a Binding.
      * 
@@ -99,8 +72,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of a Binding.
      * 
@@ -112,8 +83,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -122,8 +91,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of a Binding.
      * 
@@ -132,8 +99,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of a Binding.
      * 
@@ -142,6 +107,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 +132,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; @@ -228,47 +194,35 @@ 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`.
@@ -276,7 +230,6 @@ public com.google.iam.v1.BindingDelta.Action getAction() {
    * 
* * string role = 2; - * * @return The role. */ @java.lang.Override @@ -285,15 +238,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`.
@@ -301,15 +253,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 { @@ -318,12 +271,9 @@ public com.google.protobuf.ByteString getRoleBytes() { } 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.
@@ -331,7 +281,6 @@ public com.google.protobuf.ByteString getRoleBytes() {
    * 
* * string member = 3; - * * @return The member. */ @java.lang.Override @@ -340,15 +289,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.
@@ -356,15 +304,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 { @@ -375,14 +324,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 @@ -390,14 +336,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 @@ -405,8 +348,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
    * The condition that is associated with this binding.
    * 
@@ -419,7 +360,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,7 +371,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_); } @@ -454,7 +395,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_); @@ -463,7 +405,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; @@ -473,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.BindingDelta)) { return super.equals(obj); @@ -481,11 +424,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; @@ -513,103 +459,99 @@ 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.
@@ -617,30 +559,33 @@ 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();
@@ -657,7 +602,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_BindingDelta_descriptor;
     }
 
@@ -678,9 +624,7 @@ 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;
     }
@@ -697,47 +641,16 @@ 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();
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.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;
@@ -788,37 +701,34 @@ 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) {
@@ -828,36 +738,28 @@ 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. */ @@ -868,33 +770,26 @@ 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. */ @@ -908,15 +803,12 @@ 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() { @@ -928,8 +820,6 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -937,13 +827,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; @@ -952,8 +842,6 @@ public java.lang.String getRole() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -961,14 +849,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 { @@ -976,8 +865,6 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -985,22 +872,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`.
@@ -1008,7 +891,6 @@ public Builder setRole(java.lang.String value) {
      * 
* * string role = 2; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -1018,8 +900,6 @@ public Builder clearRole() { return this; } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -1027,14 +907,12 @@ 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; @@ -1044,8 +922,6 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object member_ = ""; /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1053,13 +929,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; @@ -1068,8 +944,6 @@ public java.lang.String getMember() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1077,14 +951,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 { @@ -1092,8 +967,6 @@ public com.google.protobuf.ByteString getMemberBytes() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1101,22 +974,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.
@@ -1124,7 +993,6 @@ public Builder setMember(java.lang.String value) {
      * 
* * string member = 3; - * * @return This builder for chaining. */ public Builder clearMember() { @@ -1134,8 +1002,6 @@ public Builder clearMember() { return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1143,14 +1009,12 @@ 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; @@ -1160,31 +1024,24 @@ public Builder setMemberBytes(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.
      * 
* * .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() { @@ -1195,8 +1052,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1217,15 +1072,14 @@ 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 { @@ -1236,8 +1090,6 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1246,9 +1098,9 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { */ 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; @@ -1261,8 +1113,6 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1280,8 +1130,6 @@ public Builder clearCondition() { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1294,8 +1142,6 @@ public com.google.type.Expr.Builder getConditionBuilder() { return getConditionFieldBuilder().getBuilder(); } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1306,12 +1152,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.
      * 
@@ -1319,20 +1164,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); } @@ -1342,12 +1188,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(); } @@ -1356,27 +1202,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; @@ -1391,4 +1237,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 93% 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..3ac54a710c 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,76 +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/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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -78,41 +63,50 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -120,41 +114,49 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -162,42 +164,50 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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:
+   *
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
+   *
    * * `allAuthenticatedUsers`: A special identifier that represents anyone
    *    who is authenticated with a Google account or a service account.
+   *
    * * `user:{emailid}`: An email address that represents a specific Google
    *    account. For example, `alice@example.com` .
+   *
+   *
    * * `serviceAccount:{emailid}`: An email address that represents a service
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   *
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   *
    * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a user that has been recently deleted. For
    *    example, `alice@example.com?uid=123456789012345678901`. If the user is
    *    recovered, this value reverts to `user:{emailid}` and the recovered user
    *    retains the role in the binding.
+   *
    * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
    *    unique identifier) representing a service account that has been recently
    *    deleted. For example,
@@ -205,72 +215,76 @@ public interface BindingOrBuilder
    *    If the service account is undeleted, this value reverts to
    *    `serviceAccount:{emailid}` and the undeleted service account retains the
    *    role in the binding.
+   *
    * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
    *    identifier) representing a Google group that has been recently
    *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
    *    the group is recovered, this value reverts to `group:{emailid}` and the
    *    recovered group retains the role in the binding.
+   *
+   *
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * 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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .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
    * current request.
+   *
    * If the condition evaluates to `false`, then this binding does not apply to
    * the current request. However, a different role binding might grant the same
    * role to one or more of the principals in this binding.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
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 532f56549c..13ee76783b 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,88 +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/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() { - 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 @@ -91,32 +61,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 { @@ -127,15 +95,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 @@ -143,15 +108,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 @@ -159,8 +121,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`.
@@ -174,7 +134,6 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -186,7 +145,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -206,7 +166,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;
@@ -216,17 +177,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.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;
@@ -250,135 +213,132 @@ 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(); @@ -393,9 +353,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 @@ -414,11 +374,8 @@ 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; } @@ -429,47 +386,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -512,25 +438,24 @@ 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) { @@ -540,28 +465,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; @@ -570,24 +490,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 { @@ -595,41 +512,30 @@ 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() { @@ -639,24 +545,18 @@ 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; @@ -666,49 +566,36 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { 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`.
@@ -730,8 +617,6 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -739,7 +624,8 @@ 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 {
@@ -750,8 +636,6 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -761,9 +645,9 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForV
      */
     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;
@@ -776,8 +660,6 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -796,8 +678,6 @@ public Builder clearOptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -811,8 +691,6 @@ public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() {
       return getOptionsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -824,14 +702,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`.
@@ -840,24 +715,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);
     }
 
@@ -867,12 +739,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();
   }
@@ -881,27 +753,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;
@@ -916,4 +788,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 68%
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 9484d8801c..cb198f9a49 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,93 +1,72 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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() { - 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.
+   *
    * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
    * rejected.
+   *
    * Requests for policies with any conditional role bindings must specify
    * version 3. Policies with no conditional role bindings may specify any valid
    * value or leave the field unset.
+   *
    * The policy in the response might use the policy version that you specified,
    * or it might use a lower policy version. For example, if you specify version
    * 3, but the policy has no conditional role bindings, the response uses
    * version 1.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -96,7 +75,6 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,7 +86,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 +101,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 +112,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,135 +139,132 @@ 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(); @@ -296,9 +274,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 @@ -318,9 +296,7 @@ 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; } @@ -332,43 +308,10 @@ private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -406,19 +349,17 @@ 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) { @@ -428,32 +369,32 @@ 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.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -461,27 +402,28 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** - * - * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ @@ -493,27 +435,28 @@ public Builder setRequestedPolicyVersion(int value) { return this; } /** - * - * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
+     *
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
+     *
      * Requests for policies with any conditional role bindings must specify
      * version 3. Policies with no conditional role bindings may specify any valid
      * value or leave the field unset.
+     *
      * The policy in the response might use the policy version that you specified,
      * or it might use a lower policy version. For example, if you specify version
      * 3, but the policy has no conditional role bindings, the response uses
      * version 1.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { @@ -522,9 +465,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); } @@ -534,12 +477,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(); } @@ -548,27 +491,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; @@ -583,4 +526,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 65% 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..e62690d8c3 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,50 +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/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.
+   *
    * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
    * rejected.
+   *
    * Requests for policies with any conditional role bindings must specify
    * version 3. Policies with no conditional role bindings may specify any valid
    * value or leave the field unset.
+   *
    * The policy in the response might use the policy version that you specified,
    * or it might use a lower policy version. For example, if you specify version
    * 3, but the policy has no conditional role bindings, the response uses
    * version 1.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * 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..5a055933b3 --- /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\"\221\001\n\023SetIamPolicyRequest\022\034\n" + + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 " + + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda" + + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" + + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001" + + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google" + + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi" + + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003" + + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa" + + "mPermissionsResponse\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.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se" + + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i" + + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" + + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI" + + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo" + + "gle.iam.v1.TestIamPermissionsRequest\032).g" + + "oogle.iam.v1.TestIamPermissionsResponse\"" + + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis" + + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com" + + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z" + + ")cloud.google.com/go/iam/apiv1/iampb;iam" + + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo" + + "ud\\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..8539485d5b --- /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,51 @@ +// 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}\n\021com.google.iam.v1B" + + "\014OptionsProtoP\001Z)cloud.google.com/go/iam" + + "/apiv1/iampb;iampb\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[] { + }); + 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 7f658f2af0..7d7ec39f85 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,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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.
+ *
+ *
  * A `Policy` is a collection of `bindings`. A `binding` binds one or more
  * `members`, or principals, to a single `role`. Principals can be user
  * accounts, service accounts, Google groups, and domains (such as G Suite). A
  * `role` is a named list of permissions; each `role` can be an IAM predefined
  * role or a user-created custom role.
+ *
  * For some types of Google Cloud resources, a `binding` can also specify a
  * `condition`, which is a logical expression that allows access to a resource
  * only if the expression evaluates to `true`. A condition can add constraints
@@ -36,7 +22,9 @@
  * resources support conditions in their IAM policies, see the
  * [IAM
  * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ *
  * **JSON example:**
+ *
  *     {
  *       "bindings": [
  *         {
@@ -64,7 +52,9 @@
  *       "etag": "BwWWja0YfJA=",
  *       "version": 3
  *     }
+ *
  * **YAML example:**
+ *
  *     bindings:
  *     - members:
  *       - user:mike@example.com
@@ -81,22 +71,22 @@
  *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  *     etag: BwWWja0YfJA=
  *     version: 3
+ *
  * For a description of IAM and its features, see the
  * [IAM documentation](https://cloud.google.com/iam/docs/).
  * 
* * 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(); @@ -105,16 +95,13 @@ 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() { - 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; } @@ -129,32 +116,35 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 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
    * are rejected.
+   *
    * Any operation that affects conditional role bindings must specify version
    * `3`. This requirement applies to the following operations:
+   *
    * * Getting a policy that includes a conditional role binding
    * * Adding a conditional role binding to a policy
    * * Changing a conditional role binding in a policy
    * * Removing any role binding, with or without a condition, from a policy
    *   that includes conditions
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
    * the conditions in the version `3` policy are lost.
+   *
    * If a policy does not include any conditions, operations on that policy may
    * specify any valid version or leave the field unset.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * int32 version = 1; - * * @return The version. */ @java.lang.Override @@ -163,16 +153,14 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -188,12 +176,11 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -205,16 +192,16 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -230,12 +217,11 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -251,12 +237,11 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -268,17 +253,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.
    * 
@@ -290,8 +273,6 @@ public java.util.List getAuditConfigsList() { return auditConfigs_; } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -299,13 +280,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.
    * 
@@ -317,8 +296,6 @@ public int getAuditConfigsCount() { return auditConfigs_.size(); } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -330,8 +307,6 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { return auditConfigs_.get(index); } /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -339,15 +314,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_ = 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,6 +330,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index
    * conditions: An `etag` is returned in the response to `getIamPolicy`, and
    * systems are expected to put that etag in the request to `setIamPolicy` to
    * ensure that their change will be applied to the same version of the policy.
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -363,7 +338,6 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index
    * 
* * bytes etag = 3; - * * @return The etag. */ @java.lang.Override @@ -372,7 +346,6 @@ public com.google.protobuf.ByteString getEtag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +357,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_); } @@ -407,16 +381,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; @@ -426,17 +404,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; } @@ -465,111 +447,110 @@ 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.
+   *
+   *
    * A `Policy` is a collection of `bindings`. A `binding` binds one or more
    * `members`, or principals, to a single `role`. Principals can be user
    * accounts, service accounts, Google groups, and domains (such as G Suite). A
    * `role` is a named list of permissions; each `role` can be an IAM predefined
    * role or a user-created custom role.
+   *
    * For some types of Google Cloud resources, a `binding` can also specify a
    * `condition`, which is a logical expression that allows access to a resource
    * only if the expression evaluates to `true`. A condition can add constraints
@@ -577,7 +558,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   *
    * **JSON example:**
+   *
    *     {
    *       "bindings": [
    *         {
@@ -605,7 +588,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *       "etag": "BwWWja0YfJA=",
    *       "version": 3
    *     }
+   *
    * **YAML example:**
+   *
    *     bindings:
    *     - members:
    *       - user:mike@example.com
@@ -622,17 +607,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
    *     etag: BwWWja0YfJA=
    *     version: 3
+   *
    * For a description of IAM and its features, see the
    * [IAM documentation](https://cloud.google.com/iam/docs/).
    * 
* * 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; } @@ -645,12 +632,15 @@ 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(); @@ -675,7 +665,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_Policy_descriptor; } @@ -697,9 +688,7 @@ 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; } @@ -735,43 +724,10 @@ private void buildPartial0(com.google.iam.v1.Policy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -801,10 +757,9 @@ 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_); } @@ -828,10 +783,9 @@ 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_); } @@ -866,49 +820,48 @@ 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) { @@ -918,37 +871,39 @@ 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
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 version = 1; - * * @return The version. */ @java.lang.Override @@ -956,32 +911,35 @@ public int getVersion() { return version_; } /** - * - * *
      * Specifies the format of the policy.
+     *
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 version = 1; - * * @param value The version to set. * @return This builder for chaining. */ @@ -993,32 +951,35 @@ public Builder setVersion(int value) { return this; } /** - * - * *
      * Specifies the format of the policy.
+     *
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
      * are rejected.
+     *
      * Any operation that affects conditional role bindings must specify version
      * `3`. This requirement applies to the following operations:
+     *
      * * Getting a policy that includes a conditional role binding
      * * Adding a conditional role binding to a policy
      * * Changing a conditional role binding in a policy
      * * Removing any role binding, with or without a condition, from a policy
      *   that includes conditions
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
      * the conditions in the version `3` policy are lost.
+     *
      * If a policy does not include any conditions, operations on that policy may
      * specify any valid version or leave the field unset.
+     *
      * To learn which resources support conditions in their IAM policies, see the
      * [IAM
      * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { @@ -1028,28 +989,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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1068,12 +1025,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1092,12 +1048,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1116,12 +1071,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1132,7 +1086,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();
@@ -1146,12 +1101,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1162,7 +1116,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());
@@ -1173,12 +1128,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1203,12 +1157,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1219,7 +1172,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();
@@ -1233,12 +1187,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1249,7 +1202,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());
@@ -1260,12 +1214,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1276,7 +1229,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());
@@ -1287,12 +1241,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1303,10 +1256,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);
@@ -1314,12 +1269,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1341,12 +1295,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1368,12 +1321,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1384,16 +1336,16 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1404,20 +1356,19 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1428,7 +1379,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 {
@@ -1436,12 +1388,11 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1453,15 +1404,15 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1472,17 +1423,17 @@ 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
      * applied. Each of the `bindings` must contain at least one principal.
+     *
      * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
      * of these principals can be Google groups. Each occurrence of a principal
      * counts towards these limits. For example, if the `bindings` grant 50
@@ -1493,46 +1444,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_ & 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.
      * 
@@ -1547,8 +1490,6 @@ public java.util.List getAuditConfigsList() { } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1563,8 +1504,6 @@ public int getAuditConfigsCount() { } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1579,15 +1518,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(); @@ -1601,8 +1539,6 @@ public Builder setAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1621,8 +1557,6 @@ public Builder setAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1643,15 +1577,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(); @@ -1665,15 +1598,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()); @@ -1684,8 +1616,6 @@ public Builder addAuditConfigs(com.google.iam.v1.AuditConfig.Builder builderForV return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1704,8 +1634,6 @@ public Builder addAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1716,7 +1644,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); @@ -1724,8 +1653,6 @@ public Builder addAllAuditConfigs( return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1743,8 +1670,6 @@ public Builder clearAuditConfigs() { return this; } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1762,44 +1687,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 { @@ -1807,8 +1727,6 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index } } /** - * - * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1816,47 +1734,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_ & 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_; @@ -1864,8 +1777,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.
@@ -1874,6 +1785,7 @@ public java.util.List getAuditConfigsBuil
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1881,7 +1793,6 @@ public java.util.List getAuditConfigsBuil
      * 
* * bytes etag = 3; - * * @return The etag. */ @java.lang.Override @@ -1889,8 +1800,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.
@@ -1899,6 +1808,7 @@ public com.google.protobuf.ByteString getEtag() {
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1906,22 +1816,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.
@@ -1930,6 +1835,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * conditions: An `etag` is returned in the response to `getIamPolicy`, and
      * systems are expected to put that etag in the request to `setIamPolicy` to
      * ensure that their change will be applied to the same version of the policy.
+     *
      * **Important:** If you use IAM Conditions, you must include the `etag` field
      * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
      * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1937,7 +1843,6 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * 
* * bytes etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1946,9 +1851,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); } @@ -1958,12 +1863,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(); } @@ -1972,27 +1877,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; @@ -2007,4 +1912,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 75% 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 9ee92e988c..48a57bd0c5 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,35 +26,28 @@ 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() { - 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.
    * 
@@ -84,8 +59,6 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -93,13 +66,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.
    * 
@@ -111,8 +82,6 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -124,8 +93,6 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -133,17 +100,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.
    * 
@@ -155,8 +120,6 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -164,13 +127,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.
    * 
@@ -182,8 +143,6 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -195,8 +154,6 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -204,12 +161,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; @@ -221,7 +178,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)); } @@ -238,11 +196,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; @@ -252,15 +211,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; } @@ -285,133 +246,132 @@ 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(); @@ -434,7 +394,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; } @@ -456,9 +417,7 @@ 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; } @@ -488,43 +447,10 @@ 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) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -551,10 +477,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_); } @@ -578,10 +503,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_); } @@ -613,38 +537,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) { @@ -654,28 +578,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.
      * 
@@ -690,8 +607,6 @@ public java.util.List getBindingDeltasList() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -706,8 +621,6 @@ public int getBindingDeltasCount() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -722,15 +635,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(); @@ -744,8 +656,6 @@ public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -764,8 +674,6 @@ public Builder setBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -786,15 +694,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(); @@ -808,15 +715,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()); @@ -827,8 +733,6 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderFo return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -847,8 +751,6 @@ public Builder addBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -859,7 +761,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); @@ -867,8 +770,6 @@ public Builder addAllBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -886,8 +787,6 @@ public Builder clearBindingDeltas() { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -905,44 +804,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 { @@ -950,8 +844,6 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int ind } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -959,46 +851,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(), @@ -1009,25 +893,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.
      * 
@@ -1042,8 +919,6 @@ public java.util.List getAuditConfigDeltasLi } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1058,8 +933,6 @@ public int getAuditConfigDeltasCount() { } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1074,15 +947,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(); @@ -1096,8 +968,6 @@ public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1116,8 +986,6 @@ public Builder setAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1138,15 +1006,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(); @@ -1160,8 +1027,6 @@ public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1180,8 +1045,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1200,8 +1063,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1212,7 +1073,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); @@ -1220,8 +1082,6 @@ public Builder addAllAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1239,8 +1099,6 @@ public Builder clearAuditConfigDeltas() { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1258,44 +1116,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 { @@ -1303,8 +1156,6 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1312,47 +1163,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(), @@ -1361,9 +1203,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); } @@ -1373,12 +1215,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(); } @@ -1387,27 +1229,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; @@ -1422,4 +1264,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 87% 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 449c1d790c..69ee225b2a 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,66 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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
    * are rejected.
+   *
    * Any operation that affects conditional role bindings must specify version
    * `3`. This requirement applies to the following operations:
+   *
    * * Getting a policy that includes a conditional role binding
    * * Adding a conditional role binding to a policy
    * * Changing a conditional role binding in a policy
    * * Removing any role binding, with or without a condition, from a policy
    *   that includes conditions
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
    * the conditions in the version `3` policy are lost.
+   *
    * If a policy does not include any conditions, operations on that policy may
    * specify any valid version or leave the field unset.
+   *
    * To learn which resources support conditions in their IAM policies, see the
    * [IAM
    * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -71,14 +57,14 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -91,12 +77,11 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -109,12 +94,11 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -125,14 +109,14 @@ 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
    * applied. Each of the `bindings` must contain at least one principal.
+   *
    * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
    * of these principals can be Google groups. Each occurrence of a principal
    * counts towards these limits. For example, if the `bindings` grant 50
@@ -143,21 +127,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.
    * 
@@ -166,8 +148,6 @@ public interface PolicyOrBuilder */ com.google.iam.v1.AuditConfig getAuditConfigs(int index); /** - * - * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -176,29 +156,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.
@@ -207,6 +183,7 @@ public interface PolicyOrBuilder
    * conditions: An `etag` is returned in the response to `getIamPolicy`, and
    * systems are expected to put that etag in the request to `setIamPolicy` to
    * ensure that their change will be applied to the same version of the policy.
+   *
    * **Important:** If you use IAM Conditions, you must include the `etag` field
    * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
    * you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -214,7 +191,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..ed5d7dc18a --- /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|\n\021com" + + ".google.iam.v1B\013PolicyProtoP\001Z)cloud.goo" + + "gle.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Go" + + "ogle.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 71% 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 15561955bd..fcfaf3f91f 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,88 +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/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() { - 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 @@ -91,32 +61,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 { @@ -127,8 +95,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
@@ -137,7 +103,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 @@ -145,8 +110,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
@@ -155,7 +118,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -163,8 +125,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
@@ -182,17 +142,15 @@ 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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -200,17 +158,15 @@ 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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -218,12 +174,11 @@ 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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* @@ -235,7 +190,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +201,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_); } @@ -270,10 +225,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; @@ -283,21 +240,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; @@ -325,135 +285,132 @@ 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(); @@ -473,9 +430,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 @@ -494,11 +451,8 @@ 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; } @@ -509,50 +463,21 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -598,31 +523,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) { @@ -632,28 +557,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; @@ -662,24 +582,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 { @@ -687,41 +604,30 @@ 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() { @@ -731,24 +637,18 @@ 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; @@ -758,13 +658,8 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { 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
@@ -773,15 +668,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 ((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
@@ -790,7 +682,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() { @@ -801,8 +692,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
@@ -826,8 +715,6 @@ 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
@@ -837,7 +724,8 @@ 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 {
@@ -848,8 +736,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       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
@@ -861,9 +747,9 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
      */
     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;
@@ -876,8 +762,6 @@ 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
@@ -898,8 +782,6 @@ 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
@@ -915,8 +797,6 @@ 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
@@ -930,12 +810,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
@@ -946,16 +825,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_;
@@ -963,57 +840,47 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* * .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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* * .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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* @@ -1033,18 +900,18 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* * .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 { @@ -1055,12 +922,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* @@ -1068,9 +934,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ 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; @@ -1083,12 +949,11 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* @@ -1105,12 +970,11 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* @@ -1122,12 +986,11 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* @@ -1137,42 +1000,37 @@ 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
      * following default mask is used:
+     *
      * `paths: "bindings, etag"`
      * 
* * .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); } @@ -1182,12 +1040,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(); } @@ -1196,27 +1054,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; @@ -1231,4 +1089,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..bf302fa6de 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,42 +66,37 @@ 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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* * .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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* * .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
    * following default mask is used:
+   *
    * `paths: "bindings, etag"`
    * 
* 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 65% 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 ee3530d94e..d911347237 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,89 +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/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; + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } - @java.lang.Override - 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 @@ -92,32 +63,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 { @@ -126,12 +95,10 @@ public com.google.protobuf.ByteString getResourceBytes() { } public static final int PERMISSIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList permissions_; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -140,15 +107,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
@@ -157,15 +122,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
@@ -174,7 +136,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. */ @@ -182,8 +143,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
@@ -192,16 +151,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; @@ -213,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -248,16 +207,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; } @@ -280,150 +240,146 @@ 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_ & ~0x00000002); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); 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 @@ -442,68 +398,27 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); + 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_ & ~0x00000002); - } - result.permissions_ = permissions_; - } - 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) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } } @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; @@ -520,7 +435,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsRequest other) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); @@ -553,26 +468,23 @@ 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) { @@ -582,28 +494,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; @@ -612,24 +519,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 { @@ -637,41 +541,30 @@ 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() { @@ -681,24 +574,18 @@ 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; @@ -706,18 +593,15 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -726,15 +610,14 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { - return permissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getPermissionsList() { + permissions_.makeImmutable(); + return permissions_; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -743,15 +626,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
@@ -760,7 +640,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. */ @@ -768,8 +647,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
@@ -778,16 +655,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
@@ -796,23 +671,20 @@ 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); + 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
@@ -821,22 +693,19 @@ 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); + 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
@@ -845,19 +714,19 @@ 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_); + 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
@@ -866,18 +735,16 @@ 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_ & ~0x00000002); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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
@@ -886,23 +753,22 @@ 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); + 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); } @@ -912,12 +778,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(); } @@ -926,27 +792,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; @@ -961,4 +827,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 62% 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 25fb71590e..bd8e73c2b4 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,116 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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; + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } - @java.lang.Override - 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_; + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -118,24 +87,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; @@ -147,7 +113,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)); } @@ -176,15 +143,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; } @@ -205,149 +172,145 @@ 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); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); 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 @@ -366,65 +329,24 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); + 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_; - } - 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) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000001) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } } @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; @@ -436,7 +358,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsResponse other) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); @@ -469,20 +391,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) { @@ -492,58 +412,49 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); - bitField0_ |= 0x00000001; } + 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() { - return permissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getPermissionsList() { + permissions_.makeImmutable(); + 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. */ @@ -551,129 +462,116 @@ 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); + bitField0_ |= 0x00000001; 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); + bitField0_ |= 0x00000001; 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_); + bitField0_ |= 0x00000001; 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() { - permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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); + 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); } @@ -683,12 +581,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(); } @@ -697,27 +595,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; @@ -732,4 +630,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/java-iam/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 similarity index 51% rename from java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java rename to owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java index d9587a5e0f..0f12d3a174 100644 --- a/java-iam/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 @@ -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.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * An interface for managing Identity and Access Management (IAM) policies.
  * 
@@ -35,248 +18,206 @@ 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; + 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< - 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; + 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(); + 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; + 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< - com.google.iam.v2.GetPolicyRequest, com.google.iam.v2.Policy> - getGetPolicyMethod() { - io.grpc.MethodDescriptor - getGetPolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; + 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(); + 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 */ + /** + * 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** + * 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); - } - }; + 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.
    * 
@@ -284,8 +225,6 @@ public PoliciesFutureStub newStub( public interface AsyncService { /** - * - * *
      * Retrieves the policies of the specified kind that are attached to a
      * resource.
@@ -293,43 +232,32 @@ public interface AsyncService {
      * omitted.
      * 
*/ - default void listPolicies( - com.google.iam.v2.ListPoliciesRequest request, + default void listPolicies(com.google.iam.v2.ListPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); } /** - * - * *
      * Gets a policy.
      * 
*/ - default void getPolicy( - com.google.iam.v2.GetPolicyRequest request, + default void getPolicy(com.google.iam.v2.GetPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** - * - * *
      * Creates a policy.
      * 
*/ - default void createPolicy( - com.google.iam.v2.CreatePolicyRequest request, + default void createPolicy(com.google.iam.v2.CreatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyMethod(), 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.
@@ -340,63 +268,56 @@ default void createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - default void updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request, + default void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); } /** - * - * *
      * Deletes a policy. This action is permanent.
      * 
*/ - default void deletePolicy( - com.google.iam.v2.DeletePolicyRequest request, + default void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Policies. - * *
    * An interface for managing Identity and Access Management (IAM) policies.
    * 
*/ - public abstract static class PoliciesImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class PoliciesImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PoliciesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -404,48 +325,35 @@ protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOp
      * omitted.
      * 
*/ - public void listPolicies( - com.google.iam.v2.ListPoliciesRequest request, + 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); + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a policy.
      * 
*/ - public void getPolicy( - com.google.iam.v2.GetPolicyRequest request, + 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, + 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); + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the specified policy.
      * You can update only the rules and the display name for the policy.
@@ -456,53 +364,44 @@ public void createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public void updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request, + 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); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a policy. This action is permanent.
      * 
*/ - public void deletePolicy( - com.google.iam.v2.DeletePolicyRequest request, + 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); + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -510,15 +409,12 @@ protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
      * omitted.
      * 
*/ - public com.google.iam.v2.ListPoliciesResponse listPolicies( - com.google.iam.v2.ListPoliciesRequest request) { + 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.
      * 
@@ -529,21 +425,16 @@ public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest req } /** - * - * *
      * Creates a policy.
      * 
*/ - public com.google.longrunning.Operation createPolicy( - com.google.iam.v2.CreatePolicyRequest request) { + 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.
@@ -554,21 +445,17 @@ public com.google.longrunning.Operation createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public com.google.longrunning.Operation updatePolicy( - com.google.iam.v2.UpdatePolicyRequest request) { + 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) { + public com.google.longrunning.Operation deletePolicy(com.google.iam.v2.DeletePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePolicyMethod(), getCallOptions(), request); } @@ -576,25 +463,24 @@ public com.google.longrunning.Operation deletePolicy( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -602,16 +488,13 @@ protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * omitted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v2.ListPoliciesResponse> - listPolicies(com.google.iam.v2.ListPoliciesRequest request) { + 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.
      * 
@@ -623,21 +506,17 @@ public com.google.common.util.concurrent.ListenableFuture * Creates a policy. *
*/ - public com.google.common.util.concurrent.ListenableFuture - createPolicy(com.google.iam.v2.CreatePolicyRequest request) { + 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.
@@ -648,21 +527,19 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) {
+    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) { + 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); } @@ -674,11 +551,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 AsyncService serviceImpl; private final int methodId; @@ -692,29 +569,23 @@ private static final class MethodHandlers 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); + 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, + 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, + 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, + 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, + serviceImpl.deletePolicy((com.google.iam.v2.DeletePolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -736,40 +607,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>( - service, METHODID_LIST_POLICIES))) + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.ListPoliciesRequest, + com.google.iam.v2.ListPoliciesResponse>( + service, METHODID_LIST_POLICIES))) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.GetPolicyRequest, + com.google.iam.v2.Policy>( + service, METHODID_GET_POLICY))) .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_CREATE_POLICY))) + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.CreatePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.UpdatePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_POLICY))) .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_DELETE_POLICY))) + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.DeletePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_POLICY))) .build(); } - private abstract static class PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PoliciesBaseDescriptorSupplier() {} @java.lang.Override @@ -783,11 +659,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { + private static final class PoliciesFileDescriptorSupplier + extends PoliciesBaseDescriptorSupplier { PoliciesFileDescriptorSupplier() {} } - private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier + private static final class PoliciesMethodDescriptorSupplier + extends PoliciesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -809,16 +687,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { 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(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); } } } 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 73% 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 6d67c52f34..5356cfee2c 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,50 +26,43 @@ 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() { - 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -96,36 +71,39 @@ 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -136,14 +114,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 @@ -151,14 +126,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 @@ -166,8 +138,6 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to create.
    * 
@@ -180,12 +150,9 @@ 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
@@ -194,7 +161,6 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; - * * @return The policyId. */ @java.lang.Override @@ -203,15 +169,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
@@ -220,15 +185,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 { @@ -237,7 +203,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +214,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_); } @@ -272,7 +238,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_); @@ -285,19 +252,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; } @@ -322,135 +292,132 @@ 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(); @@ -466,9 +433,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 @@ -487,11 +454,8 @@ 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; } @@ -502,50 +466,19 @@ 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_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -593,31 +526,29 @@ 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) { @@ -627,32 +558,32 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -661,28 +592,30 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -690,49 +623,48 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -742,28 +674,27 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -773,33 +704,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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() { @@ -810,8 +732,6 @@ public com.google.iam.v2.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -832,15 +752,14 @@ 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 { @@ -851,8 +770,6 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -861,9 +778,9 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) { */ 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; @@ -876,8 +793,6 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -895,8 +810,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -909,8 +822,6 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The policy to create.
      * 
@@ -921,12 +832,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.
      * 
@@ -934,16 +844,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_; @@ -951,8 +859,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
@@ -961,13 +867,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; @@ -976,8 +882,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
@@ -986,14 +890,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 { @@ -1001,8 +906,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
@@ -1011,22 +914,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
@@ -1035,7 +934,6 @@ public Builder setPolicyId(java.lang.String value) {
      * 
* * string policy_id = 3; - * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -1045,8 +943,6 @@ 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
@@ -1055,23 +951,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); } @@ -1081,12 +975,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(); } @@ -1095,27 +989,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; @@ -1130,4 +1024,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 80% 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..a7c565ba81 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,94 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 +75,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 +83,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 +95,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 a1fc39876b..1418885276 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,49 +26,42 @@ 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() { - 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -95,35 +70,38 @@ 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -132,22 +110,19 @@ public com.google.protobuf.ByteString getNameBytes() { } 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -156,33 +131,34 @@ 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +167,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +178,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_); } @@ -233,15 +209,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; } @@ -262,135 +240,132 @@ 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(); @@ -401,9 +376,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 @@ -422,11 +397,8 @@ 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; } @@ -441,43 +413,10 @@ private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -522,25 +461,22 @@ 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) { @@ -550,31 +486,31 @@ 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -583,27 +519,29 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -611,47 +549,46 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -661,27 +598,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -691,24 +627,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -717,25 +652,25 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -743,43 +678,38 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -789,34 +719,31 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - 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); } @@ -826,12 +753,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(); } @@ -840,27 +767,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; @@ -875,4 +802,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 76% 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..63cd8d8501 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,95 +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/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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/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 84% 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 8fcf2a56fe..c9ee472c5f 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,61 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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; - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DenyRule(); } - @java.lang.Override - 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,41 +51,47 @@ 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_; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -110,44 +99,50 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -155,44 +150,49 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -200,7 +200,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,37 +207,43 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -246,73 +251,68 @@ 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_; + private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -320,34 +320,31 @@ 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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_; + private com.google.protobuf.LazyStringArrayList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -356,15 +353,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}`
@@ -373,15 +368,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}`
@@ -390,7 +382,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. */ @@ -398,8 +389,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}`
@@ -408,70 +397,65 @@ 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_; + private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -479,37 +463,36 @@ 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -517,7 +500,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 @@ -525,14 +507,14 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -540,7 +522,6 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ @java.lang.Override @@ -548,14 +529,14 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -570,7 +551,6 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -582,7 +562,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));
     }
@@ -593,8 +574,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());
@@ -641,7 +621,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;
@@ -651,20 +632,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;
@@ -702,145 +688,144 @@ 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; - bitField0_ = (bitField0_ & ~0x00000002); - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -850,7 +835,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.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor; } @@ -871,82 +857,40 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(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); + private void buildPartial0(com.google.iam.v2.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + deniedPrincipals_.makeImmutable(); + result.deniedPrincipals_ = deniedPrincipals_; } - result.deniedPrincipals_ = deniedPrincipals_; - if (((bitField0_ & 0x00000002) != 0)) { - exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (((from_bitField0_ & 0x00000002) != 0)) { + exceptionPrincipals_.makeImmutable(); + result.exceptionPrincipals_ = exceptionPrincipals_; } - result.exceptionPrincipals_ = exceptionPrincipals_; - if (((bitField0_ & 0x00000004) != 0)) { - deniedPermissions_ = deniedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + deniedPermissions_.makeImmutable(); + result.deniedPermissions_ = deniedPermissions_; } - result.deniedPermissions_ = deniedPermissions_; - if (((bitField0_ & 0x00000008) != 0)) { - exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000008) != 0)) { + exceptionPermissions_.makeImmutable(); + result.exceptionPermissions_ = exceptionPermissions_; } - result.exceptionPermissions_ = exceptionPermissions_; - } - - 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -958,7 +902,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.deniedPrincipals_.isEmpty()) { if (deniedPrincipals_.isEmpty()) { deniedPrincipals_ = other.deniedPrincipals_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.addAll(other.deniedPrincipals_); @@ -968,7 +912,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.exceptionPrincipals_.isEmpty()) { if (exceptionPrincipals_.isEmpty()) { exceptionPrincipals_ = other.exceptionPrincipals_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.addAll(other.exceptionPrincipals_); @@ -978,7 +922,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.deniedPermissions_.isEmpty()) { if (deniedPermissions_.isEmpty()) { deniedPermissions_ = other.deniedPermissions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureDeniedPermissionsIsMutable(); deniedPermissions_.addAll(other.deniedPermissions_); @@ -988,7 +932,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) { if (!other.exceptionPermissions_.isEmpty()) { if (exceptionPermissions_.isEmpty()) { exceptionPermissions_ = other.exceptionPermissions_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureExceptionPermissionsIsMutable(); exceptionPermissions_.addAll(other.exceptionPermissions_); @@ -1024,47 +968,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); - 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) { @@ -1074,50 +1014,54 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1125,44 +1069,51 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { - return deniedPrincipals_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { + deniedPrincipals_.makeImmutable(); + return deniedPrincipals_; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1170,44 +1121,49 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1215,7 +1171,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. */ @@ -1223,37 +1178,43 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1261,45 +1222,51 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1307,52 +1274,57 @@ 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); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1360,51 +1332,56 @@ 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); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1412,48 +1389,56 @@ 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_); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1461,47 +1446,53 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
* * repeated string denied_principals = 1; - * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1509,85 +1500,79 @@ 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); + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExceptionPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!exceptionPrincipals_.isModifiable()) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); - bitField0_ |= 0x00000002; } + 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { - return exceptionPrincipals_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { + exceptionPrincipals_.makeImmutable(); + 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1595,169 +1580,159 @@ 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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_); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!deniedPermissions_.isModifiable()) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1766,15 +1741,14 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { - return deniedPermissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { + deniedPermissions_.makeImmutable(); + return deniedPermissions_; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1783,15 +1757,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}`
@@ -1800,7 +1771,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. */ @@ -1808,8 +1778,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}`
@@ -1818,16 +1786,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}`
@@ -1836,23 +1802,20 @@ 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); + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1861,22 +1824,19 @@ 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); + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1885,19 +1845,19 @@ 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_); + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1906,18 +1866,16 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * 
* * repeated string denied_permissions = 3; - * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1926,82 +1884,76 @@ 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); + bitField0_ |= 0x00000004; onChanged(); return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExceptionPermissionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!exceptionPermissions_.isModifiable()) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { - return exceptionPermissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { + exceptionPermissions_.makeImmutable(); + return exceptionPermissions_; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -2009,164 +1961,156 @@ 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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_); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; onChanged(); return this; } 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2174,21 +2118,20 @@ 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 ((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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2196,27 +2139,24 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2239,14 +2179,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2255,7 +2195,8 @@ 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 {
@@ -2266,14 +2207,14 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
       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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2284,9 +2225,9 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
      */
     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;
@@ -2299,14 +2240,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2326,14 +2267,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2348,14 +2289,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2368,20 +2309,19 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2391,20 +2331,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);
     }
 
@@ -2414,12 +2355,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();
   }
@@ -2428,27 +2369,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;
@@ -2463,4 +2404,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 93%
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..8fd6ae0cb1 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,60 +1,50 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -62,42 +52,48 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -105,42 +101,47 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -148,43 +149,48 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -192,90 +198,82 @@ 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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 +282,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 +295,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 +307,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,92 +320,86 @@ 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -423,19 +407,18 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -443,19 +426,18 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
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..e9faa4c3db
--- /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" +
+      "{\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z)c" +
+      "loud.google.com/go/iam/apiv2/iampb;iampb" +
+      "\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\Cloud\\Ia" +
+      "m\\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 69%
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 31ae9840b5..6d85260fa9 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,90 +1,66 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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() { - 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -93,35 +69,38 @@ 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +120,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_); } @@ -166,14 +145,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; } @@ -192,135 +172,132 @@ 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(); @@ -330,9 +307,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 @@ -352,9 +329,7 @@ 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; } @@ -366,43 +341,10 @@ private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -442,19 +384,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,31 +404,31 @@ 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -497,27 +437,29 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -525,47 +467,46 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -575,36 +516,35 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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); } @@ -614,12 +554,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(); } @@ -628,27 +568,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; @@ -663,4 +603,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 70% 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..b9a50ee567 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,62 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 42f23221d0..86ee088ef7 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,51 +26,44 @@ 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() { - 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -97,37 +72,40 @@ 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -138,15 +116,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -155,19 +130,15 @@ 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 @@ -176,30 +147,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 { @@ -208,7 +179,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +190,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_); } @@ -243,7 +214,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_); @@ -256,16 +228,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; } @@ -288,135 +263,132 @@ 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(); @@ -428,9 +400,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 @@ -449,11 +421,8 @@ 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; } @@ -471,43 +440,10 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -555,31 +491,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,33 +521,33 @@ 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:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -624,29 +556,31 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -654,51 +588,50 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -708,29 +641,28 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -738,17 +670,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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 @@ -756,15 +685,12 @@ 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. */ @@ -776,15 +702,12 @@ public Builder setPageSize(int value) { 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() { @@ -796,21 +719,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; @@ -819,22 +740,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 { @@ -842,37 +762,30 @@ 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() { @@ -882,31 +795,27 @@ 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); } @@ -916,12 +825,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(); } @@ -930,27 +839,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; @@ -965,4 +874,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 76% 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..cf55477798 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,107 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 70% 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 85d5cf7b5d..d94832d437 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,37 +26,28 @@ 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() { - 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.
    * 
@@ -86,8 +59,6 @@ public java.util.List getPoliciesList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -95,12 +66,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.
    * 
@@ -112,8 +82,6 @@ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -125,8 +93,6 @@ public com.google.iam.v2.Policy getPolicies(int index) { return policies_.get(index); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -134,24 +100,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; - @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 @@ -160,30 +123,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 { @@ -192,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +166,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)); } @@ -221,7 +184,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_); @@ -234,15 +198,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; } @@ -265,136 +231,132 @@ 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(); @@ -411,9 +373,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 @@ -432,12 +394,9 @@ 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; } @@ -461,43 +420,10 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -524,10 +450,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_); } @@ -564,31 +489,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(); - 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) { @@ -598,27 +522,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.
      * 
@@ -633,8 +551,6 @@ public java.util.List getPoliciesList() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -649,8 +565,6 @@ public int getPoliciesCount() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -665,15 +579,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(); @@ -687,15 +600,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()); @@ -706,8 +618,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.
      * 
@@ -728,15 +638,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(); @@ -750,15 +659,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()); @@ -769,15 +677,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()); @@ -788,18 +695,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); @@ -807,8 +714,6 @@ public Builder addAllPolicies(java.lang.Iterable * Metadata for the policies that are attached to the resource. *
@@ -826,8 +731,6 @@ public Builder clearPolicies() { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -845,43 +748,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 { @@ -889,8 +788,6 @@ public java.util.List getPoliciesOr } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -898,46 +795,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_; @@ -945,21 +838,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; @@ -968,22 +859,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 { @@ -991,37 +881,30 @@ 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() { @@ -1031,31 +914,27 @@ 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); } @@ -1065,12 +944,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(); } @@ -1079,27 +958,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; @@ -1114,4 +993,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 71% 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 2c6ad8972b..a3505b0cc1 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,28 @@ 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() { - 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,26 +62,25 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -110,37 +89,40 @@ 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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 { @@ -149,19 +131,15 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -170,30 +148,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 { @@ -202,18 +180,14 @@ public com.google.protobuf.ByteString getUidBytes() { } 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 @@ -222,29 +196,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 { @@ -253,19 +227,15 @@ public com.google.protobuf.ByteString getKindBytes() { } 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 @@ -274,30 +244,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 { @@ -306,35 +276,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, - ""); + 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 annotations_; - + 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.
@@ -343,21 +310,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.
@@ -370,8 +336,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.
@@ -380,19 +344,17 @@ 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.
@@ -401,11 +363,11 @@ public java.util.Map getAnnotationsMap() {
    * 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();
     }
@@ -413,22 +375,19 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * string etag = 6; - * * @return The etag. */ @java.lang.Override @@ -437,33 +396,34 @@ 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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 { @@ -474,15 +434,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 @@ -490,15 +446,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 @@ -506,14 +458,11 @@ 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() { @@ -523,15 +472,11 @@ 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 @@ -539,15 +484,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 @@ -555,14 +496,11 @@ 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() { @@ -572,15 +510,11 @@ 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 @@ -588,15 +522,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 @@ -604,14 +534,11 @@ 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() { @@ -619,12 +546,9 @@ 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`.
@@ -637,8 +561,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`.
@@ -647,12 +569,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`.
@@ -665,8 +586,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`.
@@ -679,8 +598,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`.
@@ -689,24 +606,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;
-
   @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 @@ -715,30 +629,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 { @@ -747,7 +661,6 @@ public com.google.protobuf.ByteString getManagingAuthorityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -759,7 +672,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_); } @@ -772,8 +686,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_); } @@ -813,30 +731,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_); @@ -849,33 +771,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; } @@ -924,137 +857,136 @@ 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() { @@ -1064,12 +996,15 @@ 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(); @@ -1107,7 +1042,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.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor; } @@ -1129,9 +1065,7 @@ 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; } @@ -1170,56 +1104,29 @@ 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_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -1248,7 +1155,8 @@ 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_; @@ -1282,10 +1190,9 @@ 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_); } @@ -1322,91 +1229,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.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) { @@ -1416,33 +1317,33 @@ 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}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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; @@ -1451,29 +1352,31 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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 { @@ -1481,51 +1384,50 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1535,29 +1437,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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; @@ -1567,21 +1468,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1590,22 +1489,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 { @@ -1613,37 +1511,30 @@ 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() { @@ -1653,22 +1544,18 @@ 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; @@ -1678,20 +1565,18 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { 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; @@ -1700,21 +1585,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 { @@ -1722,35 +1606,28 @@ 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() { @@ -1760,21 +1637,17 @@ 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; @@ -1784,21 +1657,19 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { 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; @@ -1807,22 +1678,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 { @@ -1830,37 +1700,30 @@ 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() { @@ -1870,22 +1733,18 @@ 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; @@ -1893,8 +1752,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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) { @@ -1903,12 +1762,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } 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(); @@ -1917,13 +1775,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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.
@@ -1932,21 +1787,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.
@@ -1959,8 +1813,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.
@@ -1969,19 +1821,17 @@ 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.
@@ -1990,25 +1840,23 @@ public java.util.Map getAnnotationsMap() {
      * 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.
@@ -2016,22 +1864,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.
@@ -2039,20 +1888,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.
@@ -2060,32 +1906,33 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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; @@ -2094,25 +1941,25 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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 { @@ -2120,43 +1967,38 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * string etag = 6; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2166,25 +2008,22 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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; @@ -2194,58 +2033,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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) { @@ -2261,17 +2081,14 @@ 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 { @@ -2282,21 +2099,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2309,15 +2122,11 @@ 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); @@ -2330,15 +2139,11 @@ 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; @@ -2346,48 +2151,36 @@ 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_; @@ -2395,58 +2188,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 ((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) { @@ -2462,17 +2236,14 @@ 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 { @@ -2483,21 +2254,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2510,15 +2277,11 @@ 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); @@ -2531,15 +2294,11 @@ 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; @@ -2547,48 +2306,36 @@ 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_; @@ -2596,58 +2343,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 ((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) { @@ -2663,17 +2391,14 @@ 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 { @@ -2684,21 +2409,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2711,15 +2432,11 @@ 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); @@ -2732,15 +2449,11 @@ 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; @@ -2748,71 +2461,54 @@ 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`.
@@ -2828,8 +2524,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`.
@@ -2845,8 +2539,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`.
@@ -2862,8 +2554,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`.
@@ -2871,7 +2561,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();
@@ -2885,8 +2576,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`.
@@ -2894,7 +2583,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());
@@ -2905,8 +2595,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`.
@@ -2928,8 +2616,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`.
@@ -2937,7 +2623,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();
@@ -2951,8 +2638,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`.
@@ -2960,7 +2645,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());
@@ -2971,8 +2657,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`.
@@ -2980,7 +2664,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());
@@ -2991,8 +2676,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`.
@@ -3000,10 +2683,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);
@@ -3011,8 +2696,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`.
@@ -3031,8 +2714,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`.
@@ -3051,8 +2732,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`.
@@ -3060,12 +2739,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`.
@@ -3073,16 +2751,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`.
@@ -3090,7 +2766,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 {
@@ -3098,8 +2775,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`.
@@ -3108,11 +2783,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`.
@@ -3120,13 +2794,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`.
@@ -3134,22 +2807,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_ & 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_;
@@ -3157,21 +2828,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; @@ -3180,22 +2849,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 { @@ -3203,37 +2871,30 @@ 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() { @@ -3243,31 +2904,27 @@ 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); } @@ -3277,12 +2934,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(); } @@ -3291,27 +2948,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; @@ -3326,4 +2983,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 15a04e7840..ea211c0c03 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,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; /** - * - * *
  * 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() { - 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 +57,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 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -112,7 +81,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +92,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 +107,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 +118,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,136 +150,132 @@ 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(); @@ -323,9 +289,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 @@ -344,11 +310,8 @@ 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; } @@ -356,47 +319,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -434,19 +366,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) { @@ -456,52 +388,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 ((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.
      * 
@@ -522,15 +440,14 @@ 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 { @@ -541,8 +458,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -551,9 +466,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ 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; @@ -566,8 +481,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -585,8 +498,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -599,8 +510,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -611,14 +520,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.
      * 
@@ -626,24 +532,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); } @@ -653,12 +556,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(); } @@ -667,27 +570,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; @@ -702,4 +605,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 44e15c3d3b..2ad20f56d4 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,151 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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 +123,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 +130,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 +146,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.
@@ -190,13 +157,11 @@ 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.
@@ -204,158 +169,121 @@ 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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`.
@@ -363,10 +291,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`.
@@ -376,8 +303,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`.
@@ -387,8 +312,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`.
@@ -396,10 +319,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`.
@@ -407,32 +329,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..4ab39d5936 --- /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\"\311\003\n\006Policy\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" + + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" + + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" + + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" + + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" + + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" + + "nnotationsEntry\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(\013" + + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" + + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" + + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" + + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" + + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" + + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" + + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" + + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" + + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" + + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" + + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" + + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" + + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp2\320\006\n\010Policies\022" + + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" + + "iciesRequest\032#.google.iam.v2.ListPolicie" + + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" + + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." + + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" + + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" + + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" + + "eatePolicyRequest\032\035.google.longrunning.O" + + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" + + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" + + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" + + "datePolicy\022\".google.iam.v2.UpdatePolicyR" + + "equest\032\035.google.longrunning.Operation\"T\312" + + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" + + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" + + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" + + "etePolicyRequest\032\035.google.longrunning.Op" + + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" + + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" + + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBy\n" + + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" + + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" + + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.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 68% 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 9e842ab3f1..325eda103f 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,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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() { - 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; } @@ -65,16 +44,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int kindCase_ = 0; + @SuppressWarnings("serial") 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 +67,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 +97,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,25 +121,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; - @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 +144,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 +176,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +187,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 +208,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; @@ -257,18 +219,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: @@ -299,133 +263,132 @@ 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(); @@ -440,7 +403,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.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor; } @@ -461,9 +425,7 @@ 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; @@ -479,48 +441,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -535,15 +465,13 @@ 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(); @@ -571,25 +499,24 @@ 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) { @@ -599,12 +526,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() { @@ -617,19 +544,13 @@ 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 @@ -637,14 +558,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 @@ -662,8 +580,6 @@ public com.google.iam.v2.DenyRule getDenyRule() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -684,15 +600,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(); @@ -703,8 +618,6 @@ public Builder setDenyRule(com.google.iam.v2.DenyRule.Builder builderForValue) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -713,11 +626,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; } @@ -733,8 +645,6 @@ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -758,8 +668,6 @@ public Builder clearDenyRule() { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -770,8 +678,6 @@ public com.google.iam.v2.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -790,8 +696,6 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -799,20 +703,17 @@ 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; @@ -822,21 +723,19 @@ 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; @@ -845,22 +744,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 { @@ -868,37 +766,30 @@ 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() { @@ -908,31 +799,27 @@ 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); } @@ -942,12 +829,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(); } @@ -956,27 +843,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; @@ -991,4 +878,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 60% 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..d98b21bdb4 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(); + 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 bc506e2671..b0d6909050 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,84 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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() { - 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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -86,17 +61,15 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -104,10 +77,9 @@ 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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -121,7 +93,6 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,7 +104,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 +119,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 +130,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 +139,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,135 +162,132 @@ 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(); @@ -330,9 +301,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 @@ -351,11 +322,8 @@ 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; } @@ -363,47 +331,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -441,19 +378,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) { @@ -463,44 +400,36 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
      * 
* * .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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
      * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2.Policy getPolicy() { @@ -511,10 +440,9 @@ public com.google.iam.v2.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -536,10 +464,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -547,7 +474,8 @@ 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 {
@@ -558,10 +486,9 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -571,9 +498,9 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
      */
     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;
@@ -586,10 +513,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -608,10 +534,9 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -625,10 +550,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -640,14 +564,14 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -656,23 +580,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);
     }
 
@@ -682,12 +604,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();
   }
@@ -696,27 +618,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;
@@ -731,4 +653,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 70%
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..0637791cdc 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,63 +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;
 
-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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
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/java-iam/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
similarity index 50%
rename from java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
rename to owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java
index 26561fcabd..c8d287cde4 100644
--- a/java-iam/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
@@ -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.v2beta;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
- *
- *
  * 
  * An interface for managing Identity and Access Management (IAM) policies.
  * 
@@ -35,249 +18,206 @@ 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; + 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< - 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; + 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(); + 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; + 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< - com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy> - getGetPolicyMethod() { - io.grpc.MethodDescriptor - getGetPolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation> - getCreatePolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation> - getUpdatePolicyMethod; + 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(); + 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; + 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< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation> - getDeletePolicyMethod; + 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(); + 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 */ + /** + * 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** + * 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); - } - }; + 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.
    * 
@@ -285,8 +225,6 @@ public PoliciesFutureStub newStub( public interface AsyncService { /** - * - * *
      * Retrieves the policies of the specified kind that are attached to a
      * resource.
@@ -294,43 +232,32 @@ public interface AsyncService {
      * omitted.
      * 
*/ - default void listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request, + default void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); } /** - * - * *
      * Gets a policy.
      * 
*/ - default void getPolicy( - com.google.iam.v2beta.GetPolicyRequest request, + default void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** - * - * *
      * Creates a policy.
      * 
*/ - default void createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request, + default void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyMethod(), 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.
@@ -341,63 +268,56 @@ default void createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - default void updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request, + default void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); } /** - * - * *
      * Deletes a policy. This action is permanent.
      * 
*/ - default void deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request, + default void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Policies. - * *
    * An interface for managing Identity and Access Management (IAM) policies.
    * 
*/ - public abstract static class PoliciesImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class PoliciesImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PoliciesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -405,48 +325,35 @@ protected PoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOp
      * omitted.
      * 
*/ - public void listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request, + 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); + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets a policy.
      * 
*/ - public void getPolicy( - com.google.iam.v2beta.GetPolicyRequest request, + 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, + 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); + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the specified policy.
      * You can update only the rules and the display name for the policy.
@@ -457,53 +364,44 @@ public void createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public void updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request, + 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); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a policy. This action is permanent.
      * 
*/ - public void deletePolicy( - com.google.iam.v2beta.DeletePolicyRequest request, + 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); + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -511,15 +409,12 @@ protected PoliciesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
      * omitted.
      * 
*/ - public com.google.iam.v2beta.ListPoliciesResponse listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request) { + 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.
      * 
@@ -530,21 +425,16 @@ public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyReq } /** - * - * *
      * Creates a policy.
      * 
*/ - public com.google.longrunning.Operation createPolicy( - com.google.iam.v2beta.CreatePolicyRequest request) { + 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.
@@ -555,21 +445,17 @@ public com.google.longrunning.Operation createPolicy(
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public com.google.longrunning.Operation updatePolicy( - com.google.iam.v2beta.UpdatePolicyRequest request) { + 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) { + public com.google.longrunning.Operation deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePolicyMethod(), getCallOptions(), request); } @@ -577,25 +463,24 @@ public com.google.longrunning.Operation deletePolicy( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Policies. - * *
    * 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) { + 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) { + 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.
@@ -603,42 +488,35 @@ protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * omitted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v2beta.ListPoliciesResponse> - listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { + 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) { + 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) { + 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.
@@ -649,21 +527,19 @@ protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { + 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) { + 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); } @@ -675,11 +551,11 @@ protected PoliciesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions 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 static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -693,29 +569,23 @@ private static final class MethodHandlers 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); + 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, + 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, + 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, + 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, + serviceImpl.deletePolicy((com.google.iam.v2beta.DeletePolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -737,41 +607,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>(service, METHODID_LIST_POLICIES))) + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.ListPoliciesRequest, + com.google.iam.v2beta.ListPoliciesResponse>( + service, METHODID_LIST_POLICIES))) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy>( - service, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.GetPolicyRequest, + com.google.iam.v2beta.Policy>( + service, METHODID_GET_POLICY))) .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_CREATE_POLICY))) + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.CreatePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.UpdatePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_POLICY))) .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation>( - service, METHODID_DELETE_POLICY))) + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.DeletePolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_POLICY))) .build(); } - private abstract static class PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PoliciesBaseDescriptorSupplier() {} @java.lang.Override @@ -785,11 +659,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { + private static final class PoliciesFileDescriptorSupplier + extends PoliciesBaseDescriptorSupplier { PoliciesFileDescriptorSupplier() {} } - private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier + private static final class PoliciesMethodDescriptorSupplier + extends PoliciesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -811,16 +687,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { 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(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); } } } 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 73% 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 370189917a..f8879e95c1 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,50 +26,43 @@ 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() { - 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -96,36 +71,39 @@ 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -136,14 +114,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 @@ -151,14 +126,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 @@ -166,8 +138,6 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. The policy to create.
    * 
@@ -180,12 +150,9 @@ 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
@@ -194,7 +161,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; - * * @return The policyId. */ @java.lang.Override @@ -203,15 +169,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
@@ -220,15 +185,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 { @@ -237,7 +203,6 @@ public com.google.protobuf.ByteString getPolicyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +214,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_); } @@ -272,7 +238,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_); @@ -285,20 +252,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; } @@ -323,136 +292,132 @@ 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(); @@ -468,9 +433,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 @@ -489,11 +454,8 @@ 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; } @@ -504,50 +466,19 @@ 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_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -595,31 +526,29 @@ 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) { @@ -629,32 +558,32 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -663,28 +592,30 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -692,49 +623,48 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -744,28 +674,27 @@ 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`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -775,33 +704,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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() { @@ -812,8 +732,6 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to create.
      * 
@@ -834,15 +752,14 @@ 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 { @@ -853,8 +770,6 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -863,9 +778,9 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) { */ 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; @@ -878,8 +793,6 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -897,8 +810,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * Required. The policy to create.
      * 
@@ -911,8 +822,6 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The policy to create.
      * 
@@ -923,12 +832,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.
      * 
@@ -936,17 +844,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_; @@ -954,8 +859,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
@@ -964,13 +867,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; @@ -979,8 +882,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
@@ -989,14 +890,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 { @@ -1004,8 +906,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
@@ -1014,22 +914,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
@@ -1038,7 +934,6 @@ public Builder setPolicyId(java.lang.String value) {
      * 
* * string policy_id = 3; - * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -1048,8 +943,6 @@ 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
@@ -1058,23 +951,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); } @@ -1084,12 +975,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(); } @@ -1098,27 +989,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; @@ -1133,4 +1024,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 80% 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..7090edfd0a 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,94 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 +75,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 +83,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 +95,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 71% 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 9eae189aef..0e44b96b99 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,49 +26,42 @@ 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() { - 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -95,35 +70,38 @@ 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -132,22 +110,19 @@ public com.google.protobuf.ByteString getNameBytes() { } 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -156,33 +131,34 @@ 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +167,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +178,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_); } @@ -233,16 +209,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; } @@ -263,136 +240,132 @@ 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(); @@ -403,9 +376,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 @@ -424,11 +397,8 @@ 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; } @@ -443,43 +413,10 @@ private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -524,25 +461,22 @@ 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) { @@ -552,31 +486,31 @@ 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -585,27 +519,29 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -613,47 +549,46 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -663,27 +598,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -693,24 +627,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -719,25 +652,25 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -745,43 +678,38 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -791,34 +719,31 @@ 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
      * and `ABORTED` status.
+     *
      * If you omit this field, the policy is deleted regardless of its current
      * `etag`.
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - 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); } @@ -828,12 +753,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(); } @@ -842,27 +767,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; @@ -877,4 +802,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 76% 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..67444b4e7b 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,95 +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/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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * 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
    * and `ABORTED` status.
+   *
    * If you omit this field, the policy is deleted regardless of its current
    * `etag`.
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/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 83% 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 2d2a3b6363..80d7f84a84 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,110 +1,97 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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; - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DenyRule(); } - @java.lang.Override - 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_; + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -112,44 +99,50 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -157,44 +150,49 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -202,7 +200,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. */ @@ -210,37 +207,43 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -248,73 +251,68 @@ 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_; + private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -322,34 +320,31 @@ 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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_; + private com.google.protobuf.LazyStringArrayList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -358,15 +353,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}`
@@ -375,15 +368,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}`
@@ -392,7 +382,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. */ @@ -400,8 +389,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}`
@@ -410,70 +397,65 @@ 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_; + private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -481,37 +463,36 @@ 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -519,7 +500,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 @@ -527,14 +507,14 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -542,7 +522,6 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; - * * @return The denialCondition. */ @java.lang.Override @@ -550,14 +529,14 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -572,7 +551,6 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -584,7 +562,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));
     }
@@ -595,8 +574,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());
@@ -643,7 +621,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;
@@ -653,20 +632,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;
@@ -704,146 +688,144 @@ 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; - bitField0_ = (bitField0_ & ~0x00000002); - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -853,9 +835,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 @@ -875,82 +857,40 @@ 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(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); + private void buildPartial0(com.google.iam.v2beta.DenyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + deniedPrincipals_.makeImmutable(); + result.deniedPrincipals_ = deniedPrincipals_; } - result.deniedPrincipals_ = deniedPrincipals_; - if (((bitField0_ & 0x00000002) != 0)) { - exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (((from_bitField0_ & 0x00000002) != 0)) { + exceptionPrincipals_.makeImmutable(); + result.exceptionPrincipals_ = exceptionPrincipals_; } - result.exceptionPrincipals_ = exceptionPrincipals_; - if (((bitField0_ & 0x00000004) != 0)) { - deniedPermissions_ = deniedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + deniedPermissions_.makeImmutable(); + result.deniedPermissions_ = deniedPermissions_; } - result.deniedPermissions_ = deniedPermissions_; - if (((bitField0_ & 0x00000008) != 0)) { - exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000008) != 0)) { + exceptionPermissions_.makeImmutable(); + result.exceptionPermissions_ = exceptionPermissions_; } - result.exceptionPermissions_ = exceptionPermissions_; - } - - 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -962,7 +902,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.deniedPrincipals_.isEmpty()) { if (deniedPrincipals_.isEmpty()) { deniedPrincipals_ = other.deniedPrincipals_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureDeniedPrincipalsIsMutable(); deniedPrincipals_.addAll(other.deniedPrincipals_); @@ -972,7 +912,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.exceptionPrincipals_.isEmpty()) { if (exceptionPrincipals_.isEmpty()) { exceptionPrincipals_ = other.exceptionPrincipals_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureExceptionPrincipalsIsMutable(); exceptionPrincipals_.addAll(other.exceptionPrincipals_); @@ -982,7 +922,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.deniedPermissions_.isEmpty()) { if (deniedPermissions_.isEmpty()) { deniedPermissions_ = other.deniedPermissions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureDeniedPermissionsIsMutable(); deniedPermissions_.addAll(other.deniedPermissions_); @@ -992,7 +932,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) { if (!other.exceptionPermissions_.isEmpty()) { if (exceptionPermissions_.isEmpty()) { exceptionPermissions_ = other.exceptionPermissions_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureExceptionPermissionsIsMutable(); exceptionPermissions_.addAll(other.exceptionPermissions_); @@ -1028,47 +968,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); - 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) { @@ -1078,50 +1014,54 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1129,44 +1069,51 @@ private void ensureDeniedPrincipalsIsMutable() {
      * 
* * repeated string denied_principals = 1; - * * @return A list containing the deniedPrincipals. */ - public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() { - return deniedPrincipals_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getDeniedPrincipalsList() { + deniedPrincipals_.makeImmutable(); + return deniedPrincipals_; } /** - * - * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1174,44 +1121,49 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1219,7 +1171,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. */ @@ -1227,37 +1178,43 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1265,45 +1222,51 @@ 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1311,52 +1274,57 @@ 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); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1364,51 +1332,56 @@ 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); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1416,48 +1389,56 @@ 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_); + bitField0_ |= 0x00000001; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1465,47 +1446,53 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
      * 
* * repeated string denied_principals = 1; - * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { - deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + deniedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; 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:
+     *
      * * `principalSet://goog/public:all`: A special identifier that represents
      *   any principal that is on the internet, even if they do not have a Google
      *   Account or are not logged in.
+     *
      * * `principal://goog/subject/{email_id}`: A specific Google Account.
      *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
      *   example, `principal://goog/subject/alice@example.com`.
+     *
      * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
      *   Google Account that was deleted recently. For example,
      *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
      *   the Google Account is recovered, this identifier reverts to the standard
      *   identifier for a Google Account.
+     *
      * * `principalSet://goog/group/{group_id}`: A Google group. For example,
      *   `principalSet://goog/group/admins@example.com`.
+     *
      * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
      *   that was deleted recently. For example,
      *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
      *   the Google group is restored, this identifier reverts to the standard
      *   identifier for a Google group.
+     *
      * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
      *   A Google Cloud service account. For example,
      *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+     *
      * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
      *   A Google Cloud service account that was deleted recently. For example,
      *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
      *   If the service account is undeleted, this identifier reverts to the
      *   standard identifier for a service account.
+     *
      * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
      *   principals associated with the specified Google Workspace or Cloud
      *   Identity customer ID. For example,
@@ -1513,85 +1500,79 @@ 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); + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExceptionPrincipalsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!exceptionPrincipals_.isModifiable()) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); - bitField0_ |= 0x00000002; } + 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @return A list containing the exceptionPrincipals. */ - public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() { - return exceptionPrincipals_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getExceptionPrincipalsList() { + exceptionPrincipals_.makeImmutable(); + 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @param index The index of the element to return. * @return The exceptionPrincipals at the given index. */ @@ -1599,169 +1580,159 @@ 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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_); + bitField0_ |= 0x00000002; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * repeated string exception_principals = 2; - * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { - exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + exceptionPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; 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
      * group to the `denied_principals`, then exclude specific users who belong to
      * that group.
+     *
      * This field can contain the same values as the `denied_principals` field,
      * excluding `principalSet://goog/public:all`, which represents all users on
      * the internet.
      * 
* * 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); + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringList deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeniedPermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!deniedPermissions_.isModifiable()) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1770,15 +1741,14 @@ private void ensureDeniedPermissionsIsMutable() {
      * 
* * repeated string denied_permissions = 3; - * * @return A list containing the deniedPermissions. */ - public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() { - return deniedPermissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getDeniedPermissionsList() { + deniedPermissions_.makeImmutable(); + return deniedPermissions_; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1787,15 +1757,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}`
@@ -1804,7 +1771,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. */ @@ -1812,8 +1778,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}`
@@ -1822,16 +1786,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}`
@@ -1840,23 +1802,20 @@ 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); + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1865,22 +1824,19 @@ 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); + bitField0_ |= 0x00000004; 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,19 +1845,19 @@ 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_); + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1910,18 +1866,16 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
      * 
* * repeated string denied_permissions = 3; - * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { - deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + deniedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1930,82 +1884,76 @@ 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); + bitField0_ |= 0x00000004; onChanged(); return this; } - private com.google.protobuf.LazyStringList exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExceptionPermissionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!exceptionPermissions_.isModifiable()) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @return A list containing the exceptionPermissions. */ - public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() { - return exceptionPermissions_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList + getExceptionPermissionsList() { + exceptionPermissions_.makeImmutable(); + return exceptionPermissions_; } /** - * - * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @param index The index of the element to return. * @return The exceptionPermissions at the given index. */ @@ -2013,164 +1961,156 @@ 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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_); + bitField0_ |= 0x00000008; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * repeated string exception_permissions = 4; - * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + exceptionPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; 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
      * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
      * denied.
+     *
      * The excluded permissions can be specified using the same syntax as
      * `denied_permissions`.
      * 
* * 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); + bitField0_ |= 0x00000008; onChanged(); return this; } 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2178,21 +2118,20 @@ 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 ((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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2200,27 +2139,24 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2243,14 +2179,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2259,7 +2195,8 @@ 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 {
@@ -2270,14 +2207,14 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
       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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2288,9 +2225,9 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
      */
     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;
@@ -2303,14 +2240,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2330,14 +2267,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2352,14 +2289,14 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2372,20 +2309,19 @@ 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
      * applied; otherwise, the deny rule is not applied.
+     *
      * Each deny rule is evaluated independently. If this deny rule does not apply
      * to a request, other deny rules might still apply.
+     *
      * The condition can use CEL functions that evaluate
      * [resource
      * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2395,20 +2331,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);
     }
 
@@ -2418,12 +2355,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();
   }
@@ -2432,27 +2369,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;
@@ -2467,4 +2404,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 94%
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..eb2beba78e 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,60 +1,50 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -62,42 +52,48 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -105,42 +101,47 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -148,43 +149,48 @@ 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:
+   *
    * * `principalSet://goog/public:all`: A special identifier that represents
    *   any principal that is on the internet, even if they do not have a Google
    *   Account or are not logged in.
+   *
    * * `principal://goog/subject/{email_id}`: A specific Google Account.
    *   Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
    *   example, `principal://goog/subject/alice@example.com`.
+   *
    * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
    *   Google Account that was deleted recently. For example,
    *   `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
    *   the Google Account is recovered, this identifier reverts to the standard
    *   identifier for a Google Account.
+   *
    * * `principalSet://goog/group/{group_id}`: A Google group. For example,
    *   `principalSet://goog/group/admins@example.com`.
+   *
    * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
    *   that was deleted recently. For example,
    *   `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
    *   the Google group is restored, this identifier reverts to the standard
    *   identifier for a Google group.
+   *
    * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
    *   A Google Cloud service account. For example,
    *   `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+   *
    * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
    *   A Google Cloud service account that was deleted recently. For example,
    *   `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
    *   If the service account is undeleted, this identifier reverts to the
    *   standard identifier for a service account.
+   *
    * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
    *   principals associated with the specified Google Workspace or Cloud
    *   Identity customer ID. For example,
@@ -192,90 +198,82 @@ 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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
    * group to the `denied_principals`, then exclude specific users who belong to
    * that group.
+   *
    * This field can contain the same values as the `denied_principals` field,
    * excluding `principalSet://goog/public:all`, which represents all users on
    * the internet.
    * 
* * 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 +282,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 +295,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 +307,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,92 +320,86 @@ 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
    * denied.
+   *
    * The excluded permissions can be specified using the same syntax as
    * `denied_permissions`.
    * 
* * 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -423,19 +407,18 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -443,19 +426,18 @@ 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
    * applied; otherwise, the deny rule is not applied.
+   *
    * Each deny rule is evaluated independently. If this deny rule does not apply
    * to a request, other deny rules might still apply.
+   *
    * The condition can use CEL functions that evaluate
    * [resource
    * tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
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..ce79ccf7b5
--- /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,57 @@
+// 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\213\001\n\025com.google.iam.v2betaB\rDenyR" +
+      "uleProtoP\001Z-cloud.google.com/go/iam/apiv" +
+      "2beta/iampb;iampb\252\002\027Google.Cloud.Iam.V2B" +
+      "eta\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3"
+    };
+    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 69%
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 fbe4827adc..9c717d3916 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,91 +1,66 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See 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() { - 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -94,35 +69,38 @@ 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -131,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +120,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_); } @@ -167,14 +145,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; } @@ -193,136 +172,132 @@ 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(); @@ -332,9 +307,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 @@ -353,11 +328,8 @@ 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; } @@ -369,43 +341,10 @@ private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -445,19 +384,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,31 +404,31 @@ 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -500,27 +437,29 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -528,47 +467,46 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -578,36 +516,35 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * Use the URL-encoded full resource name, which means that the forward-slash
      * character, `/`, must be written as `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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); } @@ -617,12 +554,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(); } @@ -631,27 +568,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; @@ -666,4 +603,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 70% 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..b7c9853e1a 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,62 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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}`
+   *
+   *
    * Use the URL-encoded full resource name, which means that the forward-slash
    * character, `/`, must be written as `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 36db2f0ff0..bac800b1de 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,51 +26,44 @@ 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() { - 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -97,37 +72,40 @@ 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 { @@ -138,15 +116,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -155,19 +130,15 @@ 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 @@ -176,30 +147,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 { @@ -208,7 +179,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +190,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_); } @@ -243,7 +214,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_); @@ -256,17 +228,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; } @@ -289,136 +263,132 @@ 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(); @@ -430,9 +400,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 @@ -451,11 +421,8 @@ 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; } @@ -473,43 +440,10 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -557,31 +491,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,33 +521,33 @@ 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:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -626,29 +556,31 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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 { @@ -656,51 +588,50 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -710,29 +641,28 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
      * `policies/{attachment_point}/denypolicies`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, you can use the alphanumeric or the numeric ID.
      * 
* * 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; @@ -740,17 +670,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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 @@ -758,15 +685,12 @@ 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. */ @@ -778,15 +702,12 @@ public Builder setPageSize(int value) { 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() { @@ -798,21 +719,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; @@ -821,22 +740,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 { @@ -844,37 +762,30 @@ 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() { @@ -884,31 +795,27 @@ 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); } @@ -918,12 +825,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(); } @@ -932,27 +839,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; @@ -967,4 +874,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 76% 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..c1f00d1e41 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,107 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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:
    * `policies/{attachment_point}/denypolicies`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, you can use the alphanumeric or the numeric ID.
    * 
* * 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 70% 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 423bc3f3ff..bc883bf505 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,37 +26,28 @@ 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() { - 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.
    * 
@@ -86,8 +59,6 @@ public java.util.List getPoliciesList() { return policies_; } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -95,13 +66,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.
    * 
@@ -113,8 +82,6 @@ public int getPoliciesCount() { return policies_.size(); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -126,8 +93,6 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { return policies_.get(index); } /** - * - * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -135,24 +100,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; - @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 @@ -161,30 +123,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 { @@ -193,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +166,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)); } @@ -222,7 +184,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_); @@ -235,16 +198,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; } @@ -267,136 +231,132 @@ 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(); @@ -413,9 +373,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 @@ -434,12 +394,9 @@ 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; } @@ -463,43 +420,10 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -526,10 +450,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_); } @@ -566,31 +489,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(); - 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) { @@ -600,28 +522,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.
      * 
@@ -636,8 +551,6 @@ public java.util.List getPoliciesList() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -652,8 +565,6 @@ public int getPoliciesCount() { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -668,15 +579,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(); @@ -690,15 +600,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()); @@ -709,8 +618,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.
      * 
@@ -731,15 +638,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(); @@ -753,15 +659,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()); @@ -772,15 +677,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()); @@ -791,8 +695,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.
      * 
@@ -803,7 +705,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); @@ -811,8 +714,6 @@ public Builder addAllPolicies( return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -830,8 +731,6 @@ public Builder clearPolicies() { return this; } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -849,44 +748,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 { @@ -894,8 +788,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder(int index) { } } /** - * - * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -903,47 +795,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_; @@ -951,21 +838,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; @@ -974,22 +859,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 { @@ -997,37 +881,30 @@ 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() { @@ -1037,31 +914,27 @@ 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); } @@ -1071,12 +944,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(); } @@ -1085,27 +958,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; @@ -1120,4 +993,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 70% 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 55ce515fb5..3bf53bcfec 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,60 +30,56 @@ 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() { - 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -110,37 +88,40 @@ 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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 { @@ -149,19 +130,15 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -170,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 { @@ -202,18 +179,14 @@ public com.google.protobuf.ByteString getUidBytes() { } 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 @@ -222,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 { @@ -253,19 +226,15 @@ public com.google.protobuf.ByteString getKindBytes() { } 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 @@ -274,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 { @@ -306,35 +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.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< + 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 annotations_; - + 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.
@@ -343,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.
@@ -370,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.
@@ -380,19 +343,17 @@ 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.
@@ -401,11 +362,11 @@ public java.util.Map getAnnotationsMap() {
    * 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();
     }
@@ -413,22 +374,19 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * string etag = 6; - * * @return The etag. */ @java.lang.Override @@ -437,33 +395,34 @@ 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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 { @@ -474,15 +433,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 @@ -490,15 +445,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 @@ -506,14 +457,11 @@ 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() { @@ -523,15 +471,11 @@ 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 @@ -539,15 +483,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 @@ -555,14 +495,11 @@ 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() { @@ -572,15 +509,11 @@ 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 @@ -588,15 +521,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 @@ -604,14 +533,11 @@ 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() { @@ -619,12 +545,9 @@ 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`.
@@ -637,8 +560,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`.
@@ -647,13 +568,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`.
@@ -666,8 +585,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`.
@@ -680,8 +597,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`.
@@ -690,12 +605,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;
@@ -707,7 +622,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_);
     }
@@ -720,8 +636,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_);
     }
@@ -758,30 +678,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;
@@ -791,32 +715,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;
   }
@@ -863,153 +797,154 @@ 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(); @@ -1046,7 +981,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.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor; } @@ -1068,9 +1004,7 @@ 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; } @@ -1109,53 +1043,26 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -1184,7 +1091,8 @@ 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_; @@ -1218,10 +1126,9 @@ 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_); } @@ -1253,85 +1160,80 @@ 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) { @@ -1341,33 +1243,33 @@ 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}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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,29 +1278,31 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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 { @@ -1406,51 +1310,50 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1460,29 +1363,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
+     *
+     *
      * The attachment point is identified by its URL-encoded full resource name,
      * which means that the forward-slash character, `/`, must be written as
      * `%2F`. For example,
      * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+     *
      * For organizations and folders, use the numeric ID in the full resource
      * name. For projects, requests can use the alphanumeric or the numeric ID.
      * Responses always contain the numeric ID.
      * 
* * 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; @@ -1492,21 +1394,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1515,22 +1415,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 { @@ -1538,37 +1437,30 @@ 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() { @@ -1578,22 +1470,18 @@ 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; @@ -1603,20 +1491,18 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { 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; @@ -1625,21 +1511,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 { @@ -1647,35 +1532,28 @@ 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() { @@ -1685,21 +1563,17 @@ 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; @@ -1709,21 +1583,19 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { 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; @@ -1732,22 +1604,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 { @@ -1755,37 +1626,30 @@ 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() { @@ -1795,22 +1659,18 @@ 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; @@ -1818,8 +1678,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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) { @@ -1828,12 +1688,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } 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(); @@ -1842,13 +1701,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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.
@@ -1857,21 +1713,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.
@@ -1884,8 +1739,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.
@@ -1894,19 +1747,17 @@ 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.
@@ -1915,25 +1766,23 @@ public java.util.Map getAnnotationsMap() {
      * 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.
@@ -1941,22 +1790,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.
@@ -1964,20 +1814,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.
@@ -1985,32 +1832,33 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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; @@ -2019,25 +1867,25 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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 { @@ -2045,43 +1893,38 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * string etag = 6; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2091,25 +1934,22 @@ 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
      * update to be overwritten by another.
+     *
      * If this field is present in a [CreatePolicy][] request, the value is
      * ignored.
      * 
* * 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; @@ -2119,58 +1959,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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) { @@ -2186,17 +2007,14 @@ 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 { @@ -2207,21 +2025,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2234,15 +2048,11 @@ 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); @@ -2255,15 +2065,11 @@ 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; @@ -2271,48 +2077,36 @@ 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_; @@ -2320,58 +2114,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 ((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) { @@ -2387,17 +2162,14 @@ 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 { @@ -2408,21 +2180,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2435,15 +2203,11 @@ 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); @@ -2456,15 +2220,11 @@ 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; @@ -2472,48 +2232,36 @@ 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_; @@ -2521,58 +2269,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 ((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) { @@ -2588,17 +2317,14 @@ 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 { @@ -2609,21 +2335,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2636,15 +2358,11 @@ 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); @@ -2657,15 +2375,11 @@ 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; @@ -2673,72 +2387,54 @@ 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`.
@@ -2754,8 +2450,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`.
@@ -2771,8 +2465,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`.
@@ -2788,8 +2480,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`.
@@ -2797,7 +2487,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();
@@ -2811,8 +2502,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`.
@@ -2820,7 +2509,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());
@@ -2831,8 +2521,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`.
@@ -2854,8 +2542,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`.
@@ -2863,7 +2549,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();
@@ -2877,8 +2564,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`.
@@ -2886,7 +2571,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());
@@ -2897,8 +2583,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`.
@@ -2906,7 +2590,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());
@@ -2917,8 +2602,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`.
@@ -2930,7 +2613,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);
@@ -2938,8 +2622,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`.
@@ -2958,8 +2640,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`.
@@ -2978,8 +2658,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`.
@@ -2987,12 +2665,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`.
@@ -3000,16 +2677,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`.
@@ -3017,8 +2692,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 {
@@ -3026,8 +2701,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`.
@@ -3036,12 +2709,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`.
@@ -3049,13 +2720,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`.
@@ -3063,29 +2733,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_ & 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);
     }
 
@@ -3095,12 +2763,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();
   }
@@ -3109,27 +2777,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;
@@ -3144,4 +2812,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 7c1c6a9bb9..d3e582d6c2 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,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;
 
 /**
- *
- *
  * 
  * 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() { - 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 +57,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 +69,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -112,7 +81,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,7 +92,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 +107,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 +118,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,136 +150,132 @@ 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(); @@ -323,9 +289,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 @@ -344,11 +310,8 @@ 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; } @@ -356,47 +319,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -434,19 +366,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) { @@ -456,52 +388,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 ((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.
      * 
@@ -522,15 +440,14 @@ 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 { @@ -541,8 +458,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -551,9 +466,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ 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; @@ -566,8 +481,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -585,8 +498,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -599,8 +510,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -611,14 +520,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.
      * 
@@ -626,24 +532,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); } @@ -653,12 +556,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(); } @@ -667,27 +570,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; @@ -702,4 +605,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 a1a4d2a7b2..5f5b663511 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,151 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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}`
+   *
+   *
    * The attachment point is identified by its URL-encoded full resource name,
    * which means that the forward-slash character, `/`, must be written as
    * `%2F`. For example,
    * `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+   *
    * For organizations and folders, use the numeric ID in the full resource
    * name. For projects, requests can use the alphanumeric or the numeric ID.
    * Responses always contain the numeric ID.
    * 
* * 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 +123,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 +130,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 +146,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.
@@ -190,13 +157,11 @@ 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.
@@ -204,158 +169,121 @@ 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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
    * update to be overwritten by another.
+   *
    * If this field is present in a [CreatePolicy][] request, the value is
    * ignored.
    * 
* * 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`.
@@ -363,10 +291,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`.
@@ -376,8 +303,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`.
@@ -387,8 +312,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`.
@@ -396,10 +319,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`.
@@ -407,5 +329,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..44e55e4334
--- /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\"" +
+      "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 " +
+      "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display" +
+      "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl" +
+      "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004" +
+      "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google" +
+      ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" +
+      "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" +
+      "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf." +
+      "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google." +
+      "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol" +
+      "icyRule\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\"R\n\023ListPoliciesRequest\022\024\n\006parent\030" +
+      "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" +
+      "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po" +
+      "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022" +
+      "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq" +
+      "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy" +
+      "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030" +
+      "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021" +
+      "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest" +
+      "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol" +
+      "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name" +
+      "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli" +
+      "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013" +
+      "2\032.google.protobuf.Timestamp2\200\007\n\010Policie" +
+      "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L" +
+      "istPoliciesRequest\032\'.google.iam.v2beta.L" +
+      "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" +
+      "2beta/{parent=policies/*/*}\022y\n\tGetPolicy" +
+      "\022#.google.iam.v2beta.GetPolicyRequest\032\031." +
+      "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022" +
+      "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat" +
+      "ePolicy\022&.google.iam.v2beta.CreatePolicy" +
+      "Request\032\035.google.longrunning.Operation\"k" +
+      "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p" +
+      "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p" +
+      "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo" +
+      "licy\022&.google.iam.v2beta.UpdatePolicyReq" +
+      "uest\032\035.google.longrunning.Operation\"X\312A!" +
+      "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032" +
+      "$/v2beta/{policy.name=policies/*/*/*}:\006p" +
+      "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be" +
+      "ta.DeletePolicyRequest\032\035.google.longrunn" +
+      "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat" +
+      "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name=" +
+      "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A" +
+      ".https://www.googleapis.com/auth/cloud-p" +
+      "latformB\211\001\n\025com.google.iam.v2betaB\013Polic" +
+      "yProtoP\001Z-cloud.google.com/go/iam/apiv2b" +
+      "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet" +
+      "a\312\002\027Google\\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 67%
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 8da3bc2c5e..02c5b419f5 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,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;
 
 /**
- *
- *
  * 
  * 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() { - 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; + @SuppressWarnings("serial") 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 +67,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 +97,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,25 +121,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; - @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 @@ -183,30 +144,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 { @@ -215,7 +176,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +187,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_); } @@ -247,9 +208,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; @@ -259,18 +219,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: @@ -301,135 +263,132 @@ 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(); @@ -444,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_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 @@ -466,9 +425,7 @@ 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; @@ -484,48 +441,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -540,15 +465,13 @@ 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(); @@ -576,25 +499,24 @@ 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) { @@ -604,12 +526,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() { @@ -622,19 +544,13 @@ 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 @@ -642,14 +558,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 @@ -667,8 +580,6 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -689,15 +600,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(); @@ -708,8 +618,6 @@ public Builder setDenyRule(com.google.iam.v2beta.DenyRule.Builder builderForValu return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -718,11 +626,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; } @@ -738,8 +645,6 @@ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -763,8 +668,6 @@ public Builder clearDenyRule() { return this; } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -775,8 +678,6 @@ public com.google.iam.v2beta.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -795,8 +696,6 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** - * - * *
      * A rule for a deny policy.
      * 
@@ -804,20 +703,17 @@ 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; @@ -827,21 +723,19 @@ 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; @@ -850,22 +744,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 { @@ -873,37 +766,30 @@ 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() { @@ -913,31 +799,27 @@ 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); } @@ -947,12 +829,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(); } @@ -961,27 +843,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; @@ -996,4 +878,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 61% 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..7225310955 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(); + 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 97a01efac9..8d1b3023da 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,84 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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() { - 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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -86,17 +61,15 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. The policy to update.
+   *
    * To prevent conflicting updates, the `etag` value must match the value that
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -104,10 +77,9 @@ 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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
@@ -121,7 +93,6 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -133,7 +104,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 +119,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 +130,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,136 +162,132 @@ 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(); @@ -332,9 +301,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 @@ -353,11 +322,8 @@ 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; } @@ -365,47 +331,16 @@ 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(); } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -443,19 +378,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) { @@ -465,44 +400,36 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
      * 
* * .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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
      * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v2beta.Policy getPolicy() { @@ -513,10 +440,9 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** - * - * *
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -538,10 +464,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -549,7 +474,8 @@ 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 {
@@ -560,10 +486,9 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -573,9 +498,9 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
      */
     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;
@@ -588,10 +513,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -610,10 +534,9 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The policy to update.
+     *
      * To prevent conflicting updates, the `etag` value must match the value that
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -627,10 +550,9 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -642,14 +564,14 @@ 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
      * is stored in IAM. If the `etag` values do not match, the request fails with
      * a `409` error code and `ABORTED` status.
@@ -658,24 +580,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);
     }
 
@@ -685,12 +604,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();
   }
@@ -699,27 +618,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;
@@ -734,4 +653,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 70%
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..5a1228510f 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,63 +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;
 
-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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
    * 
* * .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
    * is stored in IAM. If the `etag` values do not match, the request fails with
    * a `409` error code and `ABORTED` status.
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 d64ec607d6cdb5d335443e7676e7c83db7a634d0 Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Tue, 23 May 2023 17:45:32 +0000
Subject: [PATCH 2/7] =?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 |  379 +++--
 .../java/com/google/iam/v2/PoliciesGrpc.java  |  544 ++++---
 .../com/google/iam/v2beta/PoliciesGrpc.java   |  550 ++++---
 .../java/com/google/iam/v1/AuditConfig.java   |  424 +++--
 .../com/google/iam/v1/AuditConfigDelta.java   |  541 ++++---
 .../iam/v1/AuditConfigDeltaOrBuilder.java     |   51 +-
 .../google/iam/v1/AuditConfigOrBuilder.java   |   45 +-
 .../com/google/iam/v1/AuditLogConfig.java     |  429 +++--
 .../iam/v1/AuditLogConfigOrBuilder.java       |   42 +-
 .../main/java/com/google/iam/v1/Binding.java  |  448 ++++--
 .../java/com/google/iam/v1/BindingDelta.java  |  532 +++---
 .../google/iam/v1/BindingDeltaOrBuilder.java  |   50 +-
 .../com/google/iam/v1/BindingOrBuilder.java   |   53 +-
 .../google/iam/v1/GetIamPolicyRequest.java    |  404 +++--
 .../iam/v1/GetIamPolicyRequestOrBuilder.java  |   43 +-
 .../com/google/iam/v1/GetPolicyOptions.java   |  243 +--
 .../iam/v1/GetPolicyOptionsOrBuilder.java     |   21 +-
 .../com/google/iam/v1/IamPolicyProto.java     |  149 ++
 .../java/com/google/iam/v1/OptionsProto.java  |   64 +
 .../main/java/com/google/iam/v1/Policy.java   |  576 ++++---
 .../java/com/google/iam/v1/PolicyDelta.java   |  502 +++---
 .../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    |  486 +++---
 .../iam/v1/SetIamPolicyRequestOrBuilder.java  |   51 +-
 .../iam/v1/TestIamPermissionsRequest.java     |  427 +++--
 .../TestIamPermissionsRequestOrBuilder.java   |   53 +-
 .../iam/v1/TestIamPermissionsResponse.java    |  327 ++--
 .../TestIamPermissionsResponseOrBuilder.java  |   36 +-
 .../google/iam/v2/CreatePolicyRequest.java    |  441 +++--
 .../iam/v2/CreatePolicyRequestOrBuilder.java  |   44 +-
 .../google/iam/v2/DeletePolicyRequest.java    |  359 +++--
 .../iam/v2/DeletePolicyRequestOrBuilder.java  |   36 +-
 .../main/java/com/google/iam/v2/DenyRule.java |  713 +++++---
 .../com/google/iam/v2/DenyRuleOrBuilder.java  |   98 +-
 .../java/com/google/iam/v2/DenyRuleProto.java |   75 +
 .../com/google/iam/v2/GetPolicyRequest.java   |  281 ++--
 .../iam/v2/GetPolicyRequestOrBuilder.java     |   27 +-
 .../google/iam/v2/ListPoliciesRequest.java    |  390 +++--
 .../iam/v2/ListPoliciesRequestOrBuilder.java  |   39 +-
 .../google/iam/v2/ListPoliciesResponse.java   |  449 +++---
 .../iam/v2/ListPoliciesResponseOrBuilder.java |   46 +-
 .../main/java/com/google/iam/v2/Policy.java   | 1433 ++++++++++-------
 .../iam/v2/PolicyOperationMetadata.java       |  311 ++--
 .../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    |  399 +++--
 .../google/iam/v2/PolicyRuleOrBuilder.java    |   35 +-
 .../google/iam/v2/UpdatePolicyRequest.java    |  300 ++--
 .../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       |  446 +++--
 .../v2beta/CreatePolicyRequestOrBuilder.java  |   44 +-
 .../iam/v2beta/DeletePolicyRequest.java       |  363 +++--
 .../v2beta/DeletePolicyRequestOrBuilder.java  |   36 +-
 .../java/com/google/iam/v2beta/DenyRule.java  |  725 ++++++---
 .../google/iam/v2beta/DenyRuleOrBuilder.java  |   98 +-
 .../com/google/iam/v2beta/DenyRuleProto.java  |   76 +
 .../google/iam/v2beta/GetPolicyRequest.java   |  284 ++--
 .../iam/v2beta/GetPolicyRequestOrBuilder.java |   27 +-
 .../iam/v2beta/ListPoliciesRequest.java       |  394 +++--
 .../v2beta/ListPoliciesRequestOrBuilder.java  |   39 +-
 .../iam/v2beta/ListPoliciesResponse.java      |  453 +++---
 .../v2beta/ListPoliciesResponseOrBuilder.java |   46 +-
 .../java/com/google/iam/v2beta/Policy.java    | 1364 ++++++++++------
 .../iam/v2beta/PolicyOperationMetadata.java   |  311 ++--
 .../PolicyOperationMetadataOrBuilder.java     |   26 +-
 .../google/iam/v2beta/PolicyOrBuilder.java    |  163 +-
 .../com/google/iam/v2beta/PolicyProto.java    |  257 +++
 .../com/google/iam/v2beta/PolicyRule.java     |  414 +++--
 .../iam/v2beta/PolicyRuleOrBuilder.java       |   35 +-
 .../iam/v2beta/UpdatePolicyRequest.java       |  305 ++--
 .../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  |   51 -
 .../java/com/google/iam/v1/PolicyProto.java   |  144 --
 .../java/com/google/iam/v2/DenyRuleProto.java |   57 -
 .../java/com/google/iam/v2/PolicyProto.java   |  224 ---
 .../com/google/iam/v2beta/DenyRuleProto.java  |   57 -
 .../com/google/iam/v2beta/PolicyProto.java    |  225 ---
 85 files changed, 12692 insertions(+), 7833 deletions(-)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java (63%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java (51%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java (50%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java (77%)
 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 (87%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java (74%)
 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 (93%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java (67%)
 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 (71%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java (65%)
 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 (85%)
 rename {owl-bot-staging/java-iam/v1 => java-iam}/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java (77%)
 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 (87%)
 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 (73%)
 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 (75%)
 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 (74%)
 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 (86%)
 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 (72%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-iam/v2 => java-iam}/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java (74%)
 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 (67%)
 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 (71%)
 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 (72%)
 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 (73%)
 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 (72%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java (73%)
 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 (73%)
 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 (71%)
 rename {owl-bot-staging/java-iam/v2beta => java-iam}/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java (70%)
 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/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/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 63%
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 48839ed68d..ab6ee46a4d 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.
@@ -197,30 +238,40 @@ public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + default 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.
      * 
*/ - default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + default 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,14 +281,18 @@ default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * may "fail open" without warning.
      * 
*/ - default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service IAMPolicy. + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -259,16 +314,17 @@ default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest requ
    * attached.
    * 
*/ - public static abstract class IAMPolicyImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class IAMPolicyImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return IAMPolicyGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service IAMPolicy. + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -290,46 +346,55 @@ public static abstract class IAMPolicyImplBase
    * attached.
    * 
*/ - public static final class IAMPolicyStub - extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { + 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
@@ -339,15 +404,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); } } /** * A stub to allow clients to do synchronous rpc calls to service IAMPolicy. + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -371,8 +441,7 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque
    */
   public static final class IAMPolicyBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private IAMPolicyBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -383,6 +452,8 @@ protected IAMPolicyBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
@@ -395,6 +466,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
@@ -407,6 +480,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
@@ -416,7 +491,8 @@ 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); } @@ -424,6 +500,7 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.googl /** * A stub to allow clients to do ListenableFuture-style rpc calls to service IAMPolicy. + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -447,44 +524,48 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.googl
    */
   public static final class IAMPolicyFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private IAMPolicyFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    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
@@ -494,8 +575,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);
     }
@@ -505,11 +587,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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -523,16 +605,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();
@@ -553,31 +639,28 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     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>(
-                service, METHODID_SET_IAM_POLICY)))
+            getSetIamPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers(
+                    service, METHODID_SET_IAM_POLICY)))
         .addMethod(
-          getGetIamPolicyMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.iam.v1.GetIamPolicyRequest,
-              com.google.iam.v1.Policy>(
-                service, METHODID_GET_IAM_POLICY)))
+            getGetIamPolicyMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers(
+                    service, METHODID_GET_IAM_POLICY)))
         .addMethod(
-          getTestIamPermissionsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.iam.v1.TestIamPermissionsRequest,
-              com.google.iam.v1.TestIamPermissionsResponse>(
-                service, METHODID_TEST_IAM_PERMISSIONS)))
+            getTestIamPermissionsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.iam.v1.TestIamPermissionsRequest,
+                    com.google.iam.v1.TestIamPermissionsResponse>(
+                    service, METHODID_TEST_IAM_PERMISSIONS)))
         .build();
   }
 
-  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
@@ -619,12 +702,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/owl-bot-staging/java-iam/v2/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
similarity index 51%
rename from owl-bot-staging/java-iam/v2/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
rename to java-iam/grpc-google-iam-v2/src/main/java/com/google/iam/v2/PoliciesGrpc.java
index 0f12d3a174..d9587a5e0f 100644
--- a/owl-bot-staging/java-iam/v2/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
@@ -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.v2;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * An interface for managing Identity and Access Management (IAM) policies.
  * 
@@ -18,206 +35,248 @@ 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; + 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 getListPoliciesMethod() { - io.grpc.MethodDescriptor getListPoliciesMethod; + 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(); + 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; + 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 getGetPolicyMethod() { - io.grpc.MethodDescriptor getGetPolicyMethod; + 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(); + 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; + 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 getCreatePolicyMethod() { - io.grpc.MethodDescriptor getCreatePolicyMethod; + 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(); + 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; + 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 getUpdatePolicyMethod() { - io.grpc.MethodDescriptor getUpdatePolicyMethod; + 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(); + 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; + 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 getDeletePolicyMethod() { - io.grpc.MethodDescriptor getDeletePolicyMethod; + 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(); + 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 - */ + /** 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** 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); - } - }; + 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.
    * 
@@ -225,6 +284,8 @@ public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions c public interface AsyncService { /** + * + * *
      * Retrieves the policies of the specified kind that are attached to a
      * resource.
@@ -232,32 +293,43 @@ public interface AsyncService {
      * omitted.
      * 
*/ - default void listPolicies(com.google.iam.v2.ListPoliciesRequest request, + default void listPolicies( + com.google.iam.v2.ListPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPoliciesMethod(), responseObserver); } /** + * + * *
      * Gets a policy.
      * 
*/ - default void getPolicy(com.google.iam.v2.GetPolicyRequest request, + default void getPolicy( + com.google.iam.v2.GetPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** + * + * *
      * Creates a policy.
      * 
*/ - default void createPolicy(com.google.iam.v2.CreatePolicyRequest request, + default void createPolicy( + com.google.iam.v2.CreatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), 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.
@@ -268,56 +340,63 @@ default void createPolicy(com.google.iam.v2.CreatePolicyRequest request,
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - default void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, + default void updatePolicy( + com.google.iam.v2.UpdatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); } /** + * + * *
      * Deletes a policy. This action is permanent.
      * 
*/ - default void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, + default void deletePolicy( + com.google.iam.v2.DeletePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Policies. + * *
    * An interface for managing Identity and Access Management (IAM) policies.
    * 
*/ - public static abstract class PoliciesImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class PoliciesImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return PoliciesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -325,35 +404,48 @@ protected PoliciesStub build(
      * omitted.
      * 
*/ - public void listPolicies(com.google.iam.v2.ListPoliciesRequest request, + 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); + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets a policy.
      * 
*/ - public void getPolicy(com.google.iam.v2.GetPolicyRequest request, + 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, + 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); + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the specified policy.
      * You can update only the rules and the display name for the policy.
@@ -364,44 +456,53 @@ public void createPolicy(com.google.iam.v2.CreatePolicyRequest request,
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public void updatePolicy(com.google.iam.v2.UpdatePolicyRequest request, + 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); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a policy. This action is permanent.
      * 
*/ - public void deletePolicy(com.google.iam.v2.DeletePolicyRequest request, + 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); + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -409,12 +510,15 @@ protected PoliciesBlockingStub build(
      * omitted.
      * 
*/ - public com.google.iam.v2.ListPoliciesResponse listPolicies(com.google.iam.v2.ListPoliciesRequest request) { + 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.
      * 
@@ -425,16 +529,21 @@ public com.google.iam.v2.Policy getPolicy(com.google.iam.v2.GetPolicyRequest req } /** + * + * *
      * Creates a policy.
      * 
*/ - public com.google.longrunning.Operation createPolicy(com.google.iam.v2.CreatePolicyRequest request) { + 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.
@@ -445,17 +554,21 @@ public com.google.longrunning.Operation createPolicy(com.google.iam.v2.CreatePol
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public com.google.longrunning.Operation updatePolicy(com.google.iam.v2.UpdatePolicyRequest request) { + 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) { + public com.google.longrunning.Operation deletePolicy( + com.google.iam.v2.DeletePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePolicyMethod(), getCallOptions(), request); } @@ -463,24 +576,25 @@ public com.google.longrunning.Operation deletePolicy(com.google.iam.v2.DeletePol /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -488,13 +602,16 @@ protected PoliciesFutureStub build(
      * omitted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listPolicies( - com.google.iam.v2.ListPoliciesRequest request) { + 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.
      * 
@@ -506,17 +623,21 @@ public com.google.common.util.concurrent.ListenableFuture * Creates a policy. *
*/ - public com.google.common.util.concurrent.ListenableFuture createPolicy( - com.google.iam.v2.CreatePolicyRequest request) { + 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.
@@ -527,19 +648,21 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updatePolicy(
-        com.google.iam.v2.UpdatePolicyRequest request) {
+    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) { + 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); } @@ -551,11 +674,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 AsyncService serviceImpl; private final int methodId; @@ -569,23 +692,29 @@ private static final class MethodHandlers implements 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); + 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, + 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, + 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, + 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, + serviceImpl.deletePolicy( + (com.google.iam.v2.DeletePolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -607,45 +736,40 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>( - service, METHODID_LIST_POLICIES))) + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.ListPoliciesRequest, com.google.iam.v2.ListPoliciesResponse>( + service, METHODID_LIST_POLICIES))) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.GetPolicyRequest, - com.google.iam.v2.Policy>( - service, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_POLICY))) .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.CreatePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_POLICY))) + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.CreatePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.UpdatePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.UpdatePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_UPDATE_POLICY))) .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2.DeletePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_POLICY))) + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2.DeletePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_POLICY))) .build(); } - private static abstract class PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PoliciesBaseDescriptorSupplier() {} @java.lang.Override @@ -659,13 +783,11 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class PoliciesFileDescriptorSupplier - extends PoliciesBaseDescriptorSupplier { + private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { PoliciesFileDescriptorSupplier() {} } - private static final class PoliciesMethodDescriptorSupplier - extends PoliciesBaseDescriptorSupplier + private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -687,14 +809,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { 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(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-iam/v2beta/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 similarity index 50% rename from owl-bot-staging/java-iam/v2beta/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java rename to java-iam/grpc-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PoliciesGrpc.java index c8d287cde4..26561fcabd 100644 --- a/owl-bot-staging/java-iam/v2beta/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 @@ -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.v2beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * An interface for managing Identity and Access Management (IAM) policies.
  * 
@@ -18,206 +35,249 @@ 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; + 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 getListPoliciesMethod() { - io.grpc.MethodDescriptor getListPoliciesMethod; + 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(); + 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; + 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 getGetPolicyMethod() { - io.grpc.MethodDescriptor getGetPolicyMethod; + 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(); + 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; + 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 getCreatePolicyMethod() { - io.grpc.MethodDescriptor getCreatePolicyMethod; + 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(); + 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; + 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 getUpdatePolicyMethod() { - io.grpc.MethodDescriptor getUpdatePolicyMethod; + 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(); + 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; + 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 getDeletePolicyMethod() { - io.grpc.MethodDescriptor getDeletePolicyMethod; + 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(); + 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 - */ + /** 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); - } - }; + 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) { + 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); - } - }; + 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) { + /** 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); - } - }; + 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.
    * 
@@ -225,6 +285,8 @@ public PoliciesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions c public interface AsyncService { /** + * + * *
      * Retrieves the policies of the specified kind that are attached to a
      * resource.
@@ -232,32 +294,43 @@ public interface AsyncService {
      * omitted.
      * 
*/ - default void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, + default void listPolicies( + com.google.iam.v2beta.ListPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPoliciesMethod(), responseObserver); } /** + * + * *
      * Gets a policy.
      * 
*/ - default void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, + default void getPolicy( + com.google.iam.v2beta.GetPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** + * + * *
      * Creates a policy.
      * 
*/ - default void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request, + default void createPolicy( + com.google.iam.v2beta.CreatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyMethod(), 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.
@@ -268,56 +341,63 @@ default void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request,
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - default void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, + default void updatePolicy( + com.google.iam.v2beta.UpdatePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); } /** + * + * *
      * Deletes a policy. This action is permanent.
      * 
*/ - default void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, + default void deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Policies. + * *
    * An interface for managing Identity and Access Management (IAM) policies.
    * 
*/ - public static abstract class PoliciesImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class PoliciesImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return PoliciesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -325,35 +405,48 @@ protected PoliciesStub build(
      * omitted.
      * 
*/ - public void listPolicies(com.google.iam.v2beta.ListPoliciesRequest request, + 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); + getChannel().newCall(getListPoliciesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets a policy.
      * 
*/ - public void getPolicy(com.google.iam.v2beta.GetPolicyRequest request, + 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, + 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); + getChannel().newCall(getCreatePolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the specified policy.
      * You can update only the rules and the display name for the policy.
@@ -364,44 +457,53 @@ public void createPolicy(com.google.iam.v2beta.CreatePolicyRequest request,
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public void updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request, + 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); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a policy. This action is permanent.
      * 
*/ - public void deletePolicy(com.google.iam.v2beta.DeletePolicyRequest request, + 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); + getChannel().newCall(getDeletePolicyMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -409,12 +511,15 @@ protected PoliciesBlockingStub build(
      * omitted.
      * 
*/ - public com.google.iam.v2beta.ListPoliciesResponse listPolicies(com.google.iam.v2beta.ListPoliciesRequest request) { + 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.
      * 
@@ -425,16 +530,21 @@ public com.google.iam.v2beta.Policy getPolicy(com.google.iam.v2beta.GetPolicyReq } /** + * + * *
      * Creates a policy.
      * 
*/ - public com.google.longrunning.Operation createPolicy(com.google.iam.v2beta.CreatePolicyRequest request) { + 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.
@@ -445,17 +555,21 @@ public com.google.longrunning.Operation createPolicy(com.google.iam.v2beta.Creat
      * This pattern helps prevent conflicts between concurrent updates.
      * 
*/ - public com.google.longrunning.Operation updatePolicy(com.google.iam.v2beta.UpdatePolicyRequest request) { + 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) { + public com.google.longrunning.Operation deletePolicy( + com.google.iam.v2beta.DeletePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePolicyMethod(), getCallOptions(), request); } @@ -463,24 +577,25 @@ public com.google.longrunning.Operation deletePolicy(com.google.iam.v2beta.Delet /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Policies. + * *
    * 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) { + 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) { + 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.
@@ -488,35 +603,42 @@ protected PoliciesFutureStub build(
      * omitted.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listPolicies( - com.google.iam.v2beta.ListPoliciesRequest request) { + 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) { + 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) { + 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.
@@ -527,19 +649,21 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updatePolicy(
-        com.google.iam.v2beta.UpdatePolicyRequest request) {
+    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) { + 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); } @@ -551,11 +675,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 AsyncService serviceImpl; private final int methodId; @@ -569,23 +693,29 @@ private static final class MethodHandlers implements 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); + 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, + 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, + 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, + 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, + serviceImpl.deletePolicy( + (com.google.iam.v2beta.DeletePolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -607,45 +737,41 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>( - service, METHODID_LIST_POLICIES))) + getListPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.ListPoliciesRequest, + com.google.iam.v2beta.ListPoliciesResponse>(service, METHODID_LIST_POLICIES))) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.GetPolicyRequest, - com.google.iam.v2beta.Policy>( - service, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.GetPolicyRequest, com.google.iam.v2beta.Policy>( + service, METHODID_GET_POLICY))) .addMethod( - getCreatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.CreatePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_POLICY))) + getCreatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.CreatePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.UpdatePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.UpdatePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_UPDATE_POLICY))) .addMethod( - getDeletePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v2beta.DeletePolicyRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_POLICY))) + getDeletePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v2beta.DeletePolicyRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_POLICY))) .build(); } - private static abstract class PoliciesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PoliciesBaseDescriptorSupplier() {} @java.lang.Override @@ -659,13 +785,11 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class PoliciesFileDescriptorSupplier - extends PoliciesBaseDescriptorSupplier { + private static final class PoliciesFileDescriptorSupplier extends PoliciesBaseDescriptorSupplier { PoliciesFileDescriptorSupplier() {} } - private static final class PoliciesMethodDescriptorSupplier - extends PoliciesBaseDescriptorSupplier + private static final class PoliciesMethodDescriptorSupplier extends PoliciesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -687,14 +811,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { 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(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PoliciesFileDescriptorSupplier()) + .addMethod(getListPoliciesMethod()) + .addMethod(getGetPolicyMethod()) + .addMethod(getCreatePolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getDeletePolicyMethod()) + .build(); } } } 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 77% 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 630859296c..3607c266a6 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
@@ -60,15 +77,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();
@@ -76,28 +94,30 @@ private AuditConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfig();
   }
 
-  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`.
@@ -105,6 +125,7 @@ protected java.lang.Object newInstance(
    * 
* * string service = 1; + * * @return The service. */ @java.lang.Override @@ -113,14 +134,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`.
@@ -128,16 +150,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 { @@ -146,9 +167,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.
    * 
@@ -160,6 +184,8 @@ public java.util.List getAuditLogConfigsList() return auditLogConfigs_; } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -167,11 +193,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.
    * 
@@ -183,6 +211,8 @@ public int getAuditLogConfigsCount() { return auditLogConfigs_.size(); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -194,6 +224,8 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { return auditLogConfigs_.get(index); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -201,12 +233,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; @@ -218,8 +250,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_); } @@ -239,8 +270,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; @@ -250,17 +280,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; } @@ -283,99 +311,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
@@ -432,33 +464,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();
@@ -475,8 +504,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;
     }
 
@@ -498,7 +526,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;
     }
@@ -525,7 +555,7 @@ private void buildPartial0(com.google.iam.v1.AuditConfig result) {
     @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;
@@ -557,9 +587,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_);
           }
@@ -591,30 +622,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) {
@@ -624,10 +656,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`.
@@ -635,13 +670,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; @@ -650,6 +685,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -657,15 +694,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 { @@ -673,6 +709,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -680,18 +718,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`.
@@ -699,6 +741,7 @@ public Builder setService(
      * 
* * string service = 1; + * * @return This builder for chaining. */ public Builder clearService() { @@ -708,6 +751,8 @@ public Builder clearService() { return this; } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -715,12 +760,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; @@ -729,18 +776,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.
      * 
@@ -755,6 +809,8 @@ public java.util.List getAuditLogConfigsList() } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -769,6 +825,8 @@ public int getAuditLogConfigsCount() { } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -783,14 +841,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(); @@ -804,6 +863,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -822,6 +883,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -842,14 +905,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(); @@ -863,14 +927,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()); @@ -881,6 +946,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -899,6 +966,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -909,8 +978,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); @@ -918,6 +986,8 @@ public Builder addAllAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -935,6 +1005,8 @@ public Builder clearAuditLogConfigs() { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -952,39 +1024,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 { @@ -992,6 +1069,8 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -999,38 +1078,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(), @@ -1039,9 +1127,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); } @@ -1051,12 +1139,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(); } @@ -1065,27 +1153,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; @@ -1100,6 +1188,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 b08f90ae92..b56b2552e6 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,34 +47,37 @@ private AuditConfigDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfigDelta();
   }
 
-  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.
      * 
@@ -65,6 +86,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -73,6 +96,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -84,6 +109,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -92,6 +119,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -100,6 +129,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -108,7 +139,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -133,49 +163,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; @@ -195,35 +225,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`.
@@ -232,6 +274,7 @@ private Action(int value) {
    * 
* * string service = 2; + * * @return The service. */ @java.lang.Override @@ -240,14 +283,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`.
@@ -256,16 +300,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 { @@ -274,9 +317,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.
@@ -284,6 +330,7 @@ public java.lang.String getService() {
    * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ @java.lang.Override @@ -292,14 +339,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.
@@ -307,16 +355,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 { @@ -325,9 +372,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.
@@ -335,6 +385,7 @@ public java.lang.String getExemptedMember() {
    * 
* * string log_type = 4; + * * @return The logType. */ @java.lang.Override @@ -343,14 +394,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.
@@ -358,16 +410,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 { @@ -376,6 +427,7 @@ public java.lang.String getLogType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,8 +439,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_); } @@ -411,8 +462,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_); @@ -431,7 +481,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); @@ -439,12 +489,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; } @@ -469,99 +516,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.
@@ -569,33 +620,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();
@@ -608,9 +658,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
@@ -630,7 +680,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;
     }
@@ -654,7 +706,7 @@ private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) {
     @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;
@@ -707,32 +759,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) {
@@ -742,28 +799,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. */ @@ -774,26 +839,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. */ @@ -807,12 +879,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() { @@ -824,6 +899,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`.
@@ -832,13 +909,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; @@ -847,6 +924,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -855,15 +934,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 { @@ -871,6 +949,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -879,18 +959,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`.
@@ -899,6 +983,7 @@ public Builder setService(
      * 
* * string service = 2; + * * @return This builder for chaining. */ public Builder clearService() { @@ -908,6 +993,8 @@ public Builder clearService() { return this; } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -916,12 +1003,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; @@ -931,6 +1020,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.
@@ -938,13 +1029,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; @@ -953,6 +1044,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -960,15 +1053,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 { @@ -976,6 +1068,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -983,18 +1077,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.
@@ -1002,6 +1100,7 @@ public Builder setExemptedMember(
      * 
* * string exempted_member = 3; + * * @return This builder for chaining. */ public Builder clearExemptedMember() { @@ -1011,6 +1110,8 @@ public Builder clearExemptedMember() { return this; } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1018,12 +1119,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; @@ -1033,6 +1136,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.
@@ -1040,13 +1145,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; @@ -1055,6 +1160,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1062,15 +1169,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 { @@ -1078,6 +1184,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1085,18 +1193,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.
@@ -1104,6 +1216,7 @@ public Builder setLogType(
      * 
* * string log_type = 4; + * * @return This builder for chaining. */ public Builder clearLogType() { @@ -1113,6 +1226,8 @@ public Builder clearLogType() { return this; } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1120,21 +1235,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); } @@ -1144,12 +1261,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(); } @@ -1158,27 +1275,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; @@ -1193,6 +1310,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 73559b9246..05f9e30d65 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:
@@ -28,42 +45,43 @@
  *
  * 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.emptyList();
+    exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditLogConfig();
   }
 
-  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.
@@ -71,9 +89,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.
      * 
@@ -82,6 +101,8 @@ public enum LogType */ LOG_TYPE_UNSPECIFIED(0), /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -90,6 +111,8 @@ public enum LogType */ ADMIN_READ(1), /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -98,6 +121,8 @@ public enum LogType */ DATA_WRITE(2), /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -109,6 +134,8 @@ public enum LogType ; /** + * + * *
      * Default case. Should never be this.
      * 
@@ -117,6 +144,8 @@ public enum LogType */ public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -125,6 +154,8 @@ public enum LogType */ public static final int ADMIN_READ_VALUE = 1; /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -133,6 +164,8 @@ public enum LogType */ public static final int DATA_WRITE_VALUE = 2; /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -141,7 +174,6 @@ public enum LogType */ public static final int DATA_READ_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,50 +198,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; @@ -229,34 +262,46 @@ 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.LazyStringArrayList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -265,13 +310,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.
@@ -280,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.
@@ -294,6 +344,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. */ @@ -301,6 +352,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.
@@ -309,15 +362,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; @@ -329,8 +383,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_); } @@ -347,8 +400,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; @@ -366,7 +418,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); @@ -374,8 +426,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; } @@ -398,99 +449,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:
@@ -515,46 +570,42 @@ 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();
       bitField0_ = 0;
       logType_ = 0;
-      exemptedMembers_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList();
       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;
     }
 
@@ -575,7 +626,9 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -594,7 +647,7 @@ private void buildPartial0(com.google.iam.v1.AuditLogConfig result) {
     @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;
@@ -642,23 +695,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) {
@@ -668,26 +724,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. */ @@ -698,24 +762,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. */ @@ -729,11 +800,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() { @@ -745,6 +819,7 @@ public Builder clearLogType() { private com.google.protobuf.LazyStringArrayList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExemptedMembersIsMutable() { if (!exemptedMembers_.isModifiable()) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); @@ -752,6 +827,8 @@ private void ensureExemptedMembersIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -760,14 +837,16 @@ 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() { exemptedMembers_.makeImmutable(); return exemptedMembers_; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -776,12 +855,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.
@@ -790,6 +872,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. */ @@ -797,6 +880,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.
@@ -805,14 +890,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.
@@ -821,13 +908,15 @@ 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); bitField0_ |= 0x00000002; @@ -835,6 +924,8 @@ public Builder setExemptedMembers( return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -843,12 +934,14 @@ 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); bitField0_ |= 0x00000002; @@ -856,6 +949,8 @@ public Builder addExemptedMembers( return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -864,19 +959,20 @@ 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -885,16 +981,19 @@ public Builder addAllExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @return This builder for chaining. */ public Builder clearExemptedMembers() { - exemptedMembers_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -903,12 +1002,14 @@ 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); @@ -916,9 +1017,9 @@ public Builder addExemptedMembersBytes( 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 +1029,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(); } @@ -942,27 +1043,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; @@ -977,6 +1078,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 1e0998f377..4025472975 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.
@@ -35,11 +59,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.
@@ -48,10 +74,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.
@@ -60,11 +89,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.
@@ -73,9 +105,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 87% 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 a41b1fc452..3784bda197 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,39 +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/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.emptyList(); + members_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Binding(); } - 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; } @@ -46,15 +61,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 @@ -63,30 +82,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 { @@ -95,10 +114,13 @@ public java.lang.String getRole() { } public static final int MEMBERS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList members_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -145,13 +167,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:
@@ -198,12 +222,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:
@@ -250,6 +277,7 @@ public int getMembersCount() {
    * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -257,6 +285,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:
@@ -303,17 +333,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.
    *
@@ -330,6 +362,7 @@ public java.lang.String getMembers(int index) {
    * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -337,6 +370,8 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
    * The condition that is associated with this binding.
    *
@@ -353,6 +388,7 @@ public boolean hasCondition() {
    * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ @java.lang.Override @@ -360,6 +396,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    *
@@ -383,6 +421,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -394,8 +433,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_);
     }
@@ -426,8 +464,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;
@@ -437,21 +474,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;
@@ -479,111 +513,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; } @@ -596,22 +633,18 @@ 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(); bitField0_ = 0; role_ = ""; - members_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + members_ = com.google.protobuf.LazyStringArrayList.emptyList(); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -621,8 +654,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; } @@ -643,7 +675,9 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -658,16 +692,14 @@ private void buildPartial0(com.google.iam.v1.Binding result) { result.members_ = members_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.condition_ = conditionBuilder_ == null - ? condition_ - : conditionBuilder_.build(); + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); } } @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; @@ -720,30 +752,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) { @@ -753,23 +787,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; @@ -778,21 +815,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 { @@ -800,30 +838,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() { @@ -833,18 +878,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; @@ -854,6 +903,7 @@ public Builder setRoleBytes( private com.google.protobuf.LazyStringArrayList members_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMembersIsMutable() { if (!members_.isModifiable()) { members_ = new com.google.protobuf.LazyStringArrayList(members_); @@ -861,6 +911,8 @@ private void ensureMembersIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -907,14 +959,16 @@ 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() { members_.makeImmutable(); return members_; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -961,12 +1015,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:
@@ -1013,6 +1070,7 @@ public int getMembersCount() {
      * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -1020,6 +1078,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:
@@ -1066,14 +1126,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:
@@ -1120,13 +1182,15 @@ 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); bitField0_ |= 0x00000002; @@ -1134,6 +1198,8 @@ public Builder setMembers( return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1180,12 +1246,14 @@ 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); bitField0_ |= 0x00000002; @@ -1193,6 +1261,8 @@ public Builder addMembers( return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1239,19 +1309,20 @@ 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1298,16 +1369,19 @@ public Builder addAllMembers(
      * 
* * repeated string members = 2; + * * @return This builder for chaining. */ public Builder clearMembers() { - members_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + members_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1354,12 +1428,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); @@ -1370,8 +1446,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.
      *
@@ -1388,12 +1467,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.
      *
@@ -1410,6 +1492,7 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1420,6 +1503,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      *
@@ -1451,6 +1536,8 @@ public Builder setCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      *
@@ -1468,8 +1555,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 {
@@ -1480,6 +1566,8 @@ public Builder setCondition(
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      *
@@ -1499,9 +1587,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;
@@ -1514,6 +1602,8 @@ public Builder mergeCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      *
@@ -1542,6 +1632,8 @@ public Builder clearCondition() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      *
@@ -1565,6 +1657,8 @@ public com.google.type.Expr.Builder getConditionBuilder() {
       return getConditionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      *
@@ -1586,11 +1680,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.
      *
@@ -1609,21 +1704,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);
     }
 
@@ -1633,12 +1727,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();
   }
@@ -1647,27 +1741,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;
@@ -1682,6 +1776,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 74%
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 59c06d4918..49334ca531 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,34 +46,36 @@ private BindingDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
-  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.
      * 
@@ -64,6 +84,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of a Binding.
      * 
@@ -72,6 +94,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of a Binding.
      * 
@@ -83,6 +107,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -91,6 +117,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of a Binding.
      * 
@@ -99,6 +127,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of a Binding.
      * 
@@ -107,7 +137,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -132,49 +161,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; @@ -194,35 +223,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`.
@@ -230,6 +271,7 @@ private Action(int value) {
    * 
* * string role = 2; + * * @return The role. */ @java.lang.Override @@ -238,14 +280,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`.
@@ -253,16 +296,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 { @@ -271,9 +313,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.
@@ -281,6 +326,7 @@ public java.lang.String getRole() {
    * 
* * string member = 3; + * * @return The member. */ @java.lang.Override @@ -289,14 +335,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.
@@ -304,16 +351,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 { @@ -324,11 +370,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 @@ -336,11 +385,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 @@ -348,6 +400,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    * 
@@ -360,6 +414,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,8 +426,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_); } @@ -395,8 +449,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_); @@ -405,8 +458,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; @@ -416,7 +468,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); @@ -424,14 +476,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; @@ -459,99 +508,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.
@@ -559,33 +612,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();
@@ -602,8 +652,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;
     }
 
@@ -624,7 +673,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;
     }
@@ -641,16 +692,14 @@ 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();
       }
     }
 
     @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;
@@ -701,34 +750,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) {
@@ -738,28 +790,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. */ @@ -770,26 +830,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. */ @@ -803,12 +870,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() { @@ -820,6 +890,8 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -827,13 +899,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; @@ -842,6 +914,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -849,15 +923,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 { @@ -865,6 +938,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -872,18 +947,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`.
@@ -891,6 +970,7 @@ public Builder setRole(
      * 
* * string role = 2; + * * @return This builder for chaining. */ public Builder clearRole() { @@ -900,6 +980,8 @@ public Builder clearRole() { return this; } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -907,12 +989,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; @@ -922,6 +1006,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.
@@ -929,13 +1015,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; @@ -944,6 +1030,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -951,15 +1039,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 { @@ -967,6 +1054,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -974,18 +1063,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.
@@ -993,6 +1086,7 @@ public Builder setMember(
      * 
* * string member = 3; + * * @return This builder for chaining. */ public Builder clearMember() { @@ -1002,6 +1096,8 @@ public Builder clearMember() { return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1009,12 +1105,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; @@ -1024,24 +1122,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() { @@ -1052,6 +1157,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1072,14 +1179,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 { @@ -1090,6 +1198,8 @@ public Builder setCondition( return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1098,9 +1208,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; @@ -1113,6 +1223,8 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1130,6 +1242,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1142,6 +1256,8 @@ public com.google.type.Expr.Builder getConditionBuilder() { return getConditionFieldBuilder().getBuilder(); } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1152,11 +1268,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.
      * 
@@ -1164,21 +1281,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); } @@ -1188,12 +1304,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(); } @@ -1202,27 +1318,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; @@ -1237,6 +1353,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 93% 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 3ac54a710c..db97e10030 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:
@@ -76,11 +99,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:
@@ -127,10 +152,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:
@@ -177,11 +205,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:
@@ -228,13 +259,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.
    *
@@ -251,10 +284,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.
    *
@@ -271,10 +307,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.
    *
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 67%
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 13ee76783b..7a3fb09423 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,58 +1,83 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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(); } - 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 @@ -61,30 +86,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 { @@ -95,12 +122,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 @@ -108,12 +138,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 @@ -121,6 +154,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`.
@@ -134,6 +169,7 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -145,8 +181,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_);
     }
@@ -166,8 +201,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;
@@ -177,19 +211,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;
@@ -213,132 +245,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(); @@ -353,9 +388,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 @@ -374,8 +409,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; } @@ -386,16 +424,14 @@ 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(); } } @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; @@ -438,24 +474,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) { @@ -465,23 +502,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; @@ -490,21 +532,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 { @@ -512,30 +557,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() { @@ -545,18 +601,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; @@ -566,36 +628,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`.
@@ -617,6 +692,8 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -624,8 +701,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 {
@@ -636,6 +712,8 @@ public Builder setOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -645,9 +723,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;
@@ -660,6 +738,8 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -678,6 +758,8 @@ public Builder clearOptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -691,6 +773,8 @@ public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() {
       return getOptionsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -702,11 +786,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`.
@@ -715,21 +802,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);
     }
 
@@ -739,12 +829,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();
   }
@@ -753,27 +843,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;
@@ -788,6 +878,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 71%
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 cb198f9a49..b4e03b62c7 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,50 +1,69 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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(); } - 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.
@@ -67,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -75,6 +95,7 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -86,8 +107,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_); } @@ -101,8 +121,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; @@ -112,15 +131,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; } @@ -139,132 +157,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(); @@ -274,9 +295,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 @@ -296,7 +317,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,7 +334,7 @@ private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) { @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; @@ -349,17 +372,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) { @@ -369,10 +394,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.
@@ -395,6 +423,7 @@ public Builder mergeFrom(
      * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -402,6 +431,8 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -424,6 +455,7 @@ public int getRequestedPolicyVersion() {
      * 
* * int32 requested_policy_version = 1; + * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ @@ -435,6 +467,8 @@ public Builder setRequestedPolicyVersion(int value) { return this; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -457,6 +491,7 @@ public Builder setRequestedPolicyVersion(int value) {
      * 
* * int32 requested_policy_version = 1; + * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { @@ -465,9 +500,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); } @@ -477,12 +512,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(); } @@ -491,27 +526,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; @@ -526,6 +561,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 65% 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 e62690d8c3..e93425ad57 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.
@@ -30,6 +48,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..a61d0e275d --- /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\"\221\001\n\023SetIamPolicyRequest\022\034\n" + + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 " + + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda" + + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" + + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001" + + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google" + + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi" + + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003" + + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa" + + "mPermissionsResponse\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.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se" + + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i" + + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" + + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI" + + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo" + + "gle.iam.v1.TestIamPermissionsRequest\032).g" + + "oogle.iam.v1.TestIamPermissionsResponse\"" + + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis" + + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com" + + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z" + + ")cloud.google.com/go/iam/apiv1/iampb;iam" + + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo" + + "ud\\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..9f6acfc563 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/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}\n\021com.google.iam.v1B" + + "\014OptionsProtoP\001Z)cloud.google.com/go/iam" + + "/apiv1/iampb;iampb\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[] {}); + 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 85% 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 7d7ec39f85..07c896a20e 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.
@@ -78,15 +95,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();
@@ -95,13 +113,11 @@ private Policy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Policy();
   }
 
-  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;
   }
 
@@ -116,6 +132,8 @@ protected java.lang.Object newInstance(
   public static final int VERSION_FIELD_NUMBER = 1;
   private int version_ = 0;
   /**
+   *
+   *
    * 
    * Specifies the format of the policy.
    *
@@ -145,6 +163,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -153,9 +172,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
@@ -176,6 +198,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
@@ -192,11 +216,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
@@ -217,6 +242,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
@@ -237,6 +264,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
@@ -253,15 +282,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.
    * 
@@ -273,6 +304,8 @@ public java.util.List getAuditConfigsList() { return auditConfigs_; } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -280,11 +313,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.
    * 
@@ -296,6 +331,8 @@ public int getAuditConfigsCount() { return auditConfigs_.size(); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -307,6 +344,8 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { return auditConfigs_.get(index); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -314,14 +353,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.
@@ -338,6 +378,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(
    * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -346,6 +387,7 @@ public com.google.protobuf.ByteString getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,8 +399,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_); } @@ -381,20 +422,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; @@ -404,21 +441,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; } @@ -447,99 +480,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.
@@ -614,12 +651,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;
     }
 
@@ -632,15 +668,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();
@@ -665,8 +698,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;
     }
 
@@ -688,7 +720,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;
     }
@@ -727,7 +761,7 @@ private void buildPartial0(com.google.iam.v1.Policy result) {
     @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;
@@ -757,9 +791,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_);
           }
@@ -783,9 +818,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_);
           }
@@ -820,48 +856,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) {
@@ -871,10 +908,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int version_ ;
+    private int version_;
     /**
+     *
+     *
      * 
      * Specifies the format of the policy.
      *
@@ -904,6 +944,7 @@ public Builder mergeFrom(
      * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -911,6 +952,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Specifies the format of the policy.
      *
@@ -940,6 +983,7 @@ public int getVersion() {
      * 
* * int32 version = 1; + * * @param value The version to set. * @return This builder for chaining. */ @@ -951,6 +995,8 @@ public Builder setVersion(int value) { return this; } /** + * + * *
      * Specifies the format of the policy.
      *
@@ -980,6 +1026,7 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -989,19 +1036,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
@@ -1025,6 +1077,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
@@ -1048,6 +1102,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
@@ -1071,6 +1127,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
@@ -1086,8 +1144,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();
@@ -1101,6 +1158,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
@@ -1116,8 +1175,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());
@@ -1128,6 +1186,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
@@ -1157,6 +1217,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
@@ -1172,8 +1234,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();
@@ -1187,6 +1248,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
@@ -1202,8 +1265,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());
@@ -1214,6 +1276,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
@@ -1229,8 +1293,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());
@@ -1241,6 +1304,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
@@ -1256,12 +1321,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);
@@ -1269,6 +1332,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
@@ -1295,6 +1360,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
@@ -1321,6 +1388,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
@@ -1336,11 +1405,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
@@ -1356,14 +1426,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
@@ -1379,8 +1451,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 {
@@ -1388,6 +1459,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
@@ -1404,10 +1477,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
@@ -1423,12 +1497,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
@@ -1444,38 +1519,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.
      * 
@@ -1490,6 +1573,8 @@ public java.util.List getAuditConfigsList() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1504,6 +1589,8 @@ public int getAuditConfigsCount() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1518,14 +1605,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(); @@ -1539,6 +1627,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1557,6 +1647,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1577,14 +1669,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(); @@ -1598,14 +1691,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()); @@ -1616,6 +1710,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1634,6 +1730,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1644,8 +1742,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); @@ -1653,6 +1750,8 @@ public Builder addAllAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1670,6 +1769,8 @@ public Builder clearAuditConfigs() { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1687,39 +1788,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 { @@ -1727,6 +1833,8 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1734,42 +1842,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_; @@ -1777,6 +1890,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.
@@ -1793,6 +1908,7 @@ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(
      * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -1800,6 +1916,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.
@@ -1816,17 +1934,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.
@@ -1843,6 +1966,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * 
* * bytes etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1851,9 +1975,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); } @@ -1863,12 +1987,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(); } @@ -1877,27 +2001,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; @@ -1912,6 +2036,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 77% 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 48a57bd0c5..167801f546 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,28 +44,30 @@ private PolicyDelta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyDelta(); } - 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.
    * 
@@ -59,6 +79,8 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -66,11 +88,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.
    * 
@@ -82,6 +106,8 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -93,6 +119,8 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -100,15 +128,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.
    * 
@@ -120,6 +150,8 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -127,11 +159,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.
    * 
@@ -143,6 +177,8 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -154,6 +190,8 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -161,12 +199,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; @@ -178,8 +216,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)); } @@ -196,12 +233,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; @@ -211,17 +247,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; } @@ -246,132 +280,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(); @@ -394,8 +429,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; } @@ -417,7 +451,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; } @@ -450,7 +486,7 @@ private void buildPartial0(com.google.iam.v1.PolicyDelta result) { @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; @@ -477,9 +513,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_); } @@ -503,9 +540,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_); } @@ -537,38 +575,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) { @@ -578,21 +616,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.
      * 
@@ -607,6 +652,8 @@ public java.util.List getBindingDeltasList() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -621,6 +668,8 @@ public int getBindingDeltasCount() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -635,14 +684,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(); @@ -656,6 +706,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -674,6 +726,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -694,14 +748,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(); @@ -715,14 +770,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()); @@ -733,6 +789,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -751,6 +809,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -761,8 +821,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); @@ -770,6 +829,8 @@ public Builder addAllBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -787,6 +848,8 @@ public Builder clearBindingDeltas() { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -804,39 +867,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 { @@ -844,6 +912,8 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -851,38 +921,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(), @@ -893,18 +971,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.
      * 
@@ -919,6 +1004,8 @@ public java.util.List getAuditConfigDeltasLi } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -933,6 +1020,8 @@ public int getAuditConfigDeltasCount() { } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -947,14 +1036,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(); @@ -968,6 +1058,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -986,6 +1078,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1006,14 +1100,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(); @@ -1027,6 +1122,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1045,6 +1142,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1063,6 +1162,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1073,8 +1174,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); @@ -1082,6 +1182,8 @@ public Builder addAllAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1099,6 +1201,8 @@ public Builder clearAuditConfigDeltas() { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1116,39 +1220,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 { @@ -1156,6 +1265,8 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1163,38 +1274,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(), @@ -1203,9 +1323,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); } @@ -1215,12 +1335,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(); } @@ -1229,27 +1349,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; @@ -1264,6 +1384,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 87% 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 69ee225b2a..2039d3792a 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.
    *
@@ -37,11 +55,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
@@ -57,9 +78,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
@@ -77,6 +99,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
@@ -94,6 +118,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
@@ -109,9 +135,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
@@ -127,19 +154,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.
    * 
@@ -148,6 +177,8 @@ com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( */ com.google.iam.v1.AuditConfig getAuditConfigs(int index); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -156,25 +187,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.
@@ -191,6 +226,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..13ad10267e --- /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|\n\021com" + + ".google.iam.v1B\013PolicyProtoP\001Z)cloud.goo" + + "gle.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Go" + + "ogle.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 73% 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 fcfaf3f91f..7790e2c1c3 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,58 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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(); } - 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 @@ -61,30 +86,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 { @@ -95,6 +122,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
@@ -103,6 +132,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 @@ -110,6 +140,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
@@ -118,6 +150,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -125,6 +158,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
@@ -142,6 +177,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
@@ -151,6 +188,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -158,6 +196,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
@@ -167,6 +207,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -174,6 +215,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
@@ -190,6 +233,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -201,8 +245,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_);
     }
@@ -225,12 +268,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;
@@ -240,24 +281,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;
@@ -285,132 +323,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 +471,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 +492,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,21 +507,17 @@ 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(); } } @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; @@ -523,31 +563,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) { @@ -557,23 +597,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; @@ -582,21 +627,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 { @@ -604,30 +652,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() { @@ -637,18 +696,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; @@ -658,8 +723,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
@@ -668,12 +738,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
@@ -682,6 +755,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() { @@ -692,6 +766,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
@@ -715,6 +791,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
@@ -724,8 +802,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 {
@@ -736,6 +813,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
@@ -747,9 +826,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;
@@ -762,6 +841,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
@@ -782,6 +863,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
@@ -797,6 +880,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
@@ -810,11 +895,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
@@ -825,14 +911,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_;
@@ -840,8 +928,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
@@ -851,12 +944,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
@@ -866,16 +962,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
@@ -900,6 +1001,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
@@ -910,8 +1013,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 {
@@ -922,6 +1024,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
@@ -934,9 +1038,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;
@@ -949,6 +1053,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
@@ -970,6 +1076,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
@@ -986,6 +1094,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
@@ -1000,11 +1110,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
@@ -1016,21 +1129,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);
     }
 
@@ -1040,12 +1156,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();
   }
@@ -1054,27 +1170,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;
@@ -1089,6 +1205,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 bf302fa6de..b7c42c8855 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
@@ -75,10 +110,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
@@ -88,10 +126,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 d911347237..4393be5528 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,60 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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.emptyList(); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } - 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 @@ -63,30 +87,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 { @@ -95,10 +121,13 @@ public java.lang.String getResource() { } public static final int PERMISSIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -107,13 +136,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
@@ -122,12 +153,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
@@ -136,6 +170,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. */ @@ -143,6 +178,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
@@ -151,15 +188,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; @@ -171,8 +209,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_); } @@ -207,17 +244,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; } @@ -240,146 +276,149 @@ 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(); bitField0_ = 0; resource_ = ""; - permissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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 @@ -398,8 +437,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v1.TestIamPermissionsRequest result = + new com.google.iam.v1.TestIamPermissionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -418,7 +460,7 @@ private void buildPartial0(com.google.iam.v1.TestIamPermissionsRequest result) { @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; @@ -468,23 +510,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) { @@ -494,23 +539,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; @@ -519,21 +569,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 { @@ -541,30 +594,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() { @@ -574,18 +638,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; @@ -595,6 +665,7 @@ public Builder setResourceBytes( private com.google.protobuf.LazyStringArrayList permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePermissionsIsMutable() { if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); @@ -602,6 +673,8 @@ private void ensurePermissionsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -610,14 +683,16 @@ 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() { permissions_.makeImmutable(); return permissions_; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -626,12 +701,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
@@ -640,6 +718,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. */ @@ -647,6 +726,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
@@ -655,14 +736,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
@@ -671,13 +754,15 @@ 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); bitField0_ |= 0x00000002; @@ -685,6 +770,8 @@ public Builder setPermissions( return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -693,12 +780,14 @@ 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); bitField0_ |= 0x00000002; @@ -706,6 +795,8 @@ public Builder addPermissions( return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -714,19 +805,20 @@ 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_); 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
@@ -735,16 +827,19 @@ public Builder addAllPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPermissions() { - permissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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
@@ -753,12 +848,14 @@ 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); @@ -766,9 +863,9 @@ public Builder addPermissionsBytes( 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); } @@ -778,12 +875,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(); } @@ -792,27 +889,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; @@ -827,6 +924,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 bd8e73c2b4..4eb8379bbd 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,85 +1,112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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.emptyList(); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } - 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.LazyStringArrayList permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -87,21 +114,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; @@ -113,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 { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -143,15 +172,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; } @@ -172,145 +201,148 @@ 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(); bitField0_ = 0; - permissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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 @@ -329,8 +361,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.iam.v1.TestIamPermissionsResponse result = + new com.google.iam.v1.TestIamPermissionsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,7 +381,7 @@ private void buildPartial0(com.google.iam.v1.TestIamPermissionsResponse result) @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; @@ -391,18 +426,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) { @@ -412,10 +449,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePermissionsIsMutable() { if (!permissions_.isModifiable()) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); @@ -423,38 +462,46 @@ private void ensurePermissionsIsMutable() { 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() { permissions_.makeImmutable(); 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. */ @@ -462,33 +509,39 @@ 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); bitField0_ |= 0x00000001; @@ -496,18 +549,22 @@ public Builder setPermissions( 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); bitField0_ |= 0x00000001; @@ -515,53 +572,61 @@ public Builder addPermissions( 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_); bitField0_ |= 0x00000001; 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() { - permissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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); @@ -569,9 +634,9 @@ public Builder addPermissionsBytes( 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); } @@ -581,12 +646,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(); } @@ -595,27 +660,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; @@ -630,6 +695,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 75% 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 5356cfee2c..038188c87f 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,28 +44,32 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } - 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`
@@ -63,6 +85,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -71,14 +94,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`
@@ -94,16 +118,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 { @@ -114,11 +137,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 @@ -126,11 +152,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 @@ -138,6 +167,8 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to create.
    * 
@@ -150,9 +181,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
@@ -161,6 +195,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; + * * @return The policyId. */ @java.lang.Override @@ -169,14 +204,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
@@ -185,16 +221,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 { @@ -203,6 +238,7 @@ public java.lang.String getPolicyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +250,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_); } @@ -238,8 +273,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_); @@ -252,22 +286,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; } @@ -292,132 +323,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(); @@ -433,9 +467,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 @@ -454,8 +488,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; } @@ -466,9 +503,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_; @@ -478,7 +513,7 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { @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; @@ -526,29 +561,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) { @@ -558,10 +595,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`
@@ -577,13 +617,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; @@ -592,6 +632,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`
@@ -607,15 +649,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 { @@ -623,6 +664,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`
@@ -638,18 +681,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`
@@ -665,6 +712,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -674,6 +722,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`
@@ -689,12 +739,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; @@ -704,24 +756,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() { @@ -732,6 +793,8 @@ public com.google.iam.v2.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -752,14 +815,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 { @@ -770,6 +834,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -778,9 +844,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; @@ -793,6 +859,8 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -810,6 +878,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -822,6 +892,8 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The policy to create.
      * 
@@ -832,11 +904,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.
      * 
@@ -844,14 +917,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_; @@ -859,6 +934,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
@@ -867,13 +944,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; @@ -882,6 +959,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
@@ -890,15 +969,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 { @@ -906,6 +984,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
@@ -914,18 +994,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
@@ -934,6 +1018,7 @@ public Builder setPolicyId(
      * 
* * string policy_id = 3; + * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -943,6 +1028,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
@@ -951,21 +1038,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); } @@ -975,12 +1064,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(); } @@ -989,27 +1078,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; @@ -1024,6 +1113,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 a7c565ba81..750931920c 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`
@@ -23,10 +41,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`
@@ -42,30 +63,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.
    * 
@@ -75,6 +104,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
@@ -83,10 +114,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
@@ -95,8 +129,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 74% 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 1418885276..0c0b229bf6 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,28 +44,32 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } - 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}`
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -70,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 delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -92,16 +116,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 { @@ -110,9 +133,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
@@ -123,6 +149,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -131,14 +158,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
@@ -149,16 +177,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 { @@ -167,6 +194,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +206,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_); } @@ -209,17 +236,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; } @@ -240,132 +265,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(); @@ -376,9 +404,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 @@ -397,8 +425,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; } @@ -416,7 +447,7 @@ private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) { @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; @@ -461,22 +492,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) { @@ -486,10 +520,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}`
@@ -504,13 +541,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; @@ -519,6 +556,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -533,15 +572,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 { @@ -549,6 +587,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -563,18 +603,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}`
@@ -589,6 +633,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -598,6 +643,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -612,12 +659,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; @@ -627,6 +676,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
@@ -637,13 +688,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; @@ -652,6 +703,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
@@ -662,15 +715,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 { @@ -678,6 +730,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
@@ -688,18 +742,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - 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
@@ -710,6 +768,7 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -719,6 +778,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
@@ -729,21 +790,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); } @@ -753,12 +816,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(); } @@ -767,27 +830,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; @@ -802,6 +865,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 63cd8d8501..16a7afe664 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}`
@@ -22,10 +40,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}`
@@ -40,12 +61,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
@@ -56,10 +79,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
@@ -70,8 +96,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 86% 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 c9ee472c5f..be4c9b2f25 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,44 +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/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.emptyList(); - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } - 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; } @@ -51,10 +63,13 @@ protected java.lang.Object newInstance( } public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -99,13 +114,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:
@@ -150,12 +167,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:
@@ -200,6 +220,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. */ @@ -207,6 +228,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:
@@ -251,19 +274,22 @@ 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.LazyStringArrayList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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
@@ -276,13 +302,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
@@ -295,12 +323,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
@@ -313,6 +344,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. */ @@ -320,6 +352,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
@@ -332,19 +366,22 @@ 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.LazyStringArrayList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -353,13 +390,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}`
@@ -368,12 +407,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}`
@@ -382,6 +424,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. */ @@ -389,6 +432,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}`
@@ -397,19 +442,22 @@ 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.LazyStringArrayList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -421,13 +469,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
@@ -439,12 +489,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
@@ -456,6 +509,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. */ @@ -463,6 +517,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
@@ -474,17 +530,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
@@ -500,6 +558,7 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -507,6 +566,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
@@ -522,6 +583,7 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ @java.lang.Override @@ -529,6 +591,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
@@ -551,6 +615,7 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -562,8 +627,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));
     }
@@ -574,7 +638,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());
@@ -621,8 +686,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;
@@ -632,25 +696,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;
@@ -688,144 +747,141 @@ 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(); bitField0_ = 0; - deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -835,8 +891,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; } @@ -857,7 +912,9 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -881,16 +938,15 @@ private void buildPartial0(com.google.iam.v2.DenyRule result) { result.exceptionPermissions_ = exceptionPermissions_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.denialCondition_ = denialConditionBuilder_ == null - ? denialCondition_ - : denialConditionBuilder_.build(); + result.denialCondition_ = + denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } @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; @@ -968,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) { @@ -1014,10 +1074,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDeniedPrincipalsIsMutable() { if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); @@ -1025,6 +1087,8 @@ private void ensureDeniedPrincipalsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1069,14 +1133,16 @@ 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() { deniedPrincipals_.makeImmutable(); return deniedPrincipals_; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1121,12 +1187,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:
@@ -1171,6 +1240,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. */ @@ -1178,6 +1248,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:
@@ -1222,14 +1294,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:
@@ -1274,13 +1348,15 @@ 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); bitField0_ |= 0x00000001; @@ -1288,6 +1364,8 @@ public Builder setDeniedPrincipals( return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1332,12 +1410,14 @@ 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); bitField0_ |= 0x00000001; @@ -1345,6 +1425,8 @@ public Builder addDeniedPrincipals( return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1389,19 +1471,20 @@ 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_); bitField0_ |= 0x00000001; 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:
@@ -1446,16 +1529,19 @@ public Builder addAllDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { - deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; 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:
@@ -1500,12 +1586,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); @@ -1516,6 +1604,7 @@ public Builder addDeniedPrincipalsBytes( private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExceptionPrincipalsIsMutable() { if (!exceptionPrincipals_.isModifiable()) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); @@ -1523,6 +1612,8 @@ private void ensureExceptionPrincipalsIsMutable() { 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
@@ -1535,14 +1626,16 @@ 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() { exceptionPrincipals_.makeImmutable(); 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
@@ -1555,12 +1648,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
@@ -1573,6 +1669,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. */ @@ -1580,6 +1677,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
@@ -1592,14 +1691,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
@@ -1612,13 +1713,15 @@ 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); bitField0_ |= 0x00000002; @@ -1626,6 +1729,8 @@ public Builder setExceptionPrincipals( 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
@@ -1638,12 +1743,14 @@ 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); bitField0_ |= 0x00000002; @@ -1651,6 +1758,8 @@ public Builder addExceptionPrincipals( 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
@@ -1663,19 +1772,20 @@ 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_); bitField0_ |= 0x00000002; 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
@@ -1688,16 +1798,19 @@ public Builder addAllExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; 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
@@ -1710,12 +1823,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); @@ -1726,6 +1841,7 @@ public Builder addExceptionPrincipalsBytes( private com.google.protobuf.LazyStringArrayList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDeniedPermissionsIsMutable() { if (!deniedPermissions_.isModifiable()) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); @@ -1733,6 +1849,8 @@ private void ensureDeniedPermissionsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1741,14 +1859,16 @@ 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() { deniedPermissions_.makeImmutable(); return deniedPermissions_; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1757,12 +1877,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}`
@@ -1771,6 +1894,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. */ @@ -1778,6 +1902,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}`
@@ -1786,14 +1912,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}`
@@ -1802,13 +1930,15 @@ 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); bitField0_ |= 0x00000004; @@ -1816,6 +1946,8 @@ public Builder setDeniedPermissions( return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1824,12 +1956,14 @@ 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); bitField0_ |= 0x00000004; @@ -1837,6 +1971,8 @@ public Builder addDeniedPermissions( return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1845,19 +1981,20 @@ 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1866,16 +2003,19 @@ public Builder addAllDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1884,12 +2024,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); @@ -1900,6 +2042,7 @@ public Builder addDeniedPermissionsBytes( private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExceptionPermissionsIsMutable() { if (!exceptionPermissions_.isModifiable()) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); @@ -1907,6 +2050,8 @@ private void ensureExceptionPermissionsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1918,14 +2063,16 @@ 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() { exceptionPermissions_.makeImmutable(); return exceptionPermissions_; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1937,12 +2084,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
@@ -1954,6 +2104,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. */ @@ -1961,6 +2112,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
@@ -1972,14 +2125,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
@@ -1991,13 +2146,15 @@ 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); bitField0_ |= 0x00000008; @@ -2005,6 +2162,8 @@ public Builder setExceptionPermissions( return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2016,12 +2175,14 @@ 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); bitField0_ |= 0x00000008; @@ -2029,6 +2190,8 @@ public Builder addExceptionPermissions( return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2040,19 +2203,20 @@ 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_); bitField0_ |= 0x00000008; 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
@@ -2064,16 +2228,19 @@ public Builder addAllExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; 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
@@ -2085,12 +2252,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); @@ -2101,8 +2270,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
@@ -2118,12 +2290,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
@@ -2139,16 +2314,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
@@ -2179,6 +2359,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
@@ -2195,8 +2377,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 {
@@ -2207,6 +2388,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
@@ -2225,9 +2408,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;
@@ -2240,6 +2423,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
@@ -2267,6 +2452,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
@@ -2289,6 +2476,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
@@ -2309,11 +2498,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
@@ -2331,21 +2523,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);
     }
 
@@ -2355,12 +2546,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();
   }
@@ -2369,27 +2560,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;
@@ -2404,6 +2595,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 8fd6ae0cb1..cb8dd9758c 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:
@@ -52,11 +70,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:
@@ -101,10 +121,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:
@@ -149,11 +172,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:
@@ -198,13 +224,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
@@ -217,11 +245,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
@@ -234,10 +264,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
@@ -250,11 +283,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
@@ -267,13 +303,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}`
@@ -282,11 +320,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}`
@@ -295,10 +335,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}`
@@ -307,11 +350,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}`
@@ -320,13 +366,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
@@ -338,11 +386,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
@@ -354,10 +404,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
@@ -369,11 +422,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
@@ -385,13 +441,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
@@ -407,10 +465,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
@@ -426,10 +487,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..fbe8dc3714
--- /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"
+          + "{\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z)c"
+          + "loud.google.com/go/iam/apiv2/iampb;iampb"
+          + "\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\Cloud\\Ia"
+          + "m\\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 72%
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 6d85260fa9..1f51e3a3e6 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,52 +1,73 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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(); } - 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}`
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -69,14 +91,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}`
@@ -91,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 { @@ -109,6 +131,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,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_); } @@ -145,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.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; } @@ -172,132 +193,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(); @@ -307,9 +331,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 @@ -329,7 +353,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; } @@ -344,7 +370,7 @@ private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) { @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; @@ -384,17 +410,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) { @@ -404,10 +432,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}`
@@ -422,13 +453,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; @@ -437,6 +468,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -451,15 +484,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 { @@ -467,6 +499,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -481,18 +515,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}`
@@ -507,6 +545,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -516,6 +555,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -530,21 +571,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); } @@ -554,12 +597,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(); } @@ -568,27 +611,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; @@ -603,6 +646,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 69% 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 b9a50ee567..4756f85ed0 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}`
@@ -22,10 +40,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}`
@@ -40,8 +61,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 74% 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 86ee088ef7..053058d820 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,28 +44,32 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } - 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:
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -72,14 +95,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:
@@ -96,16 +120,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 { @@ -116,12 +139,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 @@ -130,15 +156,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 @@ -147,30 +177,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 { @@ -179,6 +209,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -214,8 +244,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_); @@ -228,19 +257,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; } @@ -263,132 +289,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(); @@ -400,9 +429,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 @@ -421,8 +450,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; } @@ -443,7 +475,7 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) { @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; @@ -491,27 +523,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) { @@ -521,10 +557,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:
@@ -541,13 +580,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; @@ -556,6 +595,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -572,15 +613,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 { @@ -588,6 +628,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -604,18 +646,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:
@@ -632,6 +678,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -641,6 +688,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -657,12 +706,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; @@ -670,14 +721,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 @@ -685,12 +739,15 @@ 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. */ @@ -702,12 +759,15 @@ public Builder setPageSize(int value) { 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() { @@ -719,19 +779,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; @@ -740,21 +802,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 { @@ -762,30 +825,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() { @@ -795,27 +865,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); } @@ -825,12 +899,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(); } @@ -839,27 +913,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; @@ -874,6 +948,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 cf55477798..45bde87af8 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:
@@ -24,10 +42,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:
@@ -44,41 +65,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 d94832d437..0003d236d0 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,28 +44,32 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } - 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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getPoliciesList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +107,8 @@ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -93,6 +120,8 @@ public com.google.iam.v2.Policy getPolicies(int index) { return policies_.get(index); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -100,21 +129,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 @@ -123,30 +155,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 { @@ -155,6 +187,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +199,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)); } @@ -184,8 +216,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_); @@ -198,17 +229,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; } @@ -231,132 +260,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(); @@ -373,9 +406,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 @@ -394,9 +427,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; } @@ -423,7 +459,7 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) { @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; @@ -450,9 +486,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_); } @@ -489,30 +526,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) { @@ -522,21 +560,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.
      * 
@@ -551,6 +595,8 @@ public java.util.List getPoliciesList() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -565,6 +611,8 @@ public int getPoliciesCount() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -579,14 +627,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(); @@ -600,14 +649,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()); @@ -618,6 +668,8 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -638,14 +690,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(); @@ -659,14 +712,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()); @@ -677,14 +731,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()); @@ -695,18 +750,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); @@ -714,6 +769,8 @@ public Builder addAllPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -731,6 +788,8 @@ public Builder clearPolicies() { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -748,39 +807,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 { @@ -788,6 +851,8 @@ public com.google.iam.v2.PolicyOrBuilder getPoliciesOrBuilder( } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -795,42 +860,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_; @@ -838,19 +907,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; @@ -859,21 +930,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 { @@ -881,30 +953,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() { @@ -914,27 +993,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); } @@ -944,12 +1027,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(); } @@ -958,27 +1041,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; @@ -993,6 +1076,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 a3505b0cc1..7b4e45d901 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,28 +49,25 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } - 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() { @@ -62,9 +77,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}`
@@ -81,6 +99,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -89,14 +108,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}`
@@ -113,16 +133,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 { @@ -131,15 +150,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 @@ -148,30 +171,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 { @@ -180,14 +203,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 @@ -196,29 +223,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 { @@ -227,15 +254,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 @@ -244,30 +275,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 { @@ -276,32 +307,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.
@@ -310,20 +344,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.
@@ -336,6 +371,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.
@@ -344,17 +381,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.
@@ -363,11 +402,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();
     }
@@ -375,9 +414,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
@@ -388,6 +430,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ @java.lang.Override @@ -396,14 +439,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
@@ -414,16 +458,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 { @@ -434,11 +477,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 @@ -446,11 +493,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 @@ -458,11 +509,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() { @@ -472,11 +526,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 @@ -484,11 +542,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 @@ -496,11 +558,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() { @@ -510,11 +575,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 @@ -522,11 +591,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 @@ -534,11 +607,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() { @@ -546,9 +622,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`.
@@ -561,6 +640,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`.
@@ -569,11 +650,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`.
@@ -586,6 +668,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`.
@@ -598,6 +682,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`.
@@ -606,21 +692,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 @@ -629,30 +718,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 { @@ -661,6 +750,7 @@ public java.lang.String getManagingAuthority() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -672,8 +762,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_); } @@ -686,12 +775,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_); } @@ -731,34 +816,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_); @@ -771,44 +852,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; } @@ -857,136 +927,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() { @@ -996,15 +1067,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(); @@ -1042,8 +1110,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; } @@ -1065,7 +1132,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; } @@ -1104,19 +1173,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_; @@ -1126,7 +1189,7 @@ private void buildPartial0(com.google.iam.v2.Policy result) { @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; @@ -1155,8 +1218,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_; @@ -1190,9 +1252,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_); } @@ -1229,85 +1292,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) { @@ -1317,10 +1386,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}`
@@ -1337,13 +1409,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; @@ -1352,6 +1424,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1368,15 +1442,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 { @@ -1384,6 +1457,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1400,18 +1475,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}`
@@ -1428,6 +1507,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1437,6 +1517,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1453,12 +1535,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; @@ -1468,19 +1552,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; @@ -1489,21 +1575,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 { @@ -1511,30 +1598,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() { @@ -1544,18 +1638,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; @@ -1565,18 +1663,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; @@ -1585,20 +1685,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 { @@ -1606,28 +1707,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() { @@ -1637,17 +1745,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; @@ -1657,19 +1769,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; @@ -1678,21 +1792,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 { @@ -1700,30 +1815,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() { @@ -1733,18 +1855,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; @@ -1752,8 +1878,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) { @@ -1762,11 +1888,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(); @@ -1775,10 +1902,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.
@@ -1787,20 +1917,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.
@@ -1813,6 +1944,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.
@@ -1821,17 +1954,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.
@@ -1840,23 +1975,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.
@@ -1864,23 +2001,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.
@@ -1888,17 +2024,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.
@@ -1906,16 +2045,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
@@ -1926,13 +2065,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; @@ -1941,6 +2080,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
@@ -1951,15 +2092,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 { @@ -1967,6 +2107,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
@@ -1977,18 +2119,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
@@ -1999,6 +2145,7 @@ public Builder setEtag(
      * 
* * string etag = 6; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2008,6 +2155,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
@@ -2018,12 +2167,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; @@ -2033,39 +2184,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) { @@ -2081,14 +2251,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 { @@ -2099,17 +2272,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; @@ -2122,11 +2299,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); @@ -2139,11 +2320,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; @@ -2151,36 +2336,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_; @@ -2188,39 +2385,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) { @@ -2236,14 +2452,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 { @@ -2254,17 +2473,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; @@ -2277,11 +2500,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); @@ -2294,11 +2521,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; @@ -2306,36 +2537,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_; @@ -2343,39 +2586,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) { @@ -2391,14 +2653,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 { @@ -2409,17 +2674,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; @@ -2432,11 +2701,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); @@ -2449,11 +2722,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; @@ -2461,54 +2738,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`.
@@ -2524,6 +2818,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`.
@@ -2539,6 +2835,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`.
@@ -2554,6 +2852,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`.
@@ -2561,8 +2861,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();
@@ -2576,6 +2875,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`.
@@ -2583,8 +2884,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());
@@ -2595,6 +2895,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`.
@@ -2616,6 +2918,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`.
@@ -2623,8 +2927,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();
@@ -2638,6 +2941,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`.
@@ -2645,8 +2950,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());
@@ -2657,6 +2961,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`.
@@ -2664,8 +2970,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());
@@ -2676,6 +2981,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`.
@@ -2683,12 +2990,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);
@@ -2696,6 +3001,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`.
@@ -2714,6 +3021,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`.
@@ -2732,6 +3041,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`.
@@ -2739,11 +3050,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`.
@@ -2751,14 +3063,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`.
@@ -2766,8 +3080,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 {
@@ -2775,6 +3088,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`.
@@ -2783,10 +3098,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`.
@@ -2794,12 +3110,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`.
@@ -2807,20 +3124,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_;
@@ -2828,19 +3147,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; @@ -2849,21 +3170,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 { @@ -2871,30 +3193,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() { @@ -2904,27 +3233,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); } @@ -2934,12 +3267,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(); } @@ -2948,27 +3281,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; @@ -2983,6 +3316,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 67% 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 ea211c0c03..ba3e43f112 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,55 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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(); } - 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 @@ -57,11 +78,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 @@ -69,6 +93,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -81,6 +107,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,8 +119,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()); } @@ -107,8 +133,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; @@ -118,17 +143,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; @@ -150,132 +175,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(); @@ -289,9 +318,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 @@ -310,8 +339,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; } @@ -319,16 +351,14 @@ 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(); } } @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; @@ -366,19 +396,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) { @@ -388,38 +418,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.
      * 
@@ -440,14 +484,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 { @@ -458,6 +503,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -466,9 +513,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; @@ -481,6 +528,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -498,6 +547,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -510,6 +561,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -520,11 +573,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.
      * 
@@ -532,21 +588,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); } @@ -556,12 +615,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(); } @@ -570,27 +629,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; @@ -605,6 +664,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 2ad20f56d4..8e87db6374 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}`
@@ -24,10 +42,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}`
@@ -44,76 +65,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.
@@ -123,6 +161,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.
@@ -130,15 +170,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.
@@ -146,9 +184,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.
@@ -157,11 +196,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.
@@ -169,10 +210,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
@@ -183,10 +225,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
@@ -197,93 +242,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`.
@@ -291,9 +371,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`.
@@ -303,6 +384,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`.
@@ -312,6 +395,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`.
@@ -319,9 +404,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`.
@@ -329,28 +415,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..e8933f1a0c --- /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\"\311\003\n\006Policy\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" + + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" + + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" + + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" + + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" + + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" + + "nnotationsEntry\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(\013" + + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" + + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" + + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" + + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" + + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" + + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" + + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" + + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" + + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" + + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" + + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" + + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" + + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp2\320\006\n\010Policies\022" + + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" + + "iciesRequest\032#.google.iam.v2.ListPolicie" + + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" + + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." + + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" + + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" + + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" + + "eatePolicyRequest\032\035.google.longrunning.O" + + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" + + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" + + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" + + "datePolicy\022\".google.iam.v2.UpdatePolicyR" + + "equest\032\035.google.longrunning.Operation\"T\312" + + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" + + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" + + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" + + "etePolicyRequest\032\035.google.longrunning.Op" + + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" + + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" + + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBy\n" + + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" + + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" + + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.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 71% 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 325eda103f..8de7d2eb9b 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,37 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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(); } - 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; } @@ -44,14 +60,18 @@ protected java.lang.Object newInstance( } private int kindCase_ = 0; + @SuppressWarnings("serial") 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; } @@ -67,29 +87,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 @@ -97,21 +122,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.
    * 
@@ -121,21 +151,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 @@ -144,30 +178,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 { @@ -176,6 +210,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +222,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_); } @@ -208,8 +242,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; @@ -219,20 +254,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: @@ -263,132 +296,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(); @@ -403,8 +437,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; } @@ -425,7 +458,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; @@ -441,8 +476,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(); } } @@ -450,7 +484,7 @@ private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) { @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; @@ -465,13 +499,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(); @@ -499,24 +535,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) { @@ -526,12 +563,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() { @@ -544,13 +581,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 @@ -558,11 +601,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 @@ -580,6 +626,8 @@ public com.google.iam.v2.DenyRule getDenyRule() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -600,14 +648,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(); @@ -618,6 +667,8 @@ public Builder setDenyRule( return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -626,10 +677,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; } @@ -645,6 +697,8 @@ public Builder mergeDenyRule(com.google.iam.v2.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -668,6 +722,8 @@ public Builder clearDenyRule() { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -678,6 +734,8 @@ public com.google.iam.v2.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -696,6 +754,8 @@ public com.google.iam.v2.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -703,17 +763,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; @@ -723,19 +786,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; @@ -744,21 +809,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 { @@ -766,30 +832,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() { @@ -799,27 +872,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); } @@ -829,12 +906,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(); } @@ -843,27 +920,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; @@ -878,6 +955,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 d98b21bdb4..d3c32e76c7 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(); 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 72% 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 b0d6909050..cc7bdd8393 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,50 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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(); } - 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.
    *
@@ -54,6 +74,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 @@ -61,6 +82,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to update.
    *
@@ -70,6 +93,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.iam.v2.Policy getPolicy() { return policy_ == null ? com.google.iam.v2.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to update.
    *
@@ -93,6 +119,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -104,8 +131,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());
     }
@@ -119,8 +145,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;
@@ -130,7 +155,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);
@@ -139,8 +164,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;
@@ -162,132 +186,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 +328,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 +349,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,16 +361,14 @@ 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(); } } @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; @@ -378,19 +406,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) { @@ -400,12 +428,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.
      *
@@ -415,12 +449,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.
      *
@@ -430,6 +467,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() { @@ -440,6 +478,8 @@ public com.google.iam.v2.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to update.
      *
@@ -464,6 +504,8 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -474,8 +516,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 {
@@ -486,6 +527,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -498,9 +541,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;
@@ -513,6 +556,8 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -534,6 +579,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -550,6 +597,8 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -564,11 +613,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.
      *
@@ -580,21 +630,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);
     }
 
@@ -604,12 +656,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();
   }
@@ -618,27 +670,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;
@@ -653,6 +705,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 0637791cdc..3a26ee64ee 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.
    *
@@ -17,10 +35,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.
    *
@@ -30,10 +51,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.
    *
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 f8879e95c1..65f5f6cda6 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,28 +44,32 @@ private CreatePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } - 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`
@@ -63,6 +85,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -71,14 +94,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`
@@ -94,16 +118,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 { @@ -114,11 +137,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 @@ -126,11 +152,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 @@ -138,6 +167,8 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to create.
    * 
@@ -150,9 +181,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
@@ -161,6 +195,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * string policy_id = 3; + * * @return The policyId. */ @java.lang.Override @@ -169,14 +204,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
@@ -185,16 +221,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 { @@ -203,6 +238,7 @@ public java.lang.String getPolicyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +250,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_); } @@ -238,8 +273,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_); @@ -252,22 +286,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; } @@ -292,132 +324,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(); @@ -433,9 +469,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 @@ -454,8 +490,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; } @@ -466,9 +505,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_; @@ -478,7 +515,7 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { @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; @@ -526,29 +563,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) { @@ -558,10 +597,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`
@@ -577,13 +619,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; @@ -592,6 +634,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`
@@ -607,15 +651,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 { @@ -623,6 +666,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`
@@ -638,18 +683,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`
@@ -665,6 +714,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -674,6 +724,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`
@@ -689,12 +741,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; @@ -704,24 +758,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() { @@ -732,6 +795,8 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to create.
      * 
@@ -752,14 +817,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 { @@ -770,6 +836,8 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -778,9 +846,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; @@ -793,6 +861,8 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -810,6 +880,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. The policy to create.
      * 
@@ -822,6 +894,8 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() { return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The policy to create.
      * 
@@ -832,11 +906,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.
      * 
@@ -844,14 +919,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_; @@ -859,6 +937,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
@@ -867,13 +947,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; @@ -882,6 +962,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
@@ -890,15 +972,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 { @@ -906,6 +987,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
@@ -914,18 +997,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
@@ -934,6 +1021,7 @@ public Builder setPolicyId(
      * 
* * string policy_id = 3; + * * @return This builder for chaining. */ public Builder clearPolicyId() { @@ -943,6 +1031,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
@@ -951,21 +1041,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); } @@ -975,12 +1067,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(); } @@ -989,27 +1081,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; @@ -1024,6 +1116,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 7090edfd0a..51a7e57106 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`
@@ -23,10 +41,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`
@@ -42,30 +63,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.
    * 
@@ -75,6 +104,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
@@ -83,10 +114,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
@@ -95,8 +129,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 73% 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 0e44b96b99..d9a1ca0ad5 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,28 +44,32 @@ private DeletePolicyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } - 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}`
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -70,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 delete. Format:
    * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -92,16 +116,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 { @@ -110,9 +133,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
@@ -123,6 +149,7 @@ public java.lang.String getName() {
    * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -131,14 +158,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
@@ -149,16 +177,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 { @@ -167,6 +194,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +206,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_); } @@ -209,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -240,132 +266,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(); @@ -376,9 +406,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 @@ -397,8 +427,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; } @@ -416,7 +449,7 @@ private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) { @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; @@ -461,22 +494,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) { @@ -486,10 +522,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}`
@@ -504,13 +543,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; @@ -519,6 +558,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -533,15 +574,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 { @@ -549,6 +589,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -563,18 +605,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}`
@@ -589,6 +635,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -598,6 +645,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to delete. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -612,12 +661,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; @@ -627,6 +678,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
@@ -637,13 +690,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; @@ -652,6 +705,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
@@ -662,15 +717,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 { @@ -678,6 +732,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
@@ -688,18 +744,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - 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
@@ -710,6 +770,7 @@ public Builder setEtag(
      * 
* * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -719,6 +780,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
@@ -729,21 +792,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); } @@ -753,12 +818,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(); } @@ -767,27 +832,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; @@ -802,6 +867,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 67444b4e7b..101572706d 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}`
@@ -22,10 +40,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}`
@@ -40,12 +61,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
@@ -56,10 +79,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
@@ -70,8 +96,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 80d7f84a84..2763ff66f0 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,60 +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; /** + * + * *
  * 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.emptyList(); - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DenyRule(); } - 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.LazyStringArrayList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The identities that are prevented from using one or more permissions on
    * Google Cloud resources. This field can contain the following values:
@@ -99,13 +116,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:
@@ -150,12 +169,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:
@@ -200,6 +222,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. */ @@ -207,6 +230,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:
@@ -251,19 +276,22 @@ 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.LazyStringArrayList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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
@@ -276,13 +304,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
@@ -295,12 +325,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
@@ -313,6 +346,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. */ @@ -320,6 +354,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
@@ -332,19 +368,22 @@ 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.LazyStringArrayList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The permissions that are explicitly denied by this rule. Each permission
    * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -353,13 +392,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}`
@@ -368,12 +409,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}`
@@ -382,6 +426,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. */ @@ -389,6 +434,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}`
@@ -397,19 +444,22 @@ 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.LazyStringArrayList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Specifies the permissions that this rule excludes from the set of denied
    * permissions given by `denied_permissions`. If a permission appears in
@@ -421,13 +471,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
@@ -439,12 +491,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
@@ -456,6 +511,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. */ @@ -463,6 +519,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
@@ -474,17 +532,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
@@ -500,6 +560,7 @@ public java.lang.String getExceptionPermissions(int index) {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return Whether the denialCondition field is set. */ @java.lang.Override @@ -507,6 +568,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
@@ -522,6 +585,7 @@ public boolean hasDenialCondition() {
    * 
* * .google.type.Expr denial_condition = 5; + * * @return The denialCondition. */ @java.lang.Override @@ -529,6 +593,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
@@ -551,6 +617,7 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -562,8 +629,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));
     }
@@ -574,7 +640,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());
@@ -621,8 +688,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;
@@ -632,25 +698,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;
@@ -688,144 +749,142 @@ 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(); bitField0_ = 0; - deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); denialCondition_ = null; if (denialConditionBuilder_ != null) { denialConditionBuilder_.dispose(); @@ -835,9 +894,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 @@ -857,7 +916,9 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -881,16 +942,15 @@ private void buildPartial0(com.google.iam.v2beta.DenyRule result) { result.exceptionPermissions_ = exceptionPermissions_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.denialCondition_ = denialConditionBuilder_ == null - ? denialCondition_ - : denialConditionBuilder_.build(); + result.denialCondition_ = + denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); } } @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; @@ -968,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) { @@ -1014,10 +1078,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDeniedPrincipalsIsMutable() { if (!deniedPrincipals_.isModifiable()) { deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_); @@ -1025,6 +1091,8 @@ private void ensureDeniedPrincipalsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1069,14 +1137,16 @@ 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() { deniedPrincipals_.makeImmutable(); return deniedPrincipals_; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1121,12 +1191,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:
@@ -1171,6 +1244,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. */ @@ -1178,6 +1252,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:
@@ -1222,14 +1298,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:
@@ -1274,13 +1352,15 @@ 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); bitField0_ |= 0x00000001; @@ -1288,6 +1368,8 @@ public Builder setDeniedPrincipals( return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1332,12 +1414,14 @@ 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); bitField0_ |= 0x00000001; @@ -1345,6 +1429,8 @@ public Builder addDeniedPrincipals( return this; } /** + * + * *
      * The identities that are prevented from using one or more permissions on
      * Google Cloud resources. This field can contain the following values:
@@ -1389,19 +1475,20 @@ 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_); bitField0_ |= 0x00000001; 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:
@@ -1446,16 +1533,19 @@ public Builder addAllDeniedPrincipals(
      * 
* * repeated string denied_principals = 1; + * * @return This builder for chaining. */ public Builder clearDeniedPrincipals() { - deniedPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; 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:
@@ -1500,12 +1590,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); @@ -1516,6 +1608,7 @@ public Builder addDeniedPrincipalsBytes( private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExceptionPrincipalsIsMutable() { if (!exceptionPrincipals_.isModifiable()) { exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_); @@ -1523,6 +1616,8 @@ private void ensureExceptionPrincipalsIsMutable() { 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
@@ -1535,14 +1630,16 @@ 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() { exceptionPrincipals_.makeImmutable(); 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
@@ -1555,12 +1652,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
@@ -1573,6 +1673,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. */ @@ -1580,6 +1681,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
@@ -1592,14 +1695,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
@@ -1612,13 +1717,15 @@ 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); bitField0_ |= 0x00000002; @@ -1626,6 +1733,8 @@ public Builder setExceptionPrincipals( 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
@@ -1638,12 +1747,14 @@ 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); bitField0_ |= 0x00000002; @@ -1651,6 +1762,8 @@ public Builder addExceptionPrincipals( 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
@@ -1663,19 +1776,20 @@ 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_); bitField0_ |= 0x00000002; 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
@@ -1688,16 +1802,19 @@ public Builder addAllExceptionPrincipals(
      * 
* * repeated string exception_principals = 2; + * * @return This builder for chaining. */ public Builder clearExceptionPrincipals() { - exceptionPrincipals_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; 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
@@ -1710,12 +1827,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); @@ -1726,6 +1845,7 @@ public Builder addExceptionPrincipalsBytes( private com.google.protobuf.LazyStringArrayList deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDeniedPermissionsIsMutable() { if (!deniedPermissions_.isModifiable()) { deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_); @@ -1733,6 +1853,8 @@ private void ensureDeniedPermissionsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1741,14 +1863,16 @@ 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() { deniedPermissions_.makeImmutable(); return deniedPermissions_; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1757,12 +1881,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}`
@@ -1771,6 +1898,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. */ @@ -1778,6 +1906,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}`
@@ -1786,14 +1916,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}`
@@ -1802,13 +1934,15 @@ 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); bitField0_ |= 0x00000004; @@ -1816,6 +1950,8 @@ public Builder setDeniedPermissions( return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1824,12 +1960,14 @@ 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); bitField0_ |= 0x00000004; @@ -1837,6 +1975,8 @@ public Builder addDeniedPermissions( return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1845,19 +1985,20 @@ 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1866,16 +2007,19 @@ public Builder addAllDeniedPermissions(
      * 
* * repeated string denied_permissions = 3; + * * @return This builder for chaining. */ public Builder clearDeniedPermissions() { - deniedPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * The permissions that are explicitly denied by this rule. Each permission
      * uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}`
@@ -1884,12 +2028,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); @@ -1900,6 +2046,7 @@ public Builder addDeniedPermissionsBytes( private com.google.protobuf.LazyStringArrayList exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureExceptionPermissionsIsMutable() { if (!exceptionPermissions_.isModifiable()) { exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_); @@ -1907,6 +2054,8 @@ private void ensureExceptionPermissionsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1918,14 +2067,16 @@ 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() { exceptionPermissions_.makeImmutable(); return exceptionPermissions_; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -1937,12 +2088,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
@@ -1954,6 +2108,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. */ @@ -1961,6 +2116,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
@@ -1972,14 +2129,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
@@ -1991,13 +2150,15 @@ 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); bitField0_ |= 0x00000008; @@ -2005,6 +2166,8 @@ public Builder setExceptionPermissions( return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2016,12 +2179,14 @@ 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); bitField0_ |= 0x00000008; @@ -2029,6 +2194,8 @@ public Builder addExceptionPermissions( return this; } /** + * + * *
      * Specifies the permissions that this rule excludes from the set of denied
      * permissions given by `denied_permissions`. If a permission appears in
@@ -2040,19 +2207,20 @@ 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_); bitField0_ |= 0x00000008; 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
@@ -2064,16 +2232,19 @@ public Builder addAllExceptionPermissions(
      * 
* * repeated string exception_permissions = 4; + * * @return This builder for chaining. */ public Builder clearExceptionPermissions() { - exceptionPermissions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; 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
@@ -2085,12 +2256,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); @@ -2101,8 +2274,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
@@ -2118,12 +2294,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
@@ -2139,16 +2318,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
@@ -2179,6 +2363,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
@@ -2195,8 +2381,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 {
@@ -2207,6 +2392,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
@@ -2225,9 +2412,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;
@@ -2240,6 +2427,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
@@ -2267,6 +2456,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
@@ -2289,6 +2480,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
@@ -2309,11 +2502,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
@@ -2331,21 +2527,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);
     }
 
@@ -2355,12 +2550,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();
   }
@@ -2369,27 +2564,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;
@@ -2404,6 +2599,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 eb2beba78e..28e0b45b8f 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:
@@ -52,11 +70,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:
@@ -101,10 +121,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:
@@ -149,11 +172,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:
@@ -198,13 +224,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
@@ -217,11 +245,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
@@ -234,10 +264,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
@@ -250,11 +283,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
@@ -267,13 +303,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}`
@@ -282,11 +320,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}`
@@ -295,10 +335,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}`
@@ -307,11 +350,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}`
@@ -320,13 +366,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
@@ -338,11 +386,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
@@ -354,10 +404,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
@@ -369,11 +422,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
@@ -385,13 +441,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
@@ -407,10 +465,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
@@ -426,10 +487,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..2f14e35670
--- /dev/null
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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\213\001\n\025com.google.iam.v2betaB\rDenyR"
+          + "uleProtoP\001Z-cloud.google.com/go/iam/apiv"
+          + "2beta/iampb;iampb\252\002\027Google.Cloud.Iam.V2B"
+          + "eta\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3"
+    };
+    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 72%
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 9c717d3916..31ac088455 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,52 +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/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(); } - 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}`
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -69,14 +92,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}`
@@ -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,6 +132,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +144,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_); } @@ -145,15 +168,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; } @@ -172,132 +194,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(); @@ -307,9 +333,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 @@ -328,8 +354,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; } @@ -344,7 +373,7 @@ private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) { @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; @@ -384,17 +413,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) { @@ -404,10 +435,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}`
@@ -422,13 +456,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; @@ -437,6 +471,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -451,15 +487,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 { @@ -467,6 +502,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -481,18 +518,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}`
@@ -507,6 +548,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -516,6 +558,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy to retrieve. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -530,21 +574,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); } @@ -554,12 +600,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(); } @@ -568,27 +614,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; @@ -603,6 +649,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 69% 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 b7c9853e1a..589313315d 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}`
@@ -22,10 +40,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}`
@@ -40,8 +61,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 73% 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 bac800b1de..24ce49a716 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,28 +44,32 @@ private ListPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } - 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:
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -72,14 +95,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:
@@ -96,16 +120,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 { @@ -116,12 +139,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 @@ -130,15 +156,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 @@ -147,30 +177,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 { @@ -179,6 +209,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -214,8 +244,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_); @@ -228,19 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -263,132 +290,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(); @@ -400,9 +431,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 @@ -421,8 +452,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; } @@ -443,7 +477,7 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) { @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; @@ -491,27 +525,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) { @@ -521,10 +559,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:
@@ -541,13 +582,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; @@ -556,6 +597,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -572,15 +615,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 { @@ -588,6 +630,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -604,18 +648,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:
@@ -632,6 +680,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -641,6 +690,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource that the policy is attached to, along with the kind of policy
      * to list. Format:
@@ -657,12 +708,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; @@ -670,14 +723,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 @@ -685,12 +741,15 @@ 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. */ @@ -702,12 +761,15 @@ public Builder setPageSize(int value) { 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() { @@ -719,19 +781,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; @@ -740,21 +804,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 { @@ -762,30 +827,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() { @@ -795,27 +867,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); } @@ -825,12 +901,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(); } @@ -839,27 +915,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; @@ -874,6 +950,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 c1f00d1e41..1370a31505 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:
@@ -24,10 +42,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:
@@ -44,41 +65,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 73% 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 bc883bf505..388e703aa4 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,28 +44,32 @@ private ListPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } - 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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getPoliciesList() { return policies_; } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getPoliciesCount() { return policies_.size(); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -93,6 +121,8 @@ public com.google.iam.v2beta.Policy getPolicies(int index) { return policies_.get(index); } /** + * + * *
    * Metadata for the policies that are attached to the resource.
    * 
@@ -100,21 +130,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 @@ -123,30 +156,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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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)); } @@ -184,8 +217,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_); @@ -198,17 +230,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; } @@ -231,132 +262,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(); @@ -373,9 +408,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 @@ -394,9 +429,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; } @@ -423,7 +461,7 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) { @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; @@ -450,9 +488,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_); } @@ -489,30 +528,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) { @@ -522,21 +562,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.
      * 
@@ -551,6 +598,8 @@ public java.util.List getPoliciesList() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -565,6 +614,8 @@ public int getPoliciesCount() { } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -579,14 +630,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(); @@ -600,14 +652,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()); @@ -618,6 +671,8 @@ public Builder setPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -638,14 +693,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(); @@ -659,14 +715,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()); @@ -677,14 +734,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()); @@ -695,6 +753,8 @@ public Builder addPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -705,8 +765,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); @@ -714,6 +773,8 @@ public Builder addAllPolicies( return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -731,6 +792,8 @@ public Builder clearPolicies() { return this; } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -748,39 +811,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 { @@ -788,6 +856,8 @@ public com.google.iam.v2beta.PolicyOrBuilder getPoliciesOrBuilder( } } /** + * + * *
      * Metadata for the policies that are attached to the resource.
      * 
@@ -795,42 +865,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_; @@ -838,19 +913,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; @@ -859,21 +936,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 { @@ -881,30 +959,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() { @@ -914,27 +999,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); } @@ -944,12 +1033,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(); } @@ -958,27 +1047,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; @@ -993,6 +1082,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 3bf53bcfec..708315bd33 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,40 +48,41 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } - 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}`
@@ -80,6 +99,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -88,14 +108,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 +133,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 +150,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 +171,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 +203,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 +223,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 +254,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 +275,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 +307,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.
@@ -309,20 +344,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 +371,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 +381,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 +402,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 +414,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
@@ -387,6 +430,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 6; + * * @return The etag. */ @java.lang.Override @@ -395,14 +439,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
@@ -413,16 +458,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 { @@ -433,11 +477,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 @@ -445,11 +493,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 @@ -457,11 +509,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() { @@ -471,11 +526,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 @@ -483,11 +542,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 @@ -495,11 +558,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() { @@ -509,11 +575,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 @@ -521,11 +591,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 @@ -533,11 +607,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() { @@ -545,9 +622,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`.
@@ -560,6 +640,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`.
@@ -568,11 +650,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`.
@@ -585,6 +669,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`.
@@ -597,6 +683,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`.
@@ -605,12 +693,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;
@@ -622,8 +710,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_);
     }
@@ -636,12 +723,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_);
     }
@@ -678,34 +761,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;
@@ -715,42 +794,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;
   }
@@ -797,154 +866,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(); @@ -981,8 +1049,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; } @@ -1004,7 +1071,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; } @@ -1043,26 +1112,20 @@ 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(); } } @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; @@ -1091,8 +1154,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_; @@ -1126,9 +1188,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_); } @@ -1160,80 +1223,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) { @@ -1243,10 +1311,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}`
@@ -1263,13 +1334,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; @@ -1278,6 +1349,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1294,15 +1367,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 { @@ -1310,6 +1382,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1326,18 +1400,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}`
@@ -1354,6 +1432,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1363,6 +1442,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The resource name of the `Policy`, which must be unique. Format:
      * `policies/{attachment_point}/denypolicies/{policy_id}`
@@ -1379,12 +1460,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; @@ -1394,19 +1477,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; @@ -1415,21 +1500,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 { @@ -1437,30 +1523,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() { @@ -1470,18 +1563,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; @@ -1491,18 +1588,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; @@ -1511,20 +1610,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 { @@ -1532,28 +1632,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() { @@ -1563,17 +1670,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; @@ -1583,19 +1694,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; @@ -1604,21 +1717,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 { @@ -1626,30 +1740,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() { @@ -1659,18 +1780,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; @@ -1678,8 +1803,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) { @@ -1688,11 +1813,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(); @@ -1701,10 +1827,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.
@@ -1713,20 +1842,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.
@@ -1739,6 +1869,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.
@@ -1747,17 +1879,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.
@@ -1766,23 +1900,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.
@@ -1790,23 +1926,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.
@@ -1814,17 +1949,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.
@@ -1832,16 +1970,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
@@ -1852,13 +1990,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; @@ -1867,6 +2005,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
@@ -1877,15 +2017,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 { @@ -1893,6 +2032,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
@@ -1903,18 +2044,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
@@ -1925,6 +2070,7 @@ public Builder setEtag(
      * 
* * string etag = 6; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1934,6 +2080,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
@@ -1944,12 +2092,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; @@ -1959,39 +2109,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) { @@ -2007,14 +2176,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 { @@ -2025,17 +2197,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; @@ -2048,11 +2224,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); @@ -2065,11 +2245,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; @@ -2077,36 +2261,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_; @@ -2114,39 +2310,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) { @@ -2162,14 +2377,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 { @@ -2180,17 +2398,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; @@ -2203,11 +2425,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); @@ -2220,11 +2446,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; @@ -2232,36 +2462,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_; @@ -2269,39 +2511,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) { @@ -2317,14 +2578,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 { @@ -2335,17 +2599,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; @@ -2358,11 +2626,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); @@ -2375,11 +2647,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; @@ -2387,54 +2663,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`.
@@ -2450,6 +2744,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`.
@@ -2465,6 +2761,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`.
@@ -2480,6 +2778,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`.
@@ -2487,8 +2787,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();
@@ -2502,6 +2801,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`.
@@ -2509,8 +2810,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());
@@ -2521,6 +2821,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`.
@@ -2542,6 +2844,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`.
@@ -2549,8 +2853,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();
@@ -2564,6 +2867,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`.
@@ -2571,8 +2876,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());
@@ -2583,6 +2887,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`.
@@ -2590,8 +2896,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());
@@ -2602,6 +2907,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`.
@@ -2613,8 +2920,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);
@@ -2622,6 +2928,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`.
@@ -2640,6 +2948,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`.
@@ -2658,6 +2968,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`.
@@ -2665,11 +2977,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`.
@@ -2677,14 +2990,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`.
@@ -2692,8 +3007,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 {
@@ -2701,6 +3016,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`.
@@ -2709,10 +3026,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`.
@@ -2720,12 +3039,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`.
@@ -2733,27 +3053,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);
     }
 
@@ -2763,12 +3085,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();
   }
@@ -2777,27 +3099,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;
@@ -2812,6 +3134,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 d3e582d6c2..e64fe2d448 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,55 +1,76 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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(); } - 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 @@ -57,11 +78,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 @@ -69,6 +93,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when the `google.longrunning.Operation` was created.
    * 
@@ -81,6 +107,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,8 +119,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()); } @@ -107,8 +133,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; @@ -118,17 +143,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; @@ -150,132 +175,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(); @@ -289,9 +318,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 @@ -310,8 +339,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; } @@ -319,16 +351,14 @@ 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(); } } @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; @@ -366,19 +396,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) { @@ -388,38 +418,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.
      * 
@@ -440,14 +484,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 { @@ -458,6 +503,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -466,9 +513,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; @@ -481,6 +528,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -498,6 +547,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -510,6 +561,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when the `google.longrunning.Operation` was created.
      * 
@@ -520,11 +573,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.
      * 
@@ -532,21 +588,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); } @@ -556,12 +615,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(); } @@ -570,27 +629,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; @@ -605,6 +664,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 5f5b663511..2c6929cd7e 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}`
@@ -24,10 +42,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}`
@@ -44,76 +65,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.
@@ -123,6 +161,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.
@@ -130,15 +170,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.
@@ -146,9 +184,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.
@@ -157,11 +196,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.
@@ -169,10 +210,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
@@ -183,10 +225,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
@@ -197,93 +242,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`.
@@ -291,9 +371,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`.
@@ -303,6 +384,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`.
@@ -312,6 +395,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`.
@@ -319,9 +404,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`.
@@ -329,6 +415,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..fab21840a2
--- /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\""
+          + "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 "
+          + "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display"
+          + "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl"
+          + "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004"
+          + "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google"
+          + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time"
+          + "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
+          + "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf."
+          + "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google."
+          + "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol"
+          + "icyRule\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\"R\n\023ListPoliciesRequest\022\024\n\006parent\030"
+          + "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t"
+          + "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po"
+          + "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022"
+          + "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq"
+          + "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy"
+          + "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030"
+          + "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021"
+          + "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest"
+          + "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol"
+          + "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name"
+          + "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli"
+          + "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013"
+          + "2\032.google.protobuf.Timestamp2\200\007\n\010Policie"
+          + "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L"
+          + "istPoliciesRequest\032\'.google.iam.v2beta.L"
+          + "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v"
+          + "2beta/{parent=policies/*/*}\022y\n\tGetPolicy"
+          + "\022#.google.iam.v2beta.GetPolicyRequest\032\031."
+          + "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022"
+          + "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat"
+          + "ePolicy\022&.google.iam.v2beta.CreatePolicy"
+          + "Request\032\035.google.longrunning.Operation\"k"
+          + "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p"
+          + "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p"
+          + "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo"
+          + "licy\022&.google.iam.v2beta.UpdatePolicyReq"
+          + "uest\032\035.google.longrunning.Operation\"X\312A!"
+          + "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032"
+          + "$/v2beta/{policy.name=policies/*/*/*}:\006p"
+          + "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be"
+          + "ta.DeletePolicyRequest\032\035.google.longrunn"
+          + "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat"
+          + "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name="
+          + "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A"
+          + ".https://www.googleapis.com/auth/cloud-p"
+          + "latformB\211\001\n\025com.google.iam.v2betaB\013Polic"
+          + "yProtoP\001Z-cloud.google.com/go/iam/apiv2b"
+          + "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet"
+          + "a\312\002\027Google\\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 02c5b419f5..c326c9b44e 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,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;
 
 /**
+ *
+ *
  * 
  * 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,29 +89,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 @@ -97,21 +124,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.
    * 
@@ -121,21 +153,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 @@ -144,30 +180,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 { @@ -176,6 +212,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +224,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_); } @@ -208,8 +244,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; @@ -219,20 +256,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: @@ -263,132 +298,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(); @@ -403,9 +441,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 @@ -425,7 +463,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; @@ -441,8 +481,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(); } } @@ -450,7 +489,7 @@ private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) { @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; @@ -465,13 +504,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(); @@ -499,24 +540,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) { @@ -526,12 +568,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() { @@ -544,13 +586,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 @@ -558,11 +606,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 @@ -580,6 +631,8 @@ public com.google.iam.v2beta.DenyRule getDenyRule() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -600,14 +653,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(); @@ -618,6 +672,8 @@ public Builder setDenyRule( return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -626,10 +682,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; } @@ -645,6 +702,8 @@ public Builder mergeDenyRule(com.google.iam.v2beta.DenyRule value) { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -668,6 +727,8 @@ public Builder clearDenyRule() { return this; } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -678,6 +739,8 @@ public com.google.iam.v2beta.DenyRule.Builder getDenyRuleBuilder() { return getDenyRuleFieldBuilder().getBuilder(); } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -696,6 +759,8 @@ public com.google.iam.v2beta.DenyRuleOrBuilder getDenyRuleOrBuilder() { } } /** + * + * *
      * A rule for a deny policy.
      * 
@@ -703,17 +768,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; @@ -723,19 +791,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; @@ -744,21 +814,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 { @@ -766,30 +837,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() { @@ -799,27 +877,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); } @@ -829,12 +911,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(); } @@ -843,27 +925,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; @@ -878,6 +960,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 7225310955..f6463abdbb 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(); 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 71% 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 8d1b3023da..ef0b3c287f 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,50 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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(); } - 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.
    *
@@ -54,6 +74,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 @@ -61,6 +82,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. The policy to update.
    *
@@ -70,6 +93,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v2beta.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -77,6 +101,8 @@ public com.google.iam.v2beta.Policy getPolicy() { return policy_ == null ? com.google.iam.v2beta.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * Required. The policy to update.
    *
@@ -93,6 +119,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -104,8 +131,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());
     }
@@ -119,8 +145,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;
@@ -130,17 +155,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;
@@ -162,132 +187,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 +330,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 +351,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,16 +363,14 @@ 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(); } } @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; @@ -378,19 +408,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) { @@ -400,12 +430,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.
      *
@@ -415,12 +451,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.
      *
@@ -430,6 +469,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() { @@ -440,6 +480,8 @@ public com.google.iam.v2beta.Policy getPolicy() { } } /** + * + * *
      * Required. The policy to update.
      *
@@ -464,6 +506,8 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -474,8 +518,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 {
@@ -486,6 +529,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -498,9 +543,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;
@@ -513,6 +558,8 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -534,6 +581,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -550,6 +599,8 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() {
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The policy to update.
      *
@@ -564,11 +615,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.
      *
@@ -580,21 +632,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);
     }
 
@@ -604,12 +659,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();
   }
@@ -618,27 +673,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;
@@ -653,6 +708,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 70%
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 5a1228510f..231607713a 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.
    *
@@ -17,10 +35,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.
    *
@@ -30,10 +51,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.
    *
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 5a055933b3..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\"\221\001\n\023SetIamPolicyRequest\022\034\n" +
-      "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 " +
-      "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda" +
-      "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" +
-      "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001" +
-      "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google" +
-      ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi" +
-      "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003" +
-      "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa" +
-      "mPermissionsResponse\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.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se" +
-      "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i" +
-      "am.v1.GetIamPolicyRequest\032\025.google.iam.v" +
-      "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI" +
-      "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo" +
-      "gle.iam.v1.TestIamPermissionsRequest\032).g" +
-      "oogle.iam.v1.TestIamPermissionsResponse\"" +
-      "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis" +
-      "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com" +
-      "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z" +
-      ")cloud.google.com/go/iam/apiv1/iampb;iam" +
-      "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo" +
-      "ud\\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 8539485d5b..0000000000
--- a/owl-bot-staging/java-iam/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
+++ /dev/null
@@ -1,51 +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}\n\021com.google.iam.v1B" +
-      "\014OptionsProtoP\001Z)cloud.google.com/go/iam" +
-      "/apiv1/iampb;iampb\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[] {
-        });
-    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 ed5d7dc18a..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|\n\021com" +
-      ".google.iam.v1B\013PolicyProtoP\001Z)cloud.goo" +
-      "gle.com/go/iam/apiv1/iampb;iampb\370\001\001\252\002\023Go" +
-      "ogle.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/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 e9faa4c3db..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" +
-      "{\n\021com.google.iam.v2B\rDenyRuleProtoP\001Z)c" +
-      "loud.google.com/go/iam/apiv2/iampb;iampb" +
-      "\252\002\023Google.Cloud.Iam.V2\312\002\023Google\\Cloud\\Ia" +
-      "m\\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 4ab39d5936..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\"\311\003\n\006Policy\022\022" +
-      "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" +
-      "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" +
-      ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" +
-      "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" +
-      "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" +
-      "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." +
-      "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" +
-      "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" +
-      "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" +
-      "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" +
-      "nnotationsEntry\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(\013" +
-      "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" +
-      "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" +
-      "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" +
-      "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" +
-      "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" +
-      "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" +
-      "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" +
-      "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" +
-      "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" +
-      "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" +
-      "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" +
-      "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" +
-      " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" +
-      "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" +
-      ".google.protobuf.Timestamp2\320\006\n\010Policies\022" +
-      "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" +
-      "iciesRequest\032#.google.iam.v2.ListPolicie" +
-      "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" +
-      "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." +
-      "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" +
-      "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" +
-      "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" +
-      "eatePolicyRequest\032\035.google.longrunning.O" +
-      "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" +
-      "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" +
-      "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" +
-      "datePolicy\022\".google.iam.v2.UpdatePolicyR" +
-      "equest\032\035.google.longrunning.Operation\"T\312" +
-      "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" +
-      "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" +
-      "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" +
-      "etePolicyRequest\032\035.google.longrunning.Op" +
-      "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" +
-      "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" +
-      "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" +
-      "ww.googleapis.com/auth/cloud-platformBy\n" +
-      "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" +
-      ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" +
-      "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" +
-      "b\006proto3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.api.ClientProto.getDescriptor(),
-          com.google.api.FieldBehaviorProto.getDescriptor(),
-          com.google.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/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 ce79ccf7b5..0000000000
--- a/owl-bot-staging/java-iam/v2beta/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java
+++ /dev/null
@@ -1,57 +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\213\001\n\025com.google.iam.v2betaB\rDenyR" +
-      "uleProtoP\001Z-cloud.google.com/go/iam/apiv" +
-      "2beta/iampb;iampb\252\002\027Google.Cloud.Iam.V2B" +
-      "eta\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3"
-    };
-    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 44e55e4334..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\"" +
-      "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 " +
-      "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display" +
-      "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl" +
-      "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004" +
-      "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google" +
-      ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" +
-      "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" +
-      "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf." +
-      "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google." +
-      "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr" +
-      "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol" +
-      "icyRule\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\"R\n\023ListPoliciesRequest\022\024\n\006parent\030" +
-      "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" +
-      "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po" +
-      "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022" +
-      "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq" +
-      "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy" +
-      "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030" +
-      "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021" +
-      "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest" +
-      "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol" +
-      "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name" +
-      "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli" +
-      "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013" +
-      "2\032.google.protobuf.Timestamp2\200\007\n\010Policie" +
-      "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L" +
-      "istPoliciesRequest\032\'.google.iam.v2beta.L" +
-      "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" +
-      "2beta/{parent=policies/*/*}\022y\n\tGetPolicy" +
-      "\022#.google.iam.v2beta.GetPolicyRequest\032\031." +
-      "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022" +
-      "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat" +
-      "ePolicy\022&.google.iam.v2beta.CreatePolicy" +
-      "Request\032\035.google.longrunning.Operation\"k" +
-      "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p" +
-      "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p" +
-      "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo" +
-      "licy\022&.google.iam.v2beta.UpdatePolicyReq" +
-      "uest\032\035.google.longrunning.Operation\"X\312A!" +
-      "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032" +
-      "$/v2beta/{policy.name=policies/*/*/*}:\006p" +
-      "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be" +
-      "ta.DeletePolicyRequest\032\035.google.longrunn" +
-      "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat" +
-      "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name=" +
-      "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A" +
-      ".https://www.googleapis.com/auth/cloud-p" +
-      "latformB\211\001\n\025com.google.iam.v2betaB\013Polic" +
-      "yProtoP\001Z-cloud.google.com/go/iam/apiv2b" +
-      "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet" +
-      "a\312\002\027Google\\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)
-}

From 4c0e95b0e592a71495180795f038b5e91e8eb304 Mon Sep 17 00:00:00 2001
From: Mridula Peddada 
Date: Tue, 23 May 2023 17:45:04 -0400
Subject: [PATCH 3/7] add exclusions to clirr

---
 .../clirr-ignored-differences.xml             | 32 +++++++++++++++----
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
index ca6f8c1981..cc0cad3877 100644
--- a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
@@ -2,14 +2,34 @@
 
 
   
-    7012
-    com/google/iam/v1/*OrBuilder
-    * get*(*)
+    7002
+    com/google/iam/v1/*Builder
+    * addRepeatedField(*)
   
   
-    7012
-    com/google/iam/v1/*OrBuilder
-    boolean contains*(*)
+    7002
+    com/google/iam/v1/*Builder
+    * clearField(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * clearOneof(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * clone()
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * setField(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * setRepeatedField(*)
   
   
     7012

From abe7c11c06273e31d4f041db262a6ca1babe403a Mon Sep 17 00:00:00 2001
From: Mridula Peddada 
Date: Tue, 23 May 2023 17:49:57 -0400
Subject: [PATCH 4/7] add exclusions to v2beta

---
 .../clirr-ignored-differences.xml             | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
index 136c027be8..2fe9ff4f34 100644
--- a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
 
 
 
+  
+    7002
+    com/google/iam/v1/*Builder
+    * addRepeatedField(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * clearField(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * clearOneof(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * clone()
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * setField(*)
+  
+  
+    7002
+    com/google/iam/v1/*Builder
+    * setRepeatedField(*)
+  
   
     7012
     com/google/iam/v2beta/*OrBuilder

From 3471aabbd7da5a69c4295c50ed6e546f6a46c4ce Mon Sep 17 00:00:00 2001
From: Mridula Peddada 
Date: Tue, 23 May 2023 17:55:08 -0400
Subject: [PATCH 5/7] fix typo

---
 .../clirr-ignored-differences.xml                    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
index 2fe9ff4f34..7c7553c4b6 100644
--- a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
@@ -3,32 +3,32 @@
 
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * addRepeatedField(*)
   
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * clearField(*)
   
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * clearOneof(*)
   
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * clone()
   
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * setField(*)
   
   
     7002
-    com/google/iam/v1/*Builder
+    com/google/iam/v2beta/*Builder
     * setRepeatedField(*)
   
   

From 1cfc687c7f3aac419e6e2ea090233c0f7796fc11 Mon Sep 17 00:00:00 2001
From: Mridula Peddada 
Date: Tue, 23 May 2023 17:59:23 -0400
Subject: [PATCH 6/7] restore removed changes

---
 .../proto-google-iam-v1/clirr-ignored-differences.xml  | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
index cc0cad3877..f551ecf78f 100644
--- a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
@@ -31,6 +31,16 @@
     com/google/iam/v1/*Builder
     * setRepeatedField(*)
   
+  
+    7012
+    com/google/iam/v1/*OrBuilder
+    * get*(*)
+  
+  
+    7012
+    com/google/iam/v1/*OrBuilder
+    boolean contains*(*)
+  
   
     7012
     com/google/iam/v1/*OrBuilder

From 71176ce85468f49cf3c5d6f38a0dcf0754678141 Mon Sep 17 00:00:00 2001
From: Mridula Peddada 
Date: Tue, 23 May 2023 18:02:15 -0400
Subject: [PATCH 7/7] add exclusions for v2

---
 .../clirr-ignored-differences.xml             | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
index f9346449b7..dca810c57f 100644
--- a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
 
 
 
+  
+    7002
+    com/google/iam/v2/*Builder
+    * addRepeatedField(*)
+  
+  
+    7002
+    com/google/iam/v2/*Builder
+    * clearField(*)
+  
+  
+    7002
+    com/google/iam/v2/*Builder
+    * clearOneof(*)
+  
+  
+    7002
+    com/google/iam/v2/*Builder
+    * clone()
+  
+  
+    7002
+    com/google/iam/v2/*Builder
+    * setField(*)
+  
+  
+    7002
+    com/google/iam/v2/*Builder
+    * setRepeatedField(*)
+  
   
     7012
     com/google/iam/v2/*OrBuilder