From eb7e0669b9b936493e1ce4d3eb988010f58ee7fc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:16:32 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/IamCheckerGrpc.java | 376 -- .../v1/IamCheckerClient.java | 20 +- .../v1/IamCheckerSettings.java | 30 +- .../v1/gapic_metadata.json | 0 .../policytroubleshooter/v1/package-info.java | 0 .../stub/GrpcIamCheckerCallableFactory.java | 0 .../v1/stub/GrpcIamCheckerStub.java | 0 .../HttpJsonIamCheckerCallableFactory.java | 105 + .../v1/stub/HttpJsonIamCheckerStub.java | 201 + .../v1/stub/IamCheckerStub.java | 0 .../v1/stub/IamCheckerStubSettings.java | 59 +- .../v1/IamCheckerClientHttpJsonTest.java | 125 + .../v1/IamCheckerClientTest.java | 0 .../v1/MockIamChecker.java | 0 .../v1/MockIamCheckerImpl.java | 0 .../v1/IamCheckerGrpc.java | 312 ++ .../v1/IAMCheckerProto.java | 96 + .../v1/TroubleshootIamPolicyRequest.java | 388 +- ...TroubleshootIamPolicyRequestOrBuilder.java | 26 +- .../v1/TroubleshootIamPolicyResponse.java | 600 +-- ...roubleshootIamPolicyResponseOrBuilder.java | 58 +- .../policytroubleshooter/v1/Explanations.java | 3918 ++++++----------- .../policytroubleshooter/v1/checker.proto | 0 .../v1/explanations.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncTroubleshootIamPolicy.java | 47 + .../SyncTroubleshootIamPolicy.java | 43 + .../SyncTroubleshootIamPolicy.java | 45 + .../SyncTroubleshootIamPolicy.java | 45 + .../v1/IAMCheckerProto.java | 112 - 32 files changed, 2968 insertions(+), 3757 deletions(-) delete mode 100644 grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java (90%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java (85%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java (80%) create mode 100644 owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java (100%) rename {google-cloud-policy-troubleshooter => owl-bot-staging/v1/google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java (66%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java (64%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java (74%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java (79%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java (69%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto (100%) rename {proto-google-cloud-policy-troubleshooter-v1 => owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1}/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java delete mode 100644 proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java diff --git a/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java b/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java deleted file mode 100644 index bbbbc38..0000000 --- a/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.policytroubleshooter.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * IAM Policy Troubleshooter service.
- * This service helps you troubleshoot access issues for Google Cloud resources.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policytroubleshooter/v1/checker.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class IamCheckerGrpc { - - private IamCheckerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.policytroubleshooter.v1.IamChecker"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - getTroubleshootIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TroubleshootIamPolicy", - requestType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, - responseType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - getTroubleshootIamPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - getTroubleshootIamPolicyMethod; - if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { - synchronized (IamCheckerGrpc.class) { - if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) - == null) { - IamCheckerGrpc.getTroubleshootIamPolicyMethod = - getTroubleshootIamPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "TroubleshootIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new IamCheckerMethodDescriptorSupplier("TroubleshootIamPolicy")) - .build(); - } - } - } - return getTroubleshootIamPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static IamCheckerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerStub(channel, callOptions); - } - }; - return IamCheckerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static IamCheckerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerBlockingStub(channel, callOptions); - } - }; - return IamCheckerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static IamCheckerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerFutureStub(channel, callOptions); - } - }; - return IamCheckerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public abstract static class IamCheckerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public void troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTroubleshootIamPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTroubleshootIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>( - this, METHODID_TROUBLESHOOT_IAM_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerStub extends io.grpc.stub.AbstractAsyncStub { - private IamCheckerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerStub(channel, callOptions); - } - - /** - * - * - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public void troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private IamCheckerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private IamCheckerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> - troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TROUBLESHOOT_IAM_POLICY = 0; - - 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 IamCheckerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(IamCheckerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TROUBLESHOOT_IAM_POLICY: - serviceImpl.troubleshootIamPolicy( - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class IamCheckerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - IamCheckerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("IamChecker"); - } - } - - private static final class IamCheckerFileDescriptorSupplier - extends IamCheckerBaseDescriptorSupplier { - IamCheckerFileDescriptorSupplier() {} - } - - private static final class IamCheckerMethodDescriptorSupplier - extends IamCheckerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - IamCheckerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (IamCheckerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IamCheckerFileDescriptorSupplier()) - .addMethod(getTroubleshootIamPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java similarity index 90% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java index ecd49ee..268b6b9 100644 --- a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java +++ b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java @@ -52,13 +52,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -93,6 +93,20 @@ * IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings); * } * + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java similarity index 85% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java index 009a24f..7fa9647 100644 --- a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java +++ b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.policytroubleshooter.v1.stub.IamCheckerStubSettings; @@ -38,10 +40,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -98,11 +100,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return IamCheckerStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return IamCheckerStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return IamCheckerStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return IamCheckerStubSettings.defaultTransportChannelProvider(); } @@ -112,11 +121,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return IamCheckerStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -154,6 +169,11 @@ private static Builder createDefault() { return new Builder(IamCheckerStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(IamCheckerStubSettings.newHttpJsonBuilder()); + } + public IamCheckerStubSettings.Builder getStubSettingsBuilder() { return ((IamCheckerStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json similarity index 100% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java new file mode 100644 index 0000000..e4102d2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.policytroubleshooter.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the IamChecker service API. + * + *

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

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonIamCheckerStub extends IamCheckerStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + TroubleshootIamPolicyRequest, TroubleshootIamPolicyResponse> + troubleshootIamPolicyMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.policytroubleshooter.v1.IamChecker/TroubleshootIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/iam:troubleshoot", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TroubleshootIamPolicyResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + troubleshootIamPolicyCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonIamCheckerStub create(IamCheckerStubSettings settings) + throws IOException { + return new HttpJsonIamCheckerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonIamCheckerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonIamCheckerStub( + IamCheckerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonIamCheckerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonIamCheckerStub( + IamCheckerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonIamCheckerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonIamCheckerStub(IamCheckerStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonIamCheckerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonIamCheckerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonIamCheckerStub( + IamCheckerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + troubleshootIamPolicyTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(troubleshootIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.troubleshootIamPolicyCallable = + callableFactory.createUnaryCallable( + troubleshootIamPolicyTransportSettings, + settings.troubleshootIamPolicySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(troubleshootIamPolicyMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + troubleshootIamPolicyCallable() { + return troubleshootIamPolicyCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java diff --git a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java similarity index 80% rename from google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java index ec9b4da..7aabaf1 100644 --- a/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -49,10 +52,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -97,6 +100,11 @@ public IamCheckerStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcIamCheckerStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonIamCheckerStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -129,18 +137,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(IamCheckerStubSettings.class)) @@ -148,11 +163,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IamCheckerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IamCheckerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -238,6 +272,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .troubleshootIamPolicySettings() diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java new file mode 100644 index 0000000..d604ebd --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java @@ -0,0 +1,125 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.policytroubleshooter.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.policytroubleshooter.v1.stub.HttpJsonIamCheckerStub; +import google.cloud.policytroubleshooter.v1.Explanations; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IamCheckerClientHttpJsonTest { + private static MockHttpService mockService; + private static IamCheckerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonIamCheckerStub.getMethodDescriptors(), IamCheckerSettings.getDefaultEndpoint()); + IamCheckerSettings settings = + IamCheckerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + IamCheckerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IamCheckerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void troubleshootIamPolicyTest() throws Exception { + TroubleshootIamPolicyResponse expectedResponse = + TroubleshootIamPolicyResponse.newBuilder() + .setAccess(Explanations.AccessState.forNumber(0)) + .addAllExplainedPolicies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TroubleshootIamPolicyRequest request = + TroubleshootIamPolicyRequest.newBuilder() + .setAccessTuple(Explanations.AccessTuple.newBuilder().build()) + .build(); + + TroubleshootIamPolicyResponse actualResponse = client.troubleshootIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void troubleshootIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TroubleshootIamPolicyRequest request = + TroubleshootIamPolicyRequest.newBuilder() + .setAccessTuple(Explanations.AccessTuple.newBuilder().build()) + .build(); + client.troubleshootIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java diff --git a/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java diff --git a/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java b/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java similarity index 100% rename from google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java rename to owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java new file mode 100644 index 0000000..da3646b --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java @@ -0,0 +1,312 @@ +package com.google.cloud.policytroubleshooter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * IAM Policy Troubleshooter service.
+ * This service helps you troubleshoot access issues for Google Cloud resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/policytroubleshooter/v1/checker.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class IamCheckerGrpc { + + private IamCheckerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.policytroubleshooter.v1.IamChecker"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TroubleshootIamPolicy", + requestType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, + responseType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod() { + io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod; + if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { + synchronized (IamCheckerGrpc.class) { + if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { + IamCheckerGrpc.getTroubleshootIamPolicyMethod = getTroubleshootIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TroubleshootIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance())) + .setSchemaDescriptor(new IamCheckerMethodDescriptorSupplier("TroubleshootIamPolicy")) + .build(); + } + } + } + return getTroubleshootIamPolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static IamCheckerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerStub(channel, callOptions); + } + }; + return IamCheckerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IamCheckerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerBlockingStub(channel, callOptions); + } + }; + return IamCheckerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static IamCheckerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerFutureStub(channel, callOptions); + } + }; + return IamCheckerFutureStub.newStub(factory, channel); + } + + /** + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static abstract class IamCheckerImplBase implements io.grpc.BindableService { + + /** + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public void troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTroubleshootIamPolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTroubleshootIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>( + this, METHODID_TROUBLESHOOT_IAM_POLICY))) + .build(); + } + } + + /** + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerStub extends io.grpc.stub.AbstractAsyncStub { + private IamCheckerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerStub(channel, callOptions); + } + + /** + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public void troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private IamCheckerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerBlockingStub(channel, callOptions); + } + + /** + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerFutureStub extends io.grpc.stub.AbstractFutureStub { + private IamCheckerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerFutureStub(channel, callOptions); + } + + /** + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture troubleshootIamPolicy( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TROUBLESHOOT_IAM_POLICY = 0; + + 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 IamCheckerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(IamCheckerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TROUBLESHOOT_IAM_POLICY: + serviceImpl.troubleshootIamPolicy((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class IamCheckerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IamCheckerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IamChecker"); + } + } + + private static final class IamCheckerFileDescriptorSupplier + extends IamCheckerBaseDescriptorSupplier { + IamCheckerFileDescriptorSupplier() {} + } + + private static final class IamCheckerMethodDescriptorSupplier + extends IamCheckerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + IamCheckerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IamCheckerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IamCheckerFileDescriptorSupplier()) + .addMethod(getTroubleshootIamPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java new file mode 100644 index 0000000..7804846 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/policytroubleshooter/v1/checker.proto + +package com.google.cloud.policytroubleshooter.v1; + +public final class IAMCheckerProto { + private IAMCheckerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/policytroubleshooter/v1/c" + + "hecker.proto\022$google.cloud.policytrouble" + + "shooter.v1\0327google/cloud/policytroublesh" + + "ooter/v1/explanations.proto\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\"g\n\034TroubleshootIamPolicyRequest\022G\n\014ac" + + "cess_tuple\030\001 \001(\01321.google.cloud.policytr" + + "oubleshooter.v1.AccessTuple\"\265\001\n\035Troubles" + + "hootIamPolicyResponse\022A\n\006access\030\001 \001(\01621." + + "google.cloud.policytroubleshooter.v1.Acc" + + "essState\022Q\n\022explained_policies\030\002 \003(\01325.g" + + "oogle.cloud.policytroubleshooter.v1.Expl" + + "ainedPolicy2\251\002\n\nIamChecker\022\301\001\n\025Troublesh" + + "ootIamPolicy\022B.google.cloud.policytroubl" + + "eshooter.v1.TroubleshootIamPolicyRequest" + + "\032C.google.cloud.policytroubleshooter.v1." + + "TroubleshootIamPolicyResponse\"\037\202\323\344\223\002\031\"\024/" + + "v1/iam:troubleshoot:\001*\032W\312A#policytrouble" + + "shooter.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\222\002\n(com." + + "google.cloud.policytroubleshooter.v1B\017IA" + + "MCheckerProtoP\001ZXgoogle.golang.org/genpr" + + "oto/googleapis/cloud/policytroubleshoote" + + "r/v1;policytroubleshooter\370\001\001\252\002$Google.Cl" + + "oud.PolicyTroubleshooter.V1\312\002$Google\\Clo" + + "ud\\PolicyTroubleshooter\\V1\352\002\'Google::Clo" + + "ud::PolicyTroubleshooter::V1P\000b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor, + new java.lang.String[] { "AccessTuple", }); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor, + new java.lang.String[] { "Access", "ExplainedPolicies", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java similarity index 66% rename from proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java index 8a847db..45050b0 100644 --- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/policytroubleshooter/v1/checker.proto package com.google.cloud.policytroubleshooter.v1; /** - * - * *
  * Request for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
  * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest} */ -public final class TroubleshootIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TroubleshootIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) TroubleshootIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TroubleshootIamPolicyRequest.newBuilder() to construct. private TroubleshootIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TroubleshootIamPolicyRequest() {} + private TroubleshootIamPolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TroubleshootIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TroubleshootIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,31 +52,26 @@ private TroubleshootIamPolicyRequest( case 0: done = true; break; - case 10: - { - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder subBuilder = - null; - if (accessTuple_ != null) { - subBuilder = accessTuple_.toBuilder(); - } - accessTuple_ = - input.readMessage( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accessTuple_); - accessTuple_ = subBuilder.buildPartial(); - } - - break; + case 10: { + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder subBuilder = null; + if (accessTuple_ != null) { + subBuilder = accessTuple_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + accessTuple_ = input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(accessTuple_); + accessTuple_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,40 +79,35 @@ private TroubleshootIamPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); } public static final int ACCESS_TUPLE_FIELD_NUMBER = 1; private google.cloud.policytroubleshooter.v1.Explanations.AccessTuple accessTuple_; /** - * - * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return Whether the accessTuple field is set. */ @java.lang.Override @@ -141,26 +115,19 @@ public boolean hasAccessTuple() { return accessTuple_ != null; } /** - * - * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return The accessTuple. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple() { - return accessTuple_ == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() - : accessTuple_; + return accessTuple_ == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_; } /** - * - * *
    * The information to use for checking whether a member has a permission for a
    * resource.
@@ -169,13 +136,11 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTu
    * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
    */
   @java.lang.Override
-  public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder
-      getAccessTupleOrBuilder() {
+  public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder getAccessTupleOrBuilder() {
     return getAccessTuple();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,7 +152,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 (accessTuple_ != null) {
       output.writeMessage(1, getAccessTuple());
     }
@@ -201,7 +167,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (accessTuple_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccessTuple());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getAccessTuple());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,17 +178,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other =
-        (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) obj;
+    com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) obj;
 
     if (hasAccessTuple() != other.hasAccessTuple()) return false;
     if (hasAccessTuple()) {
-      if (!getAccessTuple().equals(other.getAccessTuple())) return false;
+      if (!getAccessTuple()
+          .equals(other.getAccessTuple())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -244,145 +211,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.newBuilder() + // Construct using com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -396,16 +352,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest - .getDefaultInstance(); + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -419,8 +373,7 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest bui @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest buildPartial() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest result = - new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest(this); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest result = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest(this); if (accessTupleBuilder_ == null) { result.accessTuple_ = accessTuple_; } else { @@ -434,51 +387,46 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) { - return mergeFrom( - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) other); + return mergeFrom((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other) { - if (other - == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other) { + if (other == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance()) return this; if (other.hasAccessTuple()) { mergeAccessTuple(other.getAccessTuple()); } @@ -501,9 +449,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,49 +461,36 @@ public Builder mergeFrom( private google.cloud.policytroubleshooter.v1.Explanations.AccessTuple accessTuple_; private com.google.protobuf.SingleFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, - google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> - accessTupleBuilder_; + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> accessTupleBuilder_; /** - * - * *
      * The information to use for checking whether a member has a permission for a
      * resource.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return Whether the accessTuple field is set. */ public boolean hasAccessTuple() { return accessTupleBuilder_ != null || accessTuple_ != null; } /** - * - * *
      * The information to use for checking whether a member has a permission for a
      * resource.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return The accessTuple. */ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple() { if (accessTupleBuilder_ == null) { - return accessTuple_ == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() - : accessTuple_; + return accessTuple_ == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_; } else { return accessTupleBuilder_.getMessage(); } } /** - * - * *
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -565,8 +498,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTu
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public Builder setAccessTuple(
-        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
+    public Builder setAccessTuple(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
       if (accessTupleBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -580,8 +512,6 @@ public Builder setAccessTuple(
       return this;
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -601,8 +531,6 @@ public Builder setAccessTuple(
       return this;
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -610,14 +538,11 @@ public Builder setAccessTuple(
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public Builder mergeAccessTuple(
-        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
+    public Builder mergeAccessTuple(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
       if (accessTupleBuilder_ == null) {
         if (accessTuple_ != null) {
           accessTuple_ =
-              google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder(accessTuple_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder(accessTuple_).mergeFrom(value).buildPartial();
         } else {
           accessTuple_ = value;
         }
@@ -629,8 +554,6 @@ public Builder mergeAccessTuple(
       return this;
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -650,8 +573,6 @@ public Builder clearAccessTuple() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -659,15 +580,12 @@ public Builder clearAccessTuple() {
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder
-        getAccessTupleBuilder() {
-
+    public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder getAccessTupleBuilder() {
+      
       onChanged();
       return getAccessTupleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -675,19 +593,15 @@ public Builder clearAccessTuple() {
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder
-        getAccessTupleOrBuilder() {
+    public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder getAccessTupleOrBuilder() {
       if (accessTupleBuilder_ != null) {
         return accessTupleBuilder_.getMessageOrBuilder();
       } else {
-        return accessTuple_ == null
-            ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()
-            : accessTuple_;
+        return accessTuple_ == null ?
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_;
       }
     }
     /**
-     *
-     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -696,24 +610,21 @@ public Builder clearAccessTuple() {
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple,
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder,
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>
+        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> 
         getAccessTupleFieldBuilder() {
       if (accessTupleBuilder_ == null) {
-        accessTupleBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                google.cloud.policytroubleshooter.v1.Explanations.AccessTuple,
-                google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder,
-                google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>(
-                getAccessTuple(), getParentForChildren(), isClean());
+        accessTupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>(
+                getAccessTuple(),
+                getParentForChildren(),
+                isClean());
         accessTuple_ = null;
       }
       return accessTupleBuilder_;
     }
-
     @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);
     }
 
@@ -723,32 +634,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
-  private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest();
   }
 
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
-      getDefaultInstance() {
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TroubleshootIamPolicyRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new TroubleshootIamPolicyRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TroubleshootIamPolicyRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new TroubleshootIamPolicyRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -760,8 +669,9 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
index 50037ee..33c4d50 100644
--- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/policytroubleshooter/v1/checker.proto
 
 package com.google.cloud.policytroubleshooter.v1;
 
-public interface TroubleshootIamPolicyRequestOrBuilder
-    extends
+public interface TroubleshootIamPolicyRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return Whether the accessTuple field is set. */ boolean hasAccessTuple(); /** - * - * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; - * * @return The accessTuple. */ google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple(); /** - * - * *
    * The information to use for checking whether a member has a permission for a
    * resource.
diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
similarity index 74%
rename from proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
index 34001de..0dbcb15 100644
--- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/policytroubleshooter/v1/checker.proto
 
 package com.google.cloud.policytroubleshooter.v1;
 
 /**
- *
- *
  * 
  * Response for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
  * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse} */ -public final class TroubleshootIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TroubleshootIamPolicyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) TroubleshootIamPolicyResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TroubleshootIamPolicyResponse.newBuilder() to construct. private TroubleshootIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TroubleshootIamPolicyResponse() { access_ = 0; explainedPolicies_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private TroubleshootIamPolicyResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TroubleshootIamPolicyResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TroubleshootIamPolicyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private TroubleshootIamPolicyResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - access_ = rawValue; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - explainedPolicies_ = - new java.util.ArrayList< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - explainedPolicies_.add( - input.readMessage( - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.parser(), - extensionRegistry)); - break; + access_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + explainedPolicies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + explainedPolicies_.add( + input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private TroubleshootIamPolicyResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { explainedPolicies_ = java.util.Collections.unmodifiableList(explainedPolicies_); @@ -116,68 +94,51 @@ private TroubleshootIamPolicyResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); } public static final int ACCESS_FIELD_NUMBER = 1; private int access_; /** - * - * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } public static final int EXPLAINED_POLICIES_FIELD_NUMBER = 2; - private java.util.List - explainedPolicies_; + private java.util.List explainedPolicies_; /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -189,17 +150,13 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ @java.lang.Override - public java.util.List - getExplainedPoliciesList() { + public java.util.List getExplainedPoliciesList() { return explainedPolicies_; } /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -211,18 +168,14 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ @java.lang.Override - public java.util.List< - ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + public java.util.List getExplainedPoliciesOrBuilderList() { return explainedPolicies_; } /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -234,16 +187,13 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ @java.lang.Override public int getExplainedPoliciesCount() { return explainedPolicies_.size(); } /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -255,17 +205,13 @@ public int getExplainedPoliciesCount() {
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index) { return explainedPolicies_.get(index); } /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -277,17 +223,15 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder - getExplainedPoliciesOrBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( + int index) { return explainedPolicies_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,10 +243,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (access_ - != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, access_); } for (int i = 0; i < explainedPolicies_.size(); i++) { @@ -317,14 +260,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (access_ - != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_); + if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, access_); } for (int i = 0; i < explainedPolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, explainedPolicies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, explainedPolicies_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -334,16 +276,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse)) { return super.equals(obj); } - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other = - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) obj; + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) obj; if (access_ != other.access_) return false; - if (!getExplainedPoliciesList().equals(other.getExplainedPoliciesList())) return false; + if (!getExplainedPoliciesList() + .equals(other.getExplainedPoliciesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,147 +309,135 @@ public int hashCode() { } public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse prototype) { + public static Builder newBuilder(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse 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 for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); } - // Construct using - // com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.newBuilder() + // Construct using com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExplainedPoliciesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -523,22 +453,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto - .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - getDefaultInstanceForType() { - return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - .getDefaultInstance(); + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstanceForType() { + return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse build() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = - buildPartial(); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -547,8 +474,7 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse bu @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse buildPartial() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = - new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(this); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(this); int from_bitField0_ = bitField0_; result.access_ = access_; if (explainedPoliciesBuilder_ == null) { @@ -568,51 +494,46 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) { - return mergeFrom( - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) other); + return mergeFrom((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other) { - if (other - == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other) { + if (other == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance()) return this; if (other.access_ != 0) { setAccessValue(other.getAccessValue()); } @@ -634,10 +555,9 @@ public Builder mergeFrom( explainedPoliciesBuilder_ = null; explainedPolicies_ = other.explainedPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - explainedPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExplainedPoliciesFieldBuilder() - : null; + explainedPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExplainedPoliciesFieldBuilder() : null; } else { explainedPoliciesBuilder_.addAllMessages(other.explainedPolicies_); } @@ -662,9 +582,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -673,76 +591,59 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int access_ = 0; /** - * - * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } /** - * - * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @param value The access to set. * @return This builder for chaining. */ @@ -750,52 +651,40 @@ public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.Acces if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; } - private java.util.List - explainedPolicies_ = java.util.Collections.emptyList(); - + private java.util.List explainedPolicies_ = + java.util.Collections.emptyList(); private void ensureExplainedPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - explainedPolicies_ = - new java.util.ArrayList< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>( - explainedPolicies_); + explainedPolicies_ = new java.util.ArrayList(explainedPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> - explainedPoliciesBuilder_; + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> explainedPoliciesBuilder_; /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -807,11 +696,9 @@ private void ensureExplainedPoliciesIsMutable() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public java.util.List - getExplainedPoliciesList() { + public java.util.List getExplainedPoliciesList() { if (explainedPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(explainedPolicies_); } else { @@ -819,8 +706,6 @@ private void ensureExplainedPoliciesIsMutable() { } } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -832,8 +717,7 @@ private void ensureExplainedPoliciesIsMutable() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public int getExplainedPoliciesCount() { if (explainedPoliciesBuilder_ == null) { @@ -843,8 +727,6 @@ public int getExplainedPoliciesCount() { } } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -856,11 +738,9 @@ public int getExplainedPoliciesCount() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index) { if (explainedPoliciesBuilder_ == null) { return explainedPolicies_.get(index); } else { @@ -868,8 +748,6 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl } } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -881,8 +759,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder setExplainedPolicies( int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { @@ -899,8 +776,6 @@ public Builder setExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -912,12 +787,10 @@ public Builder setExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder setExplainedPolicies( - int index, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { + int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); explainedPolicies_.set(index, builderForValue.build()); @@ -928,8 +801,6 @@ public Builder setExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -941,11 +812,9 @@ public Builder setExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public Builder addExplainedPolicies( - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { + public Builder addExplainedPolicies(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { if (explainedPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -959,8 +828,6 @@ public Builder addExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -972,8 +839,7 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder addExplainedPolicies( int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { @@ -990,8 +856,6 @@ public Builder addExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1003,8 +867,7 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder addExplainedPolicies( google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { @@ -1018,8 +881,6 @@ public Builder addExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1031,12 +892,10 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder addExplainedPolicies( - int index, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { + int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); explainedPolicies_.add(index, builderForValue.build()); @@ -1047,8 +906,6 @@ public Builder addExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1060,16 +917,14 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder addAllExplainedPolicies( - java.lang.Iterable< - ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy> - values) { + java.lang.Iterable values) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, explainedPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, explainedPolicies_); onChanged(); } else { explainedPoliciesBuilder_.addAllMessages(values); @@ -1077,8 +932,6 @@ public Builder addAllExplainedPolicies( return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1090,8 +943,7 @@ public Builder addAllExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder clearExplainedPolicies() { if (explainedPoliciesBuilder_ == null) { @@ -1104,8 +956,6 @@ public Builder clearExplainedPolicies() { return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1117,8 +967,7 @@ public Builder clearExplainedPolicies() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ public Builder removeExplainedPolicies(int index) { if (explainedPoliciesBuilder_ == null) { @@ -1131,8 +980,6 @@ public Builder removeExplainedPolicies(int index) { return this; } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1144,16 +991,13 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder - getExplainedPoliciesBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder getExplainedPoliciesBuilder( + int index) { return getExplainedPoliciesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1165,20 +1009,16 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder - getExplainedPoliciesOrBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( + int index) { if (explainedPoliciesBuilder_ == null) { - return explainedPolicies_.get(index); - } else { + return explainedPolicies_.get(index); } else { return explainedPoliciesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1190,12 +1030,10 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public java.util.List< - ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> - getExplainedPoliciesOrBuilderList() { + public java.util.List + getExplainedPoliciesOrBuilderList() { if (explainedPoliciesBuilder_ != null) { return explainedPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -1203,8 +1041,6 @@ public Builder removeExplainedPolicies(int index) { } } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1216,19 +1052,13 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder - addExplainedPoliciesBuilder() { - return getExplainedPoliciesFieldBuilder() - .addBuilder( - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - .getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder() { + return getExplainedPoliciesFieldBuilder().addBuilder( + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()); } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1240,20 +1070,14 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder - addExplainedPoliciesBuilder(int index) { - return getExplainedPoliciesFieldBuilder() - .addBuilder( - index, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - .getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder( + int index) { + return getExplainedPoliciesFieldBuilder().addBuilder( + index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()); } /** - * - * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1265,25 +1089,18 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - public java.util.List - getExplainedPoliciesBuilderList() { + public java.util.List + getExplainedPoliciesBuilderList() { return getExplainedPoliciesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> getExplainedPoliciesFieldBuilder() { if (explainedPoliciesBuilder_ == null) { - explainedPoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>( + explainedPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>( explainedPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1292,9 +1109,9 @@ public Builder removeExplainedPolicies(int index) { } return explainedPoliciesBuilder_; } - @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); } @@ -1304,32 +1121,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) - private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - getDefaultInstance() { + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TroubleshootIamPolicyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TroubleshootIamPolicyResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TroubleshootIamPolicyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TroubleshootIamPolicyResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,8 +1156,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse - getDefaultInstanceForType() { + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java index 559ce96..85a2ecf 100644 --- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.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/cloud/policytroubleshooter/v1/checker.proto package com.google.cloud.policytroubleshooter.v1; -public interface TroubleshootIamPolicyResponseOrBuilder - extends +public interface TroubleshootIamPolicyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** - * - * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -64,14 +40,11 @@ public interface TroubleshootIamPolicyResponseOrBuilder
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - java.util.List + java.util.List getExplainedPoliciesList(); /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -83,13 +56,10 @@ public interface TroubleshootIamPolicyResponseOrBuilder
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index); /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -101,13 +71,10 @@ public interface TroubleshootIamPolicyResponseOrBuilder
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ int getExplainedPoliciesCount(); /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -119,15 +86,11 @@ public interface TroubleshootIamPolicyResponseOrBuilder
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - java.util.List< - ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + java.util.List getExplainedPoliciesOrBuilderList(); /** - * - * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -139,9 +102,8 @@ public interface TroubleshootIamPolicyResponseOrBuilder
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; - * + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; */ - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder - getExplainedPoliciesOrBuilder(int index); + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( + int index); } diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java similarity index 69% rename from proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java index 6504036..f53fa71 100644 --- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java +++ b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/policytroubleshooter/v1/explanations.proto @@ -20,25 +5,25 @@ public final class Explanations { private Explanations() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * - * *
    * Whether a member has a permission for a resource.
    * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.AccessState} */ - public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Reserved for future use.
      * 
@@ -47,8 +32,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_STATE_UNSPECIFIED(0), /** - * - * *
      * The member has the permission.
      * 
@@ -57,8 +40,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ GRANTED(1), /** - * - * *
      * The member does not have the permission.
      * 
@@ -67,8 +48,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ NOT_GRANTED(2), /** - * - * *
      * The member has the permission only if a condition expression evaluates to
      * `true`.
@@ -78,8 +57,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNKNOWN_CONDITIONAL(3),
     /**
-     *
-     *
      * 
      * The sender of the request does not have access to all of the policies that
      * Policy Troubleshooter needs to evaluate.
@@ -92,8 +69,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Reserved for future use.
      * 
@@ -102,8 +77,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The member has the permission.
      * 
@@ -112,8 +85,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GRANTED_VALUE = 1; /** - * - * *
      * The member does not have the permission.
      * 
@@ -122,8 +93,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_GRANTED_VALUE = 2; /** - * - * *
      * The member has the permission only if a condition expression evaluates to
      * `true`.
@@ -133,8 +102,6 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNKNOWN_CONDITIONAL_VALUE = 3;
     /**
-     *
-     *
      * 
      * The sender of the request does not have access to all of the policies that
      * Policy Troubleshooter needs to evaluate.
@@ -144,6 +111,7 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNKNOWN_INFO_DENIED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -168,55 +136,51 @@ public static AccessState valueOf(int value) {
      */
     public static AccessState forNumber(int value) {
       switch (value) {
-        case 0:
-          return ACCESS_STATE_UNSPECIFIED;
-        case 1:
-          return GRANTED;
-        case 2:
-          return NOT_GRANTED;
-        case 3:
-          return UNKNOWN_CONDITIONAL;
-        case 4:
-          return UNKNOWN_INFO_DENIED;
-        default:
-          return null;
+        case 0: return ACCESS_STATE_UNSPECIFIED;
+        case 1: return GRANTED;
+        case 2: return NOT_GRANTED;
+        case 3: return UNKNOWN_CONDITIONAL;
+        case 4: return UNKNOWN_INFO_DENIED;
+        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<
+        AccessState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AccessState findValueByNumber(int number) {
+              return AccessState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AccessState findValueByNumber(int number) {
-            return AccessState.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AccessState[] VALUES = values();
 
-    public static AccessState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AccessState 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;
@@ -234,8 +198,6 @@ private AccessState(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The extent to which a single data point contributes to an overall
    * determination.
@@ -243,10 +205,9 @@ private AccessState(int value) {
    *
    * Protobuf enum {@code google.cloud.policytroubleshooter.v1.HeuristicRelevance}
    */
-  public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnum {
+  public enum HeuristicRelevance
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Reserved for future use.
      * 
@@ -255,8 +216,6 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu */ HEURISTIC_RELEVANCE_UNSPECIFIED(0), /** - * - * *
      * The data point has a limited effect on the result. Changing the data point
      * is unlikely to affect the overall determination.
@@ -266,8 +225,6 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu
      */
     NORMAL(1),
     /**
-     *
-     *
      * 
      * The data point has a strong effect on the result. Changing the data point
      * is likely to affect the overall determination.
@@ -280,8 +237,6 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu
     ;
 
     /**
-     *
-     *
      * 
      * Reserved for future use.
      * 
@@ -290,8 +245,6 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu */ public static final int HEURISTIC_RELEVANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The data point has a limited effect on the result. Changing the data point
      * is unlikely to affect the overall determination.
@@ -301,8 +254,6 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int NORMAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * The data point has a strong effect on the result. Changing the data point
      * is likely to affect the overall determination.
@@ -312,6 +263,7 @@ public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int HIGH_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -336,14 +288,10 @@ public static HeuristicRelevance valueOf(int value) {
      */
     public static HeuristicRelevance forNumber(int value) {
       switch (value) {
-        case 0:
-          return HEURISTIC_RELEVANCE_UNSPECIFIED;
-        case 1:
-          return NORMAL;
-        case 2:
-          return HIGH;
-        default:
-          return null;
+        case 0: return HEURISTIC_RELEVANCE_UNSPECIFIED;
+        case 1: return NORMAL;
+        case 2: return HIGH;
+        default: return null;
       }
     }
 
@@ -351,31 +299,29 @@ public static HeuristicRelevance forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        HeuristicRelevance> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public HeuristicRelevance findValueByNumber(int number) {
+              return HeuristicRelevance.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public HeuristicRelevance findValueByNumber(int number) {
-                return HeuristicRelevance.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final HeuristicRelevance[] VALUES = values();
@@ -383,7 +329,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static HeuristicRelevance 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;
@@ -400,14 +347,11 @@ private HeuristicRelevance(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.policytroubleshooter.v1.HeuristicRelevance)
   }
 
-  public interface AccessTupleOrBuilder
-      extends
+  public interface AccessTupleOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.AccessTuple)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -418,13 +362,10 @@ public interface AccessTupleOrBuilder
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The principal. */ java.lang.String getPrincipal(); /** - * - * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -435,14 +376,12 @@ public interface AccessTupleOrBuilder
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for principal. */ - com.google.protobuf.ByteString getPrincipalBytes(); + com.google.protobuf.ByteString + getPrincipalBytes(); /** - * - * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -451,13 +390,10 @@ public interface AccessTupleOrBuilder
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** - * - * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -466,14 +402,12 @@ public interface AccessTupleOrBuilder
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString getFullResourceNameBytes(); + com.google.protobuf.ByteString + getFullResourceNameBytes(); /** - * - * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -483,13 +417,10 @@ public interface AccessTupleOrBuilder
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The permission. */ java.lang.String getPermission(); /** - * - * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -499,30 +430,27 @@ public interface AccessTupleOrBuilder
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for permission. */ - com.google.protobuf.ByteString getPermissionBytes(); + com.google.protobuf.ByteString + getPermissionBytes(); } /** - * - * *
    * Information about the member, resource, and permission to check.
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.AccessTuple} */ - public static final class AccessTuple extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AccessTuple extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.AccessTuple) AccessTupleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessTuple.newBuilder() to construct. private AccessTuple(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessTuple() { principal_ = ""; fullResourceName_ = ""; @@ -531,15 +459,16 @@ private AccessTuple() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessTuple(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessTuple( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -558,34 +487,31 @@ private AccessTuple( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - principal_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + principal_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - fullResourceName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + fullResourceName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - permission_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + permission_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,33 +519,29 @@ private AccessTuple( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); } public static final int PRINCIPAL_FIELD_NUMBER = 1; private volatile java.lang.Object principal_; /** - * - * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -630,7 +552,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The principal. */ @java.lang.Override @@ -639,15 +560,14 @@ public java.lang.String getPrincipal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** - * - * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -658,15 +578,16 @@ public java.lang.String getPrincipal() {
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for principal. */ @java.lang.Override - public com.google.protobuf.ByteString getPrincipalBytes() { + public com.google.protobuf.ByteString + getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principal_ = b; return b; } else { @@ -677,8 +598,6 @@ public com.google.protobuf.ByteString getPrincipalBytes() { public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** - * - * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -687,7 +606,6 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ @java.lang.Override @@ -696,15 +614,14 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** - * - * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -713,15 +630,16 @@ public java.lang.String getFullResourceName() {
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -732,8 +650,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { public static final int PERMISSION_FIELD_NUMBER = 3; private volatile java.lang.Object permission_; /** - * - * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -743,7 +659,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() {
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The permission. */ @java.lang.Override @@ -752,15 +667,14 @@ public java.lang.String getPermission() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; } } /** - * - * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -770,15 +684,16 @@ public java.lang.String getPermission() {
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for permission. */ @java.lang.Override - public com.google.protobuf.ByteString getPermissionBytes() { + public com.google.protobuf.ByteString + getPermissionBytes() { java.lang.Object ref = permission_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); permission_ = b; return b; } else { @@ -787,7 +702,6 @@ public com.google.protobuf.ByteString getPermissionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -799,7 +713,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(principal_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); } @@ -835,17 +750,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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other = - (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) obj; + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other = (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) obj; - if (!getPrincipal().equals(other.getPrincipal())) return false; - if (!getFullResourceName().equals(other.getFullResourceName())) return false; - if (!getPermission().equals(other.getPermission())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (!getFullResourceName() + .equals(other.getFullResourceName())) return false; + if (!getPermission() + .equals(other.getPermission())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -869,94 +786,87 @@ public int hashCode() { } public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple prototype) { + public static Builder newBuilder(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 @@ -966,32 +876,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about the member, resource, and permission to check.
      * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.AccessTuple} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.AccessTuple) google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); } // Construct using google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder() @@ -999,15 +904,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1021,14 +927,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple - getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstanceForType() { return google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance(); } @@ -1043,8 +948,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple build() { @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple buildPartial() { - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple result = - new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(this); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple result = new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(this); result.principal_ = principal_; result.fullResourceName_ = fullResourceName_; result.permission_ = permission_; @@ -1056,52 +960,46 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) { - return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) other); + return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.AccessTuple)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other) { - if (other - == google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()) - return this; + public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other) { + if (other == google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()) return this; if (!other.getPrincipal().isEmpty()) { principal_ = other.principal_; onChanged(); @@ -1133,9 +1031,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) - e.getUnfinishedMessage(); + parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1147,8 +1043,6 @@ public Builder mergeFrom( private java.lang.Object principal_ = ""; /** - * - * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1159,13 +1053,13 @@ public Builder mergeFrom(
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; @@ -1174,8 +1068,6 @@ public java.lang.String getPrincipal() { } } /** - * - * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1186,14 +1078,15 @@ public java.lang.String getPrincipal() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for principal. */ - public com.google.protobuf.ByteString getPrincipalBytes() { + public com.google.protobuf.ByteString + getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principal_ = b; return b; } else { @@ -1201,8 +1094,6 @@ public com.google.protobuf.ByteString getPrincipalBytes() { } } /** - * - * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1213,22 +1104,20 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The principal to set. * @return This builder for chaining. */ - public Builder setPrincipal(java.lang.String value) { + public Builder setPrincipal( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principal_ = value; onChanged(); return this; } /** - * - * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1239,18 +1128,15 @@ public Builder setPrincipal(java.lang.String value) {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPrincipal() { - + principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** - * - * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1261,16 +1147,16 @@ public Builder clearPrincipal() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for principal to set. * @return This builder for chaining. */ - public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principal_ = value; onChanged(); return this; @@ -1278,8 +1164,6 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { private java.lang.Object fullResourceName_ = ""; /** - * - * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1288,13 +1172,13 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -1303,8 +1187,6 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1313,14 +1195,15 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -1328,8 +1211,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1338,22 +1219,20 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName(java.lang.String value) { + public Builder setFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** - * - * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1362,18 +1241,15 @@ public Builder setFullResourceName(java.lang.String value) {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** - * - * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1382,16 +1258,16 @@ public Builder clearFullResourceName() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -1399,8 +1275,6 @@ public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object permission_ = ""; /** - * - * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1410,13 +1284,13 @@ public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The permission. */ public java.lang.String getPermission() { java.lang.Object ref = permission_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; @@ -1425,8 +1299,6 @@ public java.lang.String getPermission() { } } /** - * - * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1436,14 +1308,15 @@ public java.lang.String getPermission() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for permission. */ - public com.google.protobuf.ByteString getPermissionBytes() { + public com.google.protobuf.ByteString + getPermissionBytes() { java.lang.Object ref = permission_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); permission_ = b; return b; } else { @@ -1451,8 +1324,6 @@ public com.google.protobuf.ByteString getPermissionBytes() { } } /** - * - * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1462,22 +1333,20 @@ public com.google.protobuf.ByteString getPermissionBytes() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The permission to set. * @return This builder for chaining. */ - public Builder setPermission(java.lang.String value) { + public Builder setPermission( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + permission_ = value; onChanged(); return this; } /** - * - * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1487,18 +1356,15 @@ public Builder setPermission(java.lang.String value) {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPermission() { - + permission_ = getDefaultInstance().getPermission(); onChanged(); return this; } /** - * - * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1508,21 +1374,20 @@ public Builder clearPermission() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for permission to set. * @return This builder for chaining. */ - public Builder setPermissionBytes(com.google.protobuf.ByteString value) { + public Builder setPermissionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + permission_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1535,32 +1400,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.AccessTuple) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.AccessTuple) - private static final google.cloud.policytroubleshooter.v1.Explanations.AccessTuple - DEFAULT_INSTANCE; - + private static final google.cloud.policytroubleshooter.v1.Explanations.AccessTuple DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple - getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessTuple parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessTuple(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessTuple parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessTuple(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1572,20 +1435,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple - getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ExplainedPolicyOrBuilder - extends + public interface ExplainedPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.ExplainedPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1597,13 +1457,10 @@ public interface ExplainedPolicyOrBuilder
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** - * - * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1615,14 +1472,11 @@ public interface ExplainedPolicyOrBuilder
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** - * - * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1633,13 +1487,10 @@ public interface ExplainedPolicyOrBuilder
      * 
* * string full_resource_name = 2; - * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** - * - * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1650,14 +1501,12 @@ public interface ExplainedPolicyOrBuilder
      * 
* * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString getFullResourceNameBytes(); + com.google.protobuf.ByteString + getFullResourceNameBytes(); /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1665,13 +1514,10 @@ public interface ExplainedPolicyOrBuilder
      * 
* * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1679,13 +1525,10 @@ public interface ExplainedPolicyOrBuilder
      * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1697,8 +1540,6 @@ public interface ExplainedPolicyOrBuilder
     com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
     /**
-     *
-     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1706,15 +1547,11 @@ public interface ExplainedPolicyOrBuilder
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - java.util.List + java.util.List getBindingExplanationsList(); /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1722,15 +1559,10 @@ public interface ExplainedPolicyOrBuilder
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations( - int index); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index); /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1738,14 +1570,10 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ int getBindingExplanationsCount(); /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1753,16 +1581,11 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - java.util.List< - ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> + java.util.List getBindingExplanationsOrBuilderList(); /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1770,16 +1593,12 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder - getBindingExplanationsOrBuilder(int index); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( + int index); /** - * - * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1788,13 +1607,10 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** - * - * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1803,14 +1619,11 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); } /** - * - * *
    * Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
    * to the access check.
@@ -1818,16 +1631,15 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingE
    *
    * Protobuf type {@code google.cloud.policytroubleshooter.v1.ExplainedPolicy}
    */
-  public static final class ExplainedPolicy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ExplainedPolicy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.ExplainedPolicy)
       ExplainedPolicyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ExplainedPolicy.newBuilder() to construct.
     private ExplainedPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ExplainedPolicy() {
       access_ = 0;
       fullResourceName_ = "";
@@ -1837,15 +1649,16 @@ private ExplainedPolicy() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ExplainedPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ExplainedPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1865,63 +1678,53 @@ private ExplainedPolicy(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
-
-                access_ = rawValue;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 8: {
+              int rawValue = input.readEnum();
 
-                fullResourceName_ = s;
-                break;
-              }
-            case 26:
-              {
-                com.google.iam.v1.Policy.Builder subBuilder = null;
-                if (policy_ != null) {
-                  subBuilder = policy_.toBuilder();
-                }
-                policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(policy_);
-                  policy_ = subBuilder.buildPartial();
-                }
+              access_ = rawValue;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                break;
+              fullResourceName_ = s;
+              break;
+            }
+            case 26: {
+              com.google.iam.v1.Policy.Builder subBuilder = null;
+              if (policy_ != null) {
+                subBuilder = policy_.toBuilder();
               }
-            case 34:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  bindingExplanations_ =
-                      new java.util.ArrayList<
-                          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                bindingExplanations_.add(
-                    input.readMessage(
-                        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-                            .parser(),
-                        extensionRegistry));
-                break;
+              policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(policy_);
+                policy_ = subBuilder.buildPartial();
               }
-            case 40:
-              {
-                int rawValue = input.readEnum();
 
-                relevance_ = rawValue;
-                break;
+              break;
+            }
+            case 34: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                bindingExplanations_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              bindingExplanations_.add(
+                  input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.parser(), extensionRegistry));
+              break;
+            }
+            case 40: {
+              int rawValue = input.readEnum();
+
+              relevance_ = rawValue;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1929,7 +1732,8 @@ private ExplainedPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           bindingExplanations_ = java.util.Collections.unmodifiableList(bindingExplanations_);
@@ -1938,27 +1742,22 @@ private ExplainedPolicy(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations
-          .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return google.cloud.policytroubleshooter.v1.Explanations
-          .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
+      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class,
-              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
+              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
     }
 
     public static final int ACCESS_FIELD_NUMBER = 1;
     private int access_;
     /**
-     *
-     *
      * 
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1970,16 +1769,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1991,24 +1786,17 @@ public int getAccessValue() {
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** - * - * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2019,7 +1807,6 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
      * 
* * string full_resource_name = 2; - * * @return The fullResourceName. */ @java.lang.Override @@ -2028,15 +1815,14 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** - * - * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2047,15 +1833,16 @@ public java.lang.String getFullResourceName() {
      * 
* * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -2066,8 +1853,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { public static final int POLICY_FIELD_NUMBER = 3; private com.google.iam.v1.Policy policy_; /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -2075,7 +1860,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() {
      * 
* * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -2083,8 +1867,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -2092,7 +1874,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ @java.lang.Override @@ -2100,8 +1881,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -2116,11 +1895,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     }
 
     public static final int BINDING_EXPLANATIONS_FIELD_NUMBER = 4;
-    private java.util.List
-        bindingExplanations_;
+    private java.util.List bindingExplanations_;
     /**
-     *
-     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -2128,18 +1904,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ @java.lang.Override - public java.util.List - getBindingExplanationsList() { + public java.util.List getBindingExplanationsList() { return bindingExplanations_; } /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -2147,19 +1918,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ @java.lang.Override - public java.util.List< - ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> + public java.util.List getBindingExplanationsOrBuilderList() { return bindingExplanations_; } /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -2167,17 +1933,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ @java.lang.Override public int getBindingExplanationsCount() { return bindingExplanations_.size(); } /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -2185,18 +1947,13 @@ public int getBindingExplanationsCount() {
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - getBindingExplanations(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index) { return bindingExplanations_.get(index); } /** - * - * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -2204,21 +1961,17 @@ public int getBindingExplanationsCount() {
      * is omitted.
      * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder - getBindingExplanationsOrBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( + int index) { return bindingExplanations_.get(index); } public static final int RELEVANCE_FIELD_NUMBER = 5; private int relevance_; /** - * - * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -2227,16 +1980,12 @@ public int getBindingExplanationsCount() {
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -2245,21 +1994,15 @@ public int getRelevanceValue() {
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The relevance. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2271,10 +2014,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (access_ - != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, access_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { @@ -2286,10 +2028,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < bindingExplanations_.size(); i++) { output.writeMessage(4, bindingExplanations_.get(i)); } - if (relevance_ - != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - .HEURISTIC_RELEVANCE_UNSPECIFIED - .getNumber()) { + if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { output.writeEnum(5, relevance_); } unknownFields.writeTo(output); @@ -2301,27 +2040,24 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (access_ - != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_); + if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, access_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullResourceName_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPolicy()); } for (int i = 0; i < bindingExplanations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, bindingExplanations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, bindingExplanations_.get(i)); } - if (relevance_ - != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - .HEURISTIC_RELEVANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, relevance_); + if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, relevance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2331,21 +2067,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other = - (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) obj; + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other = (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) obj; if (access_ != other.access_) return false; - if (!getFullResourceName().equals(other.getFullResourceName())) return false; + if (!getFullResourceName() + .equals(other.getFullResourceName())) 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 (!getBindingExplanationsList().equals(other.getBindingExplanationsList())) return false; + if (!getBindingExplanationsList() + .equals(other.getBindingExplanationsList())) return false; if (relevance_ != other.relevance_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2378,95 +2116,87 @@ public int hashCode() { } public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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( - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy prototype) { + public static Builder newBuilder(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 @@ -2476,8 +2206,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
      * to the access check.
@@ -2485,43 +2213,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.policytroubleshooter.v1.ExplainedPolicy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.ExplainedPolicy)
         google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class,
-                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
+                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
       }
 
-      // Construct using
-      // google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.newBuilder()
+      // Construct using google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getBindingExplanationsFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2547,16 +2271,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
       }
 
       @java.lang.Override
-      public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
-          getDefaultInstanceForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
-            .getDefaultInstance();
+      public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstanceForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2570,8 +2292,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy build()
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy buildPartial() {
-        google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy result =
-            new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(this);
+        google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy result = new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(this);
         int from_bitField0_ = bitField0_;
         result.access_ = access_;
         result.fullResourceName_ = fullResourceName_;
@@ -2598,53 +2319,46 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy buildPa
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) {
-          return mergeFrom(
-              (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) other);
+          return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other) {
-        if (other
-            == google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other) {
+        if (other == google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()) return this;
         if (other.access_ != 0) {
           setAccessValue(other.getAccessValue());
         }
@@ -2673,10 +2387,9 @@ public Builder mergeFrom(
               bindingExplanationsBuilder_ = null;
               bindingExplanations_ = other.bindingExplanations_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              bindingExplanationsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getBindingExplanationsFieldBuilder()
-                      : null;
+              bindingExplanationsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getBindingExplanationsFieldBuilder() : null;
             } else {
               bindingExplanationsBuilder_.addAllMessages(other.bindingExplanations_);
             }
@@ -2704,9 +2417,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)
-                  e.getUnfinishedMessage();
+          parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2715,13 +2426,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private int access_ = 0;
       /**
-       *
-       *
        * 
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2733,16 +2441,12 @@ public Builder mergeFrom(
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2754,19 +2458,16 @@ public int getAccessValue() {
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** - * - * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2778,21 +2479,15 @@ public Builder setAccessValue(int value) {
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } /** - * - * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2804,23 +2499,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @param value The access to set. * @return This builder for chaining. */ - public Builder setAccess( - google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { + public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2832,11 +2523,10 @@ public Builder setAccess(
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; - * * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; @@ -2844,8 +2534,6 @@ public Builder clearAccess() { private java.lang.Object fullResourceName_ = ""; /** - * - * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2856,13 +2544,13 @@ public Builder clearAccess() {
        * 
* * string full_resource_name = 2; - * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -2871,8 +2559,6 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2883,14 +2569,15 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -2898,8 +2585,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2910,22 +2595,20 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() {
        * 
* * string full_resource_name = 2; - * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName(java.lang.String value) { + public Builder setFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2936,18 +2619,15 @@ public Builder setFullResourceName(java.lang.String value) {
        * 
* * string full_resource_name = 2; - * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** - * - * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2958,16 +2638,16 @@ public Builder clearFullResourceName() {
        * 
* * string full_resource_name = 2; - * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -2975,13 +2655,8 @@ public Builder setFullResourceNameBytes(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_; /** - * - * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2989,15 +2664,12 @@ public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) {
        * 
* * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3005,7 +2677,6 @@ public boolean hasPolicy() {
        * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -3016,8 +2687,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3040,8 +2709,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3050,7 +2717,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
        *
        * .google.iam.v1.Policy policy = 3;
        */
-      public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+      public Builder setPolicy(
+          com.google.iam.v1.Policy.Builder builderForValue) {
         if (policyBuilder_ == null) {
           policy_ = builderForValue.build();
           onChanged();
@@ -3061,8 +2729,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3074,7 +2740,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       public Builder mergePolicy(com.google.iam.v1.Policy value) {
         if (policyBuilder_ == null) {
           if (policy_ != null) {
-            policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+            policy_ =
+              com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
           } else {
             policy_ = value;
           }
@@ -3086,8 +2753,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3108,8 +2773,6 @@ public Builder clearPolicy() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3119,13 +2782,11 @@ public Builder clearPolicy() {
        * .google.iam.v1.Policy policy = 3;
        */
       public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+        
         onChanged();
         return getPolicyFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3138,12 +2799,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_;
         }
       }
       /**
-       *
-       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -3153,44 +2813,32 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
        * .google.iam.v1.Policy policy = 3;
        */
       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_;
       }
 
-      private java.util.List
-          bindingExplanations_ = java.util.Collections.emptyList();
-
+      private java.util.List bindingExplanations_ =
+        java.util.Collections.emptyList();
       private void ensureBindingExplanationsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          bindingExplanations_ =
-              new java.util.ArrayList<
-                  google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation>(
-                  bindingExplanations_);
+          bindingExplanations_ = new java.util.ArrayList(bindingExplanations_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation,
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder,
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>
-          bindingExplanationsBuilder_;
+          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> bindingExplanationsBuilder_;
 
       /**
-       *
-       *
        * 
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3198,12 +2846,9 @@ private void ensureBindingExplanationsIsMutable() {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public java.util.List - getBindingExplanationsList() { + public java.util.List getBindingExplanationsList() { if (bindingExplanationsBuilder_ == null) { return java.util.Collections.unmodifiableList(bindingExplanations_); } else { @@ -3211,8 +2856,6 @@ private void ensureBindingExplanationsIsMutable() { } } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3220,9 +2863,7 @@ private void ensureBindingExplanationsIsMutable() {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public int getBindingExplanationsCount() { if (bindingExplanationsBuilder_ == null) { @@ -3232,8 +2873,6 @@ public int getBindingExplanationsCount() { } } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3241,12 +2880,9 @@ public int getBindingExplanationsCount() {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - getBindingExplanations(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index) { if (bindingExplanationsBuilder_ == null) { return bindingExplanations_.get(index); } else { @@ -3254,8 +2890,6 @@ public int getBindingExplanationsCount() { } } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3263,9 +2897,7 @@ public int getBindingExplanationsCount() {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder setBindingExplanations( int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { @@ -3282,8 +2914,6 @@ public Builder setBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3291,14 +2921,10 @@ public Builder setBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder setBindingExplanations( - int index, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - builderForValue) { + int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.set(index, builderForValue.build()); @@ -3309,8 +2935,6 @@ public Builder setBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3318,12 +2942,9 @@ public Builder setBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public Builder addBindingExplanations( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { + public Builder addBindingExplanations(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { if (bindingExplanationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3337,8 +2958,6 @@ public Builder addBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3346,9 +2965,7 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder addBindingExplanations( int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { @@ -3365,8 +2982,6 @@ public Builder addBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3374,13 +2989,10 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder addBindingExplanations( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - builderForValue) { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.add(builderForValue.build()); @@ -3391,8 +3003,6 @@ public Builder addBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3400,14 +3010,10 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder addBindingExplanations( - int index, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - builderForValue) { + int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.add(index, builderForValue.build()); @@ -3418,8 +3024,6 @@ public Builder addBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3427,17 +3031,14 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder addAllBindingExplanations( - java.lang.Iterable< - ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation> - values) { + java.lang.Iterable values) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingExplanations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingExplanations_); onChanged(); } else { bindingExplanationsBuilder_.addAllMessages(values); @@ -3445,8 +3046,6 @@ public Builder addAllBindingExplanations( return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3454,9 +3053,7 @@ public Builder addAllBindingExplanations(
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder clearBindingExplanations() { if (bindingExplanationsBuilder_ == null) { @@ -3469,8 +3066,6 @@ public Builder clearBindingExplanations() { return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3478,9 +3073,7 @@ public Builder clearBindingExplanations() {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ public Builder removeBindingExplanations(int index) { if (bindingExplanationsBuilder_ == null) { @@ -3493,8 +3086,6 @@ public Builder removeBindingExplanations(int index) { return this; } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3502,17 +3093,13 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - getBindingExplanationsBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder getBindingExplanationsBuilder( + int index) { return getBindingExplanationsFieldBuilder().getBuilder(index); } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3520,21 +3107,16 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder - getBindingExplanationsOrBuilder(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( + int index) { if (bindingExplanationsBuilder_ == null) { - return bindingExplanations_.get(index); - } else { + return bindingExplanations_.get(index); } else { return bindingExplanationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3542,14 +3124,10 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * - */ - public java.util.List< - ? extends - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> - getBindingExplanationsOrBuilderList() { + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + */ + public java.util.List + getBindingExplanationsOrBuilderList() { if (bindingExplanationsBuilder_ != null) { return bindingExplanationsBuilder_.getMessageOrBuilderList(); } else { @@ -3557,8 +3135,6 @@ public Builder removeBindingExplanations(int index) { } } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3566,20 +3142,13 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - addBindingExplanationsBuilder() { - return getBindingExplanationsFieldBuilder() - .addBuilder( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder addBindingExplanationsBuilder() { + return getBindingExplanationsFieldBuilder().addBuilder( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()); } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3587,21 +3156,14 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder - addBindingExplanationsBuilder(int index) { - return getBindingExplanationsFieldBuilder() - .addBuilder( - index, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder addBindingExplanationsBuilder( + int index) { + return getBindingExplanationsFieldBuilder().addBuilder( + index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()); } /** - * - * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3609,27 +3171,18 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; */ - public java.util.List< - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder> - getBindingExplanationsBuilderList() { + public java.util.List + getBindingExplanationsBuilderList() { return getBindingExplanationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> getBindingExplanationsFieldBuilder() { if (bindingExplanationsBuilder_ == null) { - bindingExplanationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>( + bindingExplanationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>( bindingExplanations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3641,8 +3194,6 @@ public Builder removeBindingExplanations(int index) { private int relevance_ = 0; /** - * - * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3651,16 +3202,12 @@ public Builder removeBindingExplanations(int index) {
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3669,19 +3216,16 @@ public int getRelevanceValue() {
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** - * - * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3690,22 +3234,15 @@ public Builder setRelevanceValue(int value) {
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } /** - * - * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3714,23 +3251,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getR
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance( - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3739,16 +3272,14 @@ public Builder setRelevance(
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; - * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3761,32 +3292,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.ExplainedPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.ExplainedPolicy) - private static final google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - DEFAULT_INSTANCE; - + private static final google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplainedPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExplainedPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplainedPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplainedPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3798,20 +3327,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy - getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BindingExplanationOrBuilder - extends + public interface BindingExplanationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.BindingExplanation) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -3822,16 +3348,11 @@ public interface BindingExplanationOrBuilder
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** - * - * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -3842,17 +3363,12 @@ public interface BindingExplanationOrBuilder
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** - * - * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -3861,13 +3377,10 @@ public interface BindingExplanationOrBuilder
      * 
* * string role = 2; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -3876,76 +3389,54 @@ public interface BindingExplanationOrBuilder
      * 
* * string role = 2; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The enum numeric value on the wire for rolePermission. */ int getRolePermissionValue(); /** - * - * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The rolePermission. */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - getRolePermission(); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission(); /** - * - * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The enum numeric value on the wire for rolePermissionRelevance. */ int getRolePermissionRelevanceValue(); /** - * - * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The rolePermissionRelevance. */ - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - getRolePermissionRelevance(); + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance(); /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3964,14 +3455,10 @@ public interface BindingExplanationOrBuilder
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ int getMembershipsCount(); /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3990,21 +3477,17 @@ public interface BindingExplanationOrBuilder
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + */ + boolean containsMemberships( + java.lang.String key); + /** + * Use {@link #getMembershipsMap()} instead. */ - boolean containsMemberships(java.lang.String key); - /** Use {@link #getMembershipsMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMemberships(); + java.util.Map + getMemberships(); /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -4023,18 +3506,11 @@ public interface BindingExplanationOrBuilder
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMembershipsMap(); + java.util.Map + getMembershipsMap(); /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -4053,21 +3529,15 @@ public interface BindingExplanationOrBuilder
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ /* nullable */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - getMembershipsOrDefault( - java.lang.String key, - /* nullable */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - defaultValue); +google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault( + java.lang.String key, + /* nullable */ +google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue); /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -4086,43 +3556,34 @@ public interface BindingExplanationOrBuilder
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - getMembershipsOrThrow(java.lang.String key); + + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( + java.lang.String key); /** - * - * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** - * - * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -4131,13 +3592,10 @@ public interface BindingExplanationOrBuilder
      * 
* * .google.type.Expr condition = 7; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -4146,13 +3604,10 @@ public interface BindingExplanationOrBuilder
      * 
* * .google.type.Expr condition = 7; - * * @return The condition. */ com.google.type.Expr getCondition(); /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -4165,8 +3620,6 @@ public interface BindingExplanationOrBuilder
     com.google.type.ExprOrBuilder getConditionOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Details about how a binding in a policy affects a member's ability to use a
    * permission.
@@ -4174,16 +3627,15 @@ public interface BindingExplanationOrBuilder
    *
    * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation}
    */
-  public static final class BindingExplanation extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BindingExplanation extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.BindingExplanation)
       BindingExplanationOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BindingExplanation.newBuilder() to construct.
     private BindingExplanation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private BindingExplanation() {
       access_ = 0;
       role_ = "";
@@ -4194,15 +3646,16 @@ private BindingExplanation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BindingExplanation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private BindingExplanation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4222,81 +3675,69 @@ private BindingExplanation(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
+            case 8: {
+              int rawValue = input.readEnum();
 
-                access_ = rawValue;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              access_ = rawValue;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                role_ = s;
-                break;
-              }
-            case 24:
-              {
-                int rawValue = input.readEnum();
+              role_ = s;
+              break;
+            }
+            case 24: {
+              int rawValue = input.readEnum();
 
-                rolePermission_ = rawValue;
-                break;
-              }
-            case 32:
-              {
-                int rawValue = input.readEnum();
+              rolePermission_ = rawValue;
+              break;
+            }
+            case 32: {
+              int rawValue = input.readEnum();
 
-                rolePermissionRelevance_ = rawValue;
-                break;
-              }
-            case 42:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  memberships_ =
-                      com.google.protobuf.MapField.newMapField(
-                          MembershipsDefaultEntryHolder.defaultEntry);
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                com.google.protobuf.MapEntry<
-                        java.lang.String,
-                        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-                            .AnnotatedMembership>
-                    memberships__ =
-                        input.readMessage(
-                            MembershipsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                memberships_.getMutableMap().put(memberships__.getKey(), memberships__.getValue());
-                break;
+              rolePermissionRelevance_ = rawValue;
+              break;
+            }
+            case 42: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                memberships_ = com.google.protobuf.MapField.newMapField(
+                    MembershipsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 48:
-              {
-                int rawValue = input.readEnum();
+              com.google.protobuf.MapEntry
+              memberships__ = input.readMessage(
+                  MembershipsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              memberships_.getMutableMap().put(
+                  memberships__.getKey(), memberships__.getValue());
+              break;
+            }
+            case 48: {
+              int rawValue = input.readEnum();
 
-                relevance_ = rawValue;
-                break;
+              relevance_ = rawValue;
+              break;
+            }
+            case 58: {
+              com.google.type.Expr.Builder subBuilder = null;
+              if (condition_ != null) {
+                subBuilder = condition_.toBuilder();
               }
-            case 58:
-              {
-                com.google.type.Expr.Builder subBuilder = null;
-                if (condition_ != null) {
-                  subBuilder = condition_.toBuilder();
-                }
-                condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(condition_);
-                  condition_ = subBuilder.buildPartial();
-                }
-
-                break;
+              condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(condition_);
+                condition_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4304,52 +3745,48 @@ private BindingExplanation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations
-          .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_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 internalGetMemberships();
         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 google.cloud.policytroubleshooter.v1.Explanations
-          .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
+      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class,
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Whether a role includes a specific permission.
      * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission} */ - public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { + public enum RolePermission + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Reserved for future use.
        * 
@@ -4358,8 +3795,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ ROLE_PERMISSION_UNSPECIFIED(0), /** - * - * *
        * The permission is included in the role.
        * 
@@ -4368,8 +3803,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ ROLE_PERMISSION_INCLUDED(1), /** - * - * *
        * The permission is not included in the role.
        * 
@@ -4378,8 +3811,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ ROLE_PERMISSION_NOT_INCLUDED(2), /** - * - * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -4391,8 +3822,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Reserved for future use.
        * 
@@ -4401,8 +3830,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROLE_PERMISSION_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The permission is included in the role.
        * 
@@ -4411,8 +3838,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROLE_PERMISSION_INCLUDED_VALUE = 1; /** - * - * *
        * The permission is not included in the role.
        * 
@@ -4421,8 +3846,6 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROLE_PERMISSION_NOT_INCLUDED_VALUE = 2; /** - * - * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -4431,6 +3854,7 @@ public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROLE_PERMISSION_UNKNOWN_INFO_DENIED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -4455,47 +3879,41 @@ public static RolePermission valueOf(int value) { */ public static RolePermission forNumber(int value) { switch (value) { - case 0: - return ROLE_PERMISSION_UNSPECIFIED; - case 1: - return ROLE_PERMISSION_INCLUDED; - case 2: - return ROLE_PERMISSION_NOT_INCLUDED; - case 3: - return ROLE_PERMISSION_UNKNOWN_INFO_DENIED; - default: - return null; + case 0: return ROLE_PERMISSION_UNSPECIFIED; + case 1: return ROLE_PERMISSION_INCLUDED; + case 2: return ROLE_PERMISSION_NOT_INCLUDED; + case 3: return ROLE_PERMISSION_UNKNOWN_INFO_DENIED; + 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< + RolePermission> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RolePermission findValueByNumber(int number) { + return RolePermission.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RolePermission findValueByNumber(int number) { - return RolePermission.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor().getEnumTypes().get(0); } private static final RolePermission[] VALUES = values(); @@ -4503,7 +3921,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RolePermission 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; @@ -4521,18 +3940,15 @@ private RolePermission(int value) { } /** - * - * *
      * Whether the binding includes the member.
      * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.BindingExplanation.Membership} */ - public enum Membership implements com.google.protobuf.ProtocolMessageEnum { + public enum Membership + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Reserved for future use.
        * 
@@ -4541,8 +3957,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ MEMBERSHIP_UNSPECIFIED(0), /** - * - * *
        * The binding includes the member. The member can be included directly
        * or indirectly. For example:
@@ -4555,8 +3969,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum {
        */
       MEMBERSHIP_INCLUDED(1),
       /**
-       *
-       *
        * 
        * The binding does not include the member.
        * 
@@ -4565,8 +3977,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ MEMBERSHIP_NOT_INCLUDED(2), /** - * - * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -4575,8 +3985,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ MEMBERSHIP_UNKNOWN_INFO_DENIED(3), /** - * - * *
        * The member is an unsupported type. Only Google Accounts and service
        * accounts are supported.
@@ -4589,8 +3997,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Reserved for future use.
        * 
@@ -4599,8 +4005,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMBERSHIP_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The binding includes the member. The member can be included directly
        * or indirectly. For example:
@@ -4613,8 +4017,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int MEMBERSHIP_INCLUDED_VALUE = 1;
       /**
-       *
-       *
        * 
        * The binding does not include the member.
        * 
@@ -4623,8 +4025,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMBERSHIP_NOT_INCLUDED_VALUE = 2; /** - * - * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -4633,8 +4033,6 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMBERSHIP_UNKNOWN_INFO_DENIED_VALUE = 3; /** - * - * *
        * The member is an unsupported type. Only Google Accounts and service
        * accounts are supported.
@@ -4644,6 +4042,7 @@ public enum Membership implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int MEMBERSHIP_UNKNOWN_UNSUPPORTED_VALUE = 4;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -4668,55 +4067,51 @@ public static Membership valueOf(int value) {
        */
       public static Membership forNumber(int value) {
         switch (value) {
-          case 0:
-            return MEMBERSHIP_UNSPECIFIED;
-          case 1:
-            return MEMBERSHIP_INCLUDED;
-          case 2:
-            return MEMBERSHIP_NOT_INCLUDED;
-          case 3:
-            return MEMBERSHIP_UNKNOWN_INFO_DENIED;
-          case 4:
-            return MEMBERSHIP_UNKNOWN_UNSUPPORTED;
-          default:
-            return null;
+          case 0: return MEMBERSHIP_UNSPECIFIED;
+          case 1: return MEMBERSHIP_INCLUDED;
+          case 2: return MEMBERSHIP_NOT_INCLUDED;
+          case 3: return MEMBERSHIP_UNKNOWN_INFO_DENIED;
+          case 4: return MEMBERSHIP_UNKNOWN_UNSUPPORTED;
+          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<
+          Membership> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Membership findValueByNumber(int number) {
+                return Membership.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Membership findValueByNumber(int number) {
-              return Membership.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor()
-            .getEnumTypes()
-            .get(1);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final Membership[] VALUES = values();
 
-      public static Membership valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Membership 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;
@@ -4733,86 +4128,66 @@ private Membership(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.Membership)
     }
 
-    public interface AnnotatedMembershipOrBuilder
-        extends
+    public interface AnnotatedMembershipOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The enum numeric value on the wire for membership. */ int getMembershipValue(); /** - * - * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The membership. */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - getMembership(); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership(); /** - * - * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** - * - * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); } /** - * - * *
      * Details about whether the binding includes the member.
      * 
* - * Protobuf type {@code - * google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} + * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} */ - public static final class AnnotatedMembership extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AnnotatedMembership extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) AnnotatedMembershipOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotatedMembership.newBuilder() to construct. private AnnotatedMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotatedMembership() { membership_ = 0; relevance_ = 0; @@ -4820,15 +4195,16 @@ private AnnotatedMembership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotatedMembership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotatedMembership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4847,27 +4223,25 @@ private AnnotatedMembership( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - membership_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + membership_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - relevance_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + relevance_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4875,117 +4249,83 @@ private AnnotatedMembership( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.class, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.Builder.class); } public static final int MEMBERSHIP_FIELD_NUMBER = 1; private int membership_; /** - * - * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The enum numeric value on the wire for membership. */ - @java.lang.Override - public int getMembershipValue() { + @java.lang.Override public int getMembershipValue() { return membership_; } /** - * - * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The membership. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - getMembership() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf( - membership_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - .UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf(membership_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.UNRECOGNIZED : result; } public static final int RELEVANCE_FIELD_NUMBER = 2; private int relevance_; /** - * - * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The relevance. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4997,17 +4337,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (membership_ - != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - .MEMBERSHIP_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (membership_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.MEMBERSHIP_UNSPECIFIED.getNumber()) { output.writeEnum(1, membership_); } - if (relevance_ - != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - .HEURISTIC_RELEVANCE_UNSPECIFIED - .getNumber()) { + if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { output.writeEnum(2, relevance_); } unknownFields.writeTo(output); @@ -5019,17 +4354,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (membership_ - != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - .MEMBERSHIP_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, membership_); - } - if (relevance_ - != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - .HEURISTIC_RELEVANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, relevance_); + if (membership_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.MEMBERSHIP_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, membership_); + } + if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, relevance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5039,19 +4370,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership)) { + if (!(obj instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - other = - (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership) - obj; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership other = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) obj; if (membership_ != other.membership_) return false; if (relevance_ != other.relevance_) return false; @@ -5075,116 +4399,88 @@ public int hashCode() { return hash; } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - prototype) { + public static Builder newBuilder(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership 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 @@ -5194,53 +4490,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Details about whether the binding includes the member.
        * 
* - * Protobuf type {@code - * google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} + * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.class, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.Builder.class); } - // Construct using - // google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.newBuilder() + // Construct using google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5252,25 +4539,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - getDefaultInstanceForType() { - return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.getDefaultInstance(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstanceForType() { + return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance(); } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - build() { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - result = buildPartial(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership build() { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5278,13 +4559,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - buildPartial() { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - result = - new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership(this); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership buildPartial() { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership result = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership(this); result.membership_ = membership_; result.relevance_ = relevance_; onBuilt(); @@ -5295,59 +4571,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership) { - return mergeFrom( - (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership) - other); + if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) { + return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - other) { - if (other - == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.getDefaultInstance()) return this; + public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership other) { + if (other == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance()) return this; if (other.membership_ != 0) { setMembershipValue(other.getMembershipValue()); } @@ -5369,15 +4632,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - parsedMessage = null; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership) - e.getUnfinishedMessage(); + parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5389,101 +4648,73 @@ public Builder mergeFrom( private int membership_ = 0; /** - * - * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The enum numeric value on the wire for membership. */ - @java.lang.Override - public int getMembershipValue() { + @java.lang.Override public int getMembershipValue() { return membership_; } /** - * - * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @param value The enum numeric value on the wire for membership to set. * @return This builder for chaining. */ public Builder setMembershipValue(int value) { - + membership_ = value; onChanged(); return this; } /** - * - * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return The membership. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - getMembership() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - .valueOf(membership_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership - .UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf(membership_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.UNRECOGNIZED : result; } /** - * - * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @param value The membership to set. * @return This builder for chaining. */ - public Builder setMembership( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership value) { + public Builder setMembership(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership value) { if (value == null) { throw new NullPointerException(); } - + membership_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; * @return This builder for chaining. */ public Builder clearMembership() { - + membership_ = 0; onChanged(); return this; @@ -5491,104 +4722,82 @@ public Builder clearMembership() { private int relevance_ = 0; /** - * - * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** - * - * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } /** - * - * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance( - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; - * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5601,36 +4810,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) - private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - DEFAULT_INSTANCE; - + private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership(); + DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership(); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedMembership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedMembership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedMembership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5642,18 +4845,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ACCESS_FIELD_NUMBER = 1; private int access_; /** - * - * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -5664,19 +4864,13 @@ public com.google.protobuf.Parser getParserForType() {
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -5687,27 +4881,18 @@ public int getAccessValue() {
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The access. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** - * - * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -5716,7 +4901,6 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
      * 
* * string role = 2; - * * @return The role. */ @java.lang.Override @@ -5725,15 +4909,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; } } /** - * - * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -5742,15 +4925,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 { @@ -5761,127 +4945,77 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int ROLE_PERMISSION_FIELD_NUMBER = 3; private int rolePermission_; /** - * - * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The enum numeric value on the wire for rolePermission. */ - @java.lang.Override - public int getRolePermissionValue() { + @java.lang.Override public int getRolePermissionValue() { return rolePermission_; } /** - * - * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The rolePermission. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - getRolePermission() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - .valueOf(rolePermission_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - .UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.valueOf(rolePermission_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.UNRECOGNIZED : result; } public static final int ROLE_PERMISSION_RELEVANCE_FIELD_NUMBER = 4; private int rolePermissionRelevance_; /** - * - * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The enum numeric value on the wire for rolePermissionRelevance. */ - @java.lang.Override - public int getRolePermissionRelevanceValue() { + @java.lang.Override public int getRolePermissionRelevanceValue() { return rolePermissionRelevance_; } /** - * - * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The rolePermissionRelevance. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - getRolePermissionRelevance() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - rolePermissionRelevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(rolePermissionRelevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } public static final int MEMBERSHIPS_FIELD_NUMBER = 5; - private static final class MembershipsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - defaultEntry = + java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - google.cloud.policytroubleshooter.v1.Explanations - .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership.getDefaultInstance()); + .newDefaultInstance( + google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - memberships_; - private com.google.protobuf.MapField< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - internalGetMemberships() { + java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> memberships_; + private com.google.protobuf.MapField + internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); @@ -5893,8 +5027,6 @@ public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5913,30 +5045,24 @@ public int getMembershipsCount() {
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ + @java.lang.Override - public boolean containsMemberships(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMemberships( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMemberships().getMap().containsKey(key); } - /** Use {@link #getMembershipsMap()} instead. */ + /** + * Use {@link #getMembershipsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMemberships() { + public java.util.Map getMemberships() { return getMembershipsMap(); } /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5955,21 +5081,14 @@ public boolean containsMemberships(java.lang.String key) {
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMembershipsMap() { + + public java.util.Map getMembershipsMap() { return internalGetMemberships().getMap(); } /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5988,29 +5107,19 @@ public boolean containsMemberships(java.lang.String key) {
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - getMembershipsOrDefault( - java.lang.String key, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - map = internalGetMemberships().getMap(); + + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault( + java.lang.String key, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMemberships().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -6029,21 +5138,15 @@ public boolean containsMemberships(java.lang.String key) {
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - getMembershipsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - map = internalGetMemberships().getMap(); + + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6053,48 +5156,35 @@ public boolean containsMemberships(java.lang.String key) { public static final int RELEVANCE_FIELD_NUMBER = 6; private int relevance_; /** - * - * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The relevance. */ - @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } public static final int CONDITION_FIELD_NUMBER = 7; private com.google.type.Expr condition_; /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -6103,7 +5193,6 @@ public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getR
      * 
* * .google.type.Expr condition = 7; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -6111,8 +5200,6 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -6121,7 +5208,6 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 7; - * * @return The condition. */ @java.lang.Override @@ -6129,8 +5215,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -6146,7 +5230,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -6158,33 +5241,27 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-      if (access_
-          != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED
-              .getNumber()) {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) {
         output.writeEnum(1, access_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_);
       }
-      if (rolePermission_
-          != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission
-              .ROLE_PERMISSION_UNSPECIFIED
-              .getNumber()) {
+      if (rolePermission_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.ROLE_PERMISSION_UNSPECIFIED.getNumber()) {
         output.writeEnum(3, rolePermission_);
       }
-      if (rolePermissionRelevance_
-          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
-              .HEURISTIC_RELEVANCE_UNSPECIFIED
-              .getNumber()) {
+      if (rolePermissionRelevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
         output.writeEnum(4, rolePermissionRelevance_);
       }
-      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-          output, internalGetMemberships(), MembershipsDefaultEntryHolder.defaultEntry, 5);
-      if (relevance_
-          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
-              .HEURISTIC_RELEVANCE_UNSPECIFIED
-              .getNumber()) {
+      com.google.protobuf.GeneratedMessageV3
+        .serializeStringMapTo(
+          output,
+          internalGetMemberships(),
+          MembershipsDefaultEntryHolder.defaultEntry,
+          5);
+      if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
         output.writeEnum(6, relevance_);
       }
       if (condition_ != null) {
@@ -6199,51 +5276,38 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (access_
-          != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED
-              .getNumber()) {
-        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_);
+      if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(1, access_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_);
       }
-      if (rolePermission_
-          != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission
-              .ROLE_PERMISSION_UNSPECIFIED
-              .getNumber()) {
-        size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, rolePermission_);
-      }
-      if (rolePermissionRelevance_
-          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
-              .HEURISTIC_RELEVANCE_UNSPECIFIED
-              .getNumber()) {
-        size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, rolePermissionRelevance_);
-      }
-      for (java.util.Map.Entry<
-              java.lang.String,
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-                  .AnnotatedMembership>
-          entry : internalGetMemberships().getMap().entrySet()) {
-        com.google.protobuf.MapEntry<
-                java.lang.String,
-                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-                    .AnnotatedMembership>
-            memberships__ =
-                MembershipsDefaultEntryHolder.defaultEntry
-                    .newBuilderForType()
-                    .setKey(entry.getKey())
-                    .setValue(entry.getValue())
-                    .build();
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, memberships__);
-      }
-      if (relevance_
-          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
-              .HEURISTIC_RELEVANCE_UNSPECIFIED
-              .getNumber()) {
-        size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, relevance_);
+      if (rolePermission_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.ROLE_PERMISSION_UNSPECIFIED.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(3, rolePermission_);
+      }
+      if (rolePermissionRelevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(4, rolePermissionRelevance_);
+      }
+      for (java.util.Map.Entry entry
+           : internalGetMemberships().getMap().entrySet()) {
+        com.google.protobuf.MapEntry
+        memberships__ = MembershipsDefaultEntryHolder.defaultEntry.newBuilderForType()
+            .setKey(entry.getKey())
+            .setValue(entry.getValue())
+            .build();
+        size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(5, memberships__);
+      }
+      if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(6, relevance_);
       }
       if (condition_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCondition());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, getCondition());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -6253,23 +5317,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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)) {
         return super.equals(obj);
       }
-      google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other =
-          (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) obj;
+      google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) obj;
 
       if (access_ != other.access_) return false;
-      if (!getRole().equals(other.getRole())) return false;
+      if (!getRole()
+          .equals(other.getRole())) return false;
       if (rolePermission_ != other.rolePermission_) return false;
       if (rolePermissionRelevance_ != other.rolePermissionRelevance_) return false;
-      if (!internalGetMemberships().equals(other.internalGetMemberships())) return false;
+      if (!internalGetMemberships().equals(
+          other.internalGetMemberships())) return false;
       if (relevance_ != other.relevance_) 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 (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -6306,95 +5372,87 @@ public int hashCode() {
     }
 
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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(
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation prototype) {
+    public static Builder newBuilder(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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
@@ -6404,8 +5462,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Details about how a binding in a policy affects a member's ability to use a
      * permission.
@@ -6413,61 +5469,60 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.BindingExplanation)
         google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 5:
             return internalGetMemberships();
           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 internalGetMutableMemberships();
           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 google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class,
-                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
+                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
       }
 
-      // Construct using
-      // google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.newBuilder()
+      // Construct using google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6492,22 +5547,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations
-            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
       }
 
       @java.lang.Override
-      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-          getDefaultInstanceForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-            .getDefaultInstance();
+      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstanceForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance();
       }
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation build() {
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result =
-            buildPartial();
+        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -6516,8 +5568,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buil
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buildPartial() {
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result =
-            new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation(this);
+        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation(this);
         int from_bitField0_ = bitField0_;
         result.access_ = access_;
         result.role_ = role_;
@@ -6539,53 +5590,46 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buil
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) {
-          return mergeFrom(
-              (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) other);
+          return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other) {
-        if (other
-            == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other) {
+        if (other == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()) return this;
         if (other.access_ != 0) {
           setAccessValue(other.getAccessValue());
         }
@@ -6599,7 +5643,8 @@ public Builder mergeFrom(
         if (other.rolePermissionRelevance_ != 0) {
           setRolePermissionRelevanceValue(other.getRolePermissionRelevanceValue());
         }
-        internalGetMutableMemberships().mergeFrom(other.internalGetMemberships());
+        internalGetMutableMemberships().mergeFrom(
+            other.internalGetMemberships());
         if (other.relevance_ != 0) {
           setRelevanceValue(other.getRelevanceValue());
         }
@@ -6625,9 +5670,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)
-                  e.getUnfinishedMessage();
+          parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -6636,13 +5679,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private int access_ = 0;
       /**
-       *
-       *
        * 
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -6653,19 +5693,13 @@ public Builder mergeFrom(
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for access. */ - @java.lang.Override - public int getAccessValue() { + @java.lang.Override public int getAccessValue() { return access_; } /** - * - * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -6676,22 +5710,17 @@ public int getAccessValue() {
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** - * - * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -6702,24 +5731,16 @@ public Builder setAccessValue(int value) {
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = - google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; } /** - * - * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -6730,26 +5751,20 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The access to set. * @return This builder for chaining. */ - public Builder setAccess( - google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { + public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -6760,14 +5775,11 @@ public Builder setAccess(
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; @@ -6775,8 +5787,6 @@ public Builder clearAccess() { private java.lang.Object role_ = ""; /** - * - * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -6785,13 +5795,13 @@ public Builder clearAccess() {
        * 
* * 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; @@ -6800,8 +5810,6 @@ public java.lang.String getRole() { } } /** - * - * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -6810,14 +5818,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 { @@ -6825,8 +5834,6 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -6835,22 +5842,20 @@ 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) { + public Builder setRole( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** - * - * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -6859,18 +5864,15 @@ public Builder setRole(java.lang.String value) {
        * 
* * string role = 2; - * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** - * - * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -6879,16 +5881,16 @@ 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) { + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; onChanged(); return this; @@ -6896,112 +5898,78 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private int rolePermission_ = 0; /** - * - * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The enum numeric value on the wire for rolePermission. */ - @java.lang.Override - public int getRolePermissionValue() { + @java.lang.Override public int getRolePermissionValue() { return rolePermission_; } /** - * - * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @param value The enum numeric value on the wire for rolePermission to set. * @return This builder for chaining. */ public Builder setRolePermissionValue(int value) { - + rolePermission_ = value; onChanged(); return this; } /** - * - * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return The rolePermission. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - getRolePermission() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - .valueOf(rolePermission_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - .UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.valueOf(rolePermission_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.UNRECOGNIZED : result; } /** - * - * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @param value The rolePermission to set. * @return This builder for chaining. */ - public Builder setRolePermission( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission - value) { + public Builder setRolePermission(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission value) { if (value == null) { throw new NullPointerException(); } - + rolePermission_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; - * - * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; * @return This builder for chaining. */ public Builder clearRolePermission() { - + rolePermission_ = 0; onChanged(); return this; @@ -7009,143 +5977,99 @@ public Builder clearRolePermission() { private int rolePermissionRelevance_ = 0; /** - * - * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The enum numeric value on the wire for rolePermissionRelevance. */ - @java.lang.Override - public int getRolePermissionRelevanceValue() { + @java.lang.Override public int getRolePermissionRelevanceValue() { return rolePermissionRelevance_; } /** - * - * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @param value The enum numeric value on the wire for rolePermissionRelevance to set. * @return This builder for chaining. */ public Builder setRolePermissionRelevanceValue(int value) { - + rolePermissionRelevance_ = value; onChanged(); return this; } /** - * - * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return The rolePermissionRelevance. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance - getRolePermissionRelevance() { + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - rolePermissionRelevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(rolePermissionRelevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } /** - * - * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @param value The rolePermissionRelevance to set. * @return This builder for chaining. */ - public Builder setRolePermissionRelevance( - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRolePermissionRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + rolePermissionRelevance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; - * - * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; * @return This builder for chaining. */ public Builder clearRolePermissionRelevance() { - + rolePermissionRelevance_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - memberships_; - - private com.google.protobuf.MapField< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - internalGetMemberships() { + java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> memberships_; + private com.google.protobuf.MapField + internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); } return memberships_; } - - private com.google.protobuf.MapField< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - internalGetMutableMemberships() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMemberships() { + onChanged();; if (memberships_ == null) { - memberships_ = - com.google.protobuf.MapField.newMapField(MembershipsDefaultEntryHolder.defaultEntry); + memberships_ = com.google.protobuf.MapField.newMapField( + MembershipsDefaultEntryHolder.defaultEntry); } if (!memberships_.isMutable()) { memberships_ = memberships_.copy(); @@ -7157,8 +6081,6 @@ public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7177,30 +6099,24 @@ public int getMembershipsCount() {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ + @java.lang.Override - public boolean containsMemberships(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMemberships( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMemberships().getMap().containsKey(key); } - /** Use {@link #getMembershipsMap()} instead. */ + /** + * Use {@link #getMembershipsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMemberships() { + public java.util.Map getMemberships() { return getMembershipsMap(); } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7219,21 +6135,14 @@ public boolean containsMemberships(java.lang.String key) {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMembershipsMap() { + + public java.util.Map getMembershipsMap() { return internalGetMemberships().getMap(); } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7252,31 +6161,19 @@ public boolean containsMemberships(java.lang.String key) {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - getMembershipsOrDefault( - java.lang.String key, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - map = internalGetMemberships().getMap(); + + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault( + java.lang.String key, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMemberships().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7295,22 +6192,15 @@ public boolean containsMemberships(java.lang.String key) {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership - getMembershipsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - map = internalGetMemberships().getMap(); + + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -7318,12 +6208,11 @@ public boolean containsMemberships(java.lang.String key) { } public Builder clearMemberships() { - internalGetMutableMemberships().getMutableMap().clear(); + internalGetMutableMemberships().getMutableMap() + .clear(); return this; } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7342,29 +6231,25 @@ public Builder clearMemberships() {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ - public Builder removeMemberships(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMemberships().getMutableMap().remove(key); + + public Builder removeMemberships( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMemberships().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - getMutableMemberships() { + public java.util.Map + getMutableMemberships() { return internalGetMutableMemberships().getMutableMap(); } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7383,27 +6268,21 @@ public Builder removeMemberships(java.lang.String key) {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ public Builder putMemberships( java.lang.String key, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership - value) { - if (key == null) { - throw new NullPointerException("map key"); - } + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableMemberships().getMutableMap().put(key, value); + internalGetMutableMemberships().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -7422,115 +6301,90 @@ public Builder putMemberships(
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; */ + public Builder putAllMemberships( - java.util.Map< - java.lang.String, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation - .AnnotatedMembership> - values) { - internalGetMutableMemberships().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMemberships().getMutableMap() + .putAll(values); return this; } private int relevance_ = 0; /** - * - * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override - public int getRelevanceValue() { + @java.lang.Override public int getRelevanceValue() { return relevance_; } /** - * - * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** - * - * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( - relevance_); - return result == null - ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED - : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; } /** - * - * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance( - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; - * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; @@ -7538,11 +6392,8 @@ public Builder clearRelevance() { 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_; /** - * - * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7551,15 +6402,12 @@ public Builder clearRelevance() {
        * 
* * .google.type.Expr condition = 7; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** - * - * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7568,7 +6416,6 @@ public boolean hasCondition() {
        * 
* * .google.type.Expr condition = 7; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -7579,8 +6426,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7604,8 +6449,6 @@ public Builder setCondition(com.google.type.Expr value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7615,7 +6458,8 @@ public Builder setCondition(com.google.type.Expr value) {
        *
        * .google.type.Expr condition = 7;
        */
-      public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
+      public Builder setCondition(
+          com.google.type.Expr.Builder builderForValue) {
         if (conditionBuilder_ == null) {
           condition_ = builderForValue.build();
           onChanged();
@@ -7626,8 +6470,6 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7641,7 +6483,7 @@ public Builder mergeCondition(com.google.type.Expr value) {
         if (conditionBuilder_ == null) {
           if (condition_ != null) {
             condition_ =
-                com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
+              com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
           } else {
             condition_ = value;
           }
@@ -7653,8 +6495,6 @@ public Builder mergeCondition(com.google.type.Expr value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7676,8 +6516,6 @@ public Builder clearCondition() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7688,13 +6526,11 @@ public Builder clearCondition() {
        * .google.type.Expr condition = 7;
        */
       public com.google.type.Expr.Builder getConditionBuilder() {
-
+        
         onChanged();
         return getConditionFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7708,12 +6544,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_;
         }
       }
       /**
-       *
-       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -7724,19 +6559,18 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
        * .google.type.Expr condition = 7;
        */
       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) {
@@ -7749,32 +6583,30 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.BindingExplanation)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.BindingExplanation)
-    private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-        DEFAULT_INSTANCE;
-
+    private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation();
     }
 
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-        getDefaultInstance() {
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public BindingExplanation parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new BindingExplanation(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public BindingExplanation parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new BindingExplanation(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -7786,160 +6618,144 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
-        getDefaultInstanceForType() {
+    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
     return descriptor;
   }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n7google/cloud/policytroubleshooter/v1/e"
-          + "xplanations.proto\022$google.cloud.policytr"
-          + "oubleshooter.v1\032\037google/api/field_behavi"
-          + "or.proto\032\032google/iam/v1/policy.proto\032\026go"
-          + "ogle/type/expr.proto\"_\n\013AccessTuple\022\026\n\tp"
-          + "rincipal\030\001 \001(\tB\003\340A\002\022\037\n\022full_resource_nam"
-          + "e\030\002 \001(\tB\003\340A\002\022\027\n\npermission\030\003 \001(\tB\003\340A\002\"\274\002"
-          + "\n\017ExplainedPolicy\022A\n\006access\030\001 \001(\01621.goog"
-          + "le.cloud.policytroubleshooter.v1.AccessS"
-          + "tate\022\032\n\022full_resource_name\030\002 \001(\t\022%\n\006poli"
-          + "cy\030\003 \001(\0132\025.google.iam.v1.Policy\022V\n\024bindi"
-          + "ng_explanations\030\004 \003(\01328.google.cloud.pol"
-          + "icytroubleshooter.v1.BindingExplanation\022"
-          + "K\n\trelevance\030\005 \001(\01628.google.cloud.policy"
-          + "troubleshooter.v1.HeuristicRelevance\"\203\t\n"
-          + "\022BindingExplanation\022F\n\006access\030\001 \001(\01621.go"
-          + "ogle.cloud.policytroubleshooter.v1.Acces"
-          + "sStateB\003\340A\002\022\014\n\004role\030\002 \001(\t\022`\n\017role_permis"
-          + "sion\030\003 \001(\0162G.google.cloud.policytroubles"
-          + "hooter.v1.BindingExplanation.RolePermiss"
-          + "ion\022[\n\031role_permission_relevance\030\004 \001(\01628"
-          + ".google.cloud.policytroubleshooter.v1.He"
-          + "uristicRelevance\022^\n\013memberships\030\005 \003(\0132I."
-          + "google.cloud.policytroubleshooter.v1.Bin"
-          + "dingExplanation.MembershipsEntry\022K\n\trele"
-          + "vance\030\006 \001(\01628.google.cloud.policytrouble"
-          + "shooter.v1.HeuristicRelevance\022$\n\tconditi"
-          + "on\030\007 \001(\0132\021.google.type.Expr\032\273\001\n\023Annotate"
-          + "dMembership\022W\n\nmembership\030\001 \001(\0162C.google"
-          + ".cloud.policytroubleshooter.v1.BindingEx"
-          + "planation.Membership\022K\n\trelevance\030\002 \001(\0162"
-          + "8.google.cloud.policytroubleshooter.v1.H"
-          + "euristicRelevance\032\200\001\n\020MembershipsEntry\022\013"
-          + "\n\003key\030\001 \001(\t\022[\n\005value\030\002 \001(\0132L.google.clou"
-          + "d.policytroubleshooter.v1.BindingExplana"
-          + "tion.AnnotatedMembership:\0028\001\"\232\001\n\016RolePer"
-          + "mission\022\037\n\033ROLE_PERMISSION_UNSPECIFIED\020\000"
-          + "\022\034\n\030ROLE_PERMISSION_INCLUDED\020\001\022 \n\034ROLE_P"
-          + "ERMISSION_NOT_INCLUDED\020\002\022\'\n#ROLE_PERMISS"
-          + "ION_UNKNOWN_INFO_DENIED\020\003\"\246\001\n\nMembership"
-          + "\022\032\n\026MEMBERSHIP_UNSPECIFIED\020\000\022\027\n\023MEMBERSH"
-          + "IP_INCLUDED\020\001\022\033\n\027MEMBERSHIP_NOT_INCLUDED"
-          + "\020\002\022\"\n\036MEMBERSHIP_UNKNOWN_INFO_DENIED\020\003\022\""
-          + "\n\036MEMBERSHIP_UNKNOWN_UNSUPPORTED\020\004*{\n\013Ac"
-          + "cessState\022\034\n\030ACCESS_STATE_UNSPECIFIED\020\000\022"
-          + "\013\n\007GRANTED\020\001\022\017\n\013NOT_GRANTED\020\002\022\027\n\023UNKNOWN"
-          + "_CONDITIONAL\020\003\022\027\n\023UNKNOWN_INFO_DENIED\020\004*"
-          + "O\n\022HeuristicRelevance\022#\n\037HEURISTIC_RELEV"
-          + "ANCE_UNSPECIFIED\020\000\022\n\n\006NORMAL\020\001\022\010\n\004HIGH\020\002"
-          + "B\322\001ZXgoogle.golang.org/genproto/googleap"
-          + "is/cloud/policytroubleshooter/v1;policyt"
-          + "roubleshooter\252\002$Google.Cloud.PolicyTroub"
-          + "leshooter.V1\312\002$Google\\Cloud\\PolicyTroubl"
-          + "eshooter\\V1\352\002\'Google::Cloud::PolicyTroub"
-          + "leshooter::V1b\006proto3"
+      "\n7google/cloud/policytroubleshooter/v1/e" +
+      "xplanations.proto\022$google.cloud.policytr" +
+      "oubleshooter.v1\032\037google/api/field_behavi" +
+      "or.proto\032\032google/iam/v1/policy.proto\032\026go" +
+      "ogle/type/expr.proto\"_\n\013AccessTuple\022\026\n\tp" +
+      "rincipal\030\001 \001(\tB\003\340A\002\022\037\n\022full_resource_nam" +
+      "e\030\002 \001(\tB\003\340A\002\022\027\n\npermission\030\003 \001(\tB\003\340A\002\"\274\002" +
+      "\n\017ExplainedPolicy\022A\n\006access\030\001 \001(\01621.goog" +
+      "le.cloud.policytroubleshooter.v1.AccessS" +
+      "tate\022\032\n\022full_resource_name\030\002 \001(\t\022%\n\006poli" +
+      "cy\030\003 \001(\0132\025.google.iam.v1.Policy\022V\n\024bindi" +
+      "ng_explanations\030\004 \003(\01328.google.cloud.pol" +
+      "icytroubleshooter.v1.BindingExplanation\022" +
+      "K\n\trelevance\030\005 \001(\01628.google.cloud.policy" +
+      "troubleshooter.v1.HeuristicRelevance\"\203\t\n" +
+      "\022BindingExplanation\022F\n\006access\030\001 \001(\01621.go" +
+      "ogle.cloud.policytroubleshooter.v1.Acces" +
+      "sStateB\003\340A\002\022\014\n\004role\030\002 \001(\t\022`\n\017role_permis" +
+      "sion\030\003 \001(\0162G.google.cloud.policytroubles" +
+      "hooter.v1.BindingExplanation.RolePermiss" +
+      "ion\022[\n\031role_permission_relevance\030\004 \001(\01628" +
+      ".google.cloud.policytroubleshooter.v1.He" +
+      "uristicRelevance\022^\n\013memberships\030\005 \003(\0132I." +
+      "google.cloud.policytroubleshooter.v1.Bin" +
+      "dingExplanation.MembershipsEntry\022K\n\trele" +
+      "vance\030\006 \001(\01628.google.cloud.policytrouble" +
+      "shooter.v1.HeuristicRelevance\022$\n\tconditi" +
+      "on\030\007 \001(\0132\021.google.type.Expr\032\273\001\n\023Annotate" +
+      "dMembership\022W\n\nmembership\030\001 \001(\0162C.google" +
+      ".cloud.policytroubleshooter.v1.BindingEx" +
+      "planation.Membership\022K\n\trelevance\030\002 \001(\0162" +
+      "8.google.cloud.policytroubleshooter.v1.H" +
+      "euristicRelevance\032\200\001\n\020MembershipsEntry\022\013" +
+      "\n\003key\030\001 \001(\t\022[\n\005value\030\002 \001(\0132L.google.clou" +
+      "d.policytroubleshooter.v1.BindingExplana" +
+      "tion.AnnotatedMembership:\0028\001\"\232\001\n\016RolePer" +
+      "mission\022\037\n\033ROLE_PERMISSION_UNSPECIFIED\020\000" +
+      "\022\034\n\030ROLE_PERMISSION_INCLUDED\020\001\022 \n\034ROLE_P" +
+      "ERMISSION_NOT_INCLUDED\020\002\022\'\n#ROLE_PERMISS" +
+      "ION_UNKNOWN_INFO_DENIED\020\003\"\246\001\n\nMembership" +
+      "\022\032\n\026MEMBERSHIP_UNSPECIFIED\020\000\022\027\n\023MEMBERSH" +
+      "IP_INCLUDED\020\001\022\033\n\027MEMBERSHIP_NOT_INCLUDED" +
+      "\020\002\022\"\n\036MEMBERSHIP_UNKNOWN_INFO_DENIED\020\003\022\"" +
+      "\n\036MEMBERSHIP_UNKNOWN_UNSUPPORTED\020\004*{\n\013Ac" +
+      "cessState\022\034\n\030ACCESS_STATE_UNSPECIFIED\020\000\022" +
+      "\013\n\007GRANTED\020\001\022\017\n\013NOT_GRANTED\020\002\022\027\n\023UNKNOWN" +
+      "_CONDITIONAL\020\003\022\027\n\023UNKNOWN_INFO_DENIED\020\004*" +
+      "O\n\022HeuristicRelevance\022#\n\037HEURISTIC_RELEV" +
+      "ANCE_UNSPECIFIED\020\000\022\n\n\006NORMAL\020\001\022\010\n\004HIGH\020\002" +
+      "B\322\001ZXgoogle.golang.org/genproto/googleap" +
+      "is/cloud/policytroubleshooter/v1;policyt" +
+      "roubleshooter\252\002$Google.Cloud.PolicyTroub" +
+      "leshooter.V1\312\002$Google\\Cloud\\PolicyTroubl" +
+      "eshooter\\V1\352\002\'Google::Cloud::PolicyTroub" +
+      "leshooter::V1b\006proto3"
     };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.iam.v1.PolicyProto.getDescriptor(),
-              com.google.type.ExprProto.getDescriptor(),
-            });
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.iam.v1.PolicyProto.getDescriptor(),
+          com.google.type.ExprProto.getDescriptor(),
+        });
     internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor,
-            new java.lang.String[] {
-              "Principal", "FullResourceName", "Permission",
-            });
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor,
+        new java.lang.String[] { "Principal", "FullResourceName", "Permission", });
     internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor,
-            new java.lang.String[] {
-              "Access", "FullResourceName", "Policy", "BindingExplanations", "Relevance",
-            });
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor,
+        new java.lang.String[] { "Access", "FullResourceName", "Policy", "BindingExplanations", "Relevance", });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor,
-            new java.lang.String[] {
-              "Access",
-              "Role",
-              "RolePermission",
-              "RolePermissionRelevance",
-              "Memberships",
-              "Relevance",
-              "Condition",
-            });
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor,
+        new java.lang.String[] { "Access", "Role", "RolePermission", "RolePermissionRelevance", "Memberships", "Relevance", "Condition", });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor =
-        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor
-            .getNestedTypes()
-            .get(0);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor,
-            new java.lang.String[] {
-              "Membership", "Relevance",
-            });
+      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor,
+        new java.lang.String[] { "Membership", "Relevance", });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor =
-        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor
-            .getNestedTypes()
-            .get(1);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
+      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.iam.v1.PolicyProto.getDescriptor();
     com.google.type.ExprProto.getDescriptor();
diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
similarity index 100%
rename from proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
similarity index 100%
rename from proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
rename to owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 0000000..0ee65c0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
+import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
+import com.google.cloud.policytroubleshooter.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IamCheckerSettings iamCheckerSettings =
+        IamCheckerSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 0000000..b5509ad
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
+import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IamCheckerSettings iamCheckerSettings =
+        IamCheckerSettings.newBuilder()
+            .setTransportChannelProvider(
+                IamCheckerSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 0000000..93a1c5f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerclient_create_setendpoint_sync]
+import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
+import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
+import com.google.cloud.policytroubleshooter.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IamCheckerSettings iamCheckerSettings =
+        IamCheckerSettings.newBuilder().setEndpoint(myEndpoint).build();
+    IamCheckerClient iamCheckerClient = IamCheckerClient.create(iamCheckerSettings);
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java
new file mode 100644
index 0000000..a3c1535
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
+import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest;
+import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse;
+import google.cloud.policytroubleshooter.v1.Explanations;
+
+public class AsyncTroubleshootIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncTroubleshootIamPolicy();
+  }
+
+  public static void asyncTroubleshootIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
+      TroubleshootIamPolicyRequest request =
+          TroubleshootIamPolicyRequest.newBuilder()
+              .setAccessTuple(Explanations.AccessTuple.newBuilder().build())
+              .build();
+      ApiFuture future =
+          iamCheckerClient.troubleshootIamPolicyCallable().futureCall(request);
+      // Do something.
+      TroubleshootIamPolicyResponse response = future.get();
+    }
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
new file mode 100644
index 0000000..c7e6ccf
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_sync]
+import com.google.cloud.policytroubleshooter.v1.IamCheckerClient;
+import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest;
+import com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse;
+import google.cloud.policytroubleshooter.v1.Explanations;
+
+public class SyncTroubleshootIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncTroubleshootIamPolicy();
+  }
+
+  public static void syncTroubleshootIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (IamCheckerClient iamCheckerClient = IamCheckerClient.create()) {
+      TroubleshootIamPolicyRequest request =
+          TroubleshootIamPolicyRequest.newBuilder()
+              .setAccessTuple(Explanations.AccessTuple.newBuilder().build())
+              .build();
+      TroubleshootIamPolicyResponse response = iamCheckerClient.troubleshootIamPolicy(request);
+    }
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerclient_troubleshootiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
new file mode 100644
index 0000000..cc76c80
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckersettings_troubleshootiampolicy_sync]
+import com.google.cloud.policytroubleshooter.v1.IamCheckerSettings;
+import java.time.Duration;
+
+public class SyncTroubleshootIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncTroubleshootIamPolicy();
+  }
+
+  public static void syncTroubleshootIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IamCheckerSettings.Builder iamCheckerSettingsBuilder = IamCheckerSettings.newBuilder();
+    iamCheckerSettingsBuilder
+        .troubleshootIamPolicySettings()
+        .setRetrySettings(
+            iamCheckerSettingsBuilder
+                .troubleshootIamPolicySettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    IamCheckerSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckersettings_troubleshootiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
new file mode 100644
index 0000000..0bea0ca
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.policytroubleshooter.v1.stub.samples;
+
+// [START policytroubleshooter_v1_generated_iamcheckerstubsettings_troubleshootiampolicy_sync]
+import com.google.cloud.policytroubleshooter.v1.stub.IamCheckerStubSettings;
+import java.time.Duration;
+
+public class SyncTroubleshootIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncTroubleshootIamPolicy();
+  }
+
+  public static void syncTroubleshootIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    IamCheckerStubSettings.Builder iamCheckerSettingsBuilder = IamCheckerStubSettings.newBuilder();
+    iamCheckerSettingsBuilder
+        .troubleshootIamPolicySettings()
+        .setRetrySettings(
+            iamCheckerSettingsBuilder
+                .troubleshootIamPolicySettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    IamCheckerStubSettings iamCheckerSettings = iamCheckerSettingsBuilder.build();
+  }
+}
+// [END policytroubleshooter_v1_generated_iamcheckerstubsettings_troubleshootiampolicy_sync]
diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java
deleted file mode 100644
index b15cad6..0000000
--- a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/policytroubleshooter/v1/checker.proto
-
-package com.google.cloud.policytroubleshooter.v1;
-
-public final class IAMCheckerProto {
-  private IAMCheckerProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n2google/cloud/policytroubleshooter/v1/c"
-          + "hecker.proto\022$google.cloud.policytrouble"
-          + "shooter.v1\0327google/cloud/policytroublesh"
-          + "ooter/v1/explanations.proto\032\034google/api/"
-          + "annotations.proto\032\027google/api/client.pro"
-          + "to\"g\n\034TroubleshootIamPolicyRequest\022G\n\014ac"
-          + "cess_tuple\030\001 \001(\01321.google.cloud.policytr"
-          + "oubleshooter.v1.AccessTuple\"\265\001\n\035Troubles"
-          + "hootIamPolicyResponse\022A\n\006access\030\001 \001(\01621."
-          + "google.cloud.policytroubleshooter.v1.Acc"
-          + "essState\022Q\n\022explained_policies\030\002 \003(\01325.g"
-          + "oogle.cloud.policytroubleshooter.v1.Expl"
-          + "ainedPolicy2\251\002\n\nIamChecker\022\301\001\n\025Troublesh"
-          + "ootIamPolicy\022B.google.cloud.policytroubl"
-          + "eshooter.v1.TroubleshootIamPolicyRequest"
-          + "\032C.google.cloud.policytroubleshooter.v1."
-          + "TroubleshootIamPolicyResponse\"\037\202\323\344\223\002\031\"\024/"
-          + "v1/iam:troubleshoot:\001*\032W\312A#policytrouble"
-          + "shooter.googleapis.com\322A.https://www.goo"
-          + "gleapis.com/auth/cloud-platformB\222\002\n(com."
-          + "google.cloud.policytroubleshooter.v1B\017IA"
-          + "MCheckerProtoP\001ZXgoogle.golang.org/genpr"
-          + "oto/googleapis/cloud/policytroubleshoote"
-          + "r/v1;policytroubleshooter\370\001\001\252\002$Google.Cl"
-          + "oud.PolicyTroubleshooter.V1\312\002$Google\\Clo"
-          + "ud\\PolicyTroubleshooter\\V1\352\002\'Google::Clo"
-          + "ud::PolicyTroubleshooter::V1P\000b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ClientProto.getDescriptor(),
-            });
-    internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor,
-            new java.lang.String[] {
-              "AccessTuple",
-            });
-    internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor,
-            new java.lang.String[] {
-              "Access", "ExplainedPolicies",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ClientProto.oauthScopes);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    google.cloud.policytroubleshooter.v1.Explanations.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}

From 24c2a7de14f440848be1dc64a6fc747062743ff6 Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Thu, 23 Jun 2022 02:18:23 +0000
Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 .../v1/IamCheckerClient.java                  |    6 +-
 .../v1/IamCheckerSettings.java                |    7 +-
 .../v1/gapic_metadata.json                    |    0
 .../policytroubleshooter/v1/package-info.java |    0
 .../stub/GrpcIamCheckerCallableFactory.java   |    0
 .../v1/stub/GrpcIamCheckerStub.java           |    0
 .../HttpJsonIamCheckerCallableFactory.java    |    0
 .../v1/stub/HttpJsonIamCheckerStub.java       |    0
 .../v1/stub/IamCheckerStub.java               |    0
 .../v1/stub/IamCheckerStubSettings.java       |    6 +-
 .../v1/IamCheckerClientHttpJsonTest.java      |    0
 .../v1/IamCheckerClientTest.java              |    0
 .../v1/MockIamChecker.java                    |    0
 .../v1/MockIamCheckerImpl.java                |    0
 .../v1/IamCheckerGrpc.java                    |  376 ++
 .../v1/IamCheckerGrpc.java                    |  312 --
 .../v1/IAMCheckerProto.java                   |   96 -
 .../v1/IAMCheckerProto.java                   |  112 +
 .../v1/TroubleshootIamPolicyRequest.java      |  388 +-
 ...TroubleshootIamPolicyRequestOrBuilder.java |   26 +-
 .../v1/TroubleshootIamPolicyResponse.java     |  600 ++-
 ...roubleshootIamPolicyResponseOrBuilder.java |   58 +-
 .../policytroubleshooter/v1/Explanations.java | 3918 +++++++++++------
 .../policytroubleshooter/v1/checker.proto     |    0
 .../v1/explanations.proto                     |    0
 .../SyncCreateSetCredentialsProvider.java     |    0
 .../SyncCreateSetCredentialsProvider1.java    |    0
 .../create/SyncCreateSetEndpoint.java         |    0
 .../AsyncTroubleshootIamPolicy.java           |    0
 .../SyncTroubleshootIamPolicy.java            |    0
 .../SyncTroubleshootIamPolicy.java            |    0
 .../SyncTroubleshootIamPolicy.java            |    0
 32 files changed, 3752 insertions(+), 2153 deletions(-)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java (96%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java (95%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java (97%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java (100%)
 rename {owl-bot-staging/v1/google-cloud-policy-troubleshooter => google-cloud-policy-troubleshooter}/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java (100%)
 create mode 100644 grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java
 delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java
 delete mode 100644 owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java
 create mode 100644 proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java (66%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java (64%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java (74%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java (79%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java (69%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto (100%)
 rename {owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1 => proto-google-cloud-policy-troubleshooter-v1}/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java (100%)
 rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java (100%)

diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java
similarity index 96%
rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java
rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java
index 268b6b9..059d02b 100644
--- a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java
+++ b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java
@@ -52,13 +52,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java similarity index 95% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java index 7fa9647..b81dd36 100644 --- a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java +++ b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.policytroubleshooter.v1.stub.IamCheckerStubSettings; @@ -40,10 +39,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/GrpcIamCheckerStub.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/HttpJsonIamCheckerStub.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStub.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java rename to google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java index 7aabaf1..b8fd435 100644 --- a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java +++ b/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java @@ -52,10 +52,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java b/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java rename to google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java b/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java rename to google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java b/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java rename to google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamChecker.java diff --git a/owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java b/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java rename to google-cloud-policy-troubleshooter/src/test/java/com/google/cloud/policytroubleshooter/v1/MockIamCheckerImpl.java diff --git a/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java b/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java new file mode 100644 index 0000000..bbbbc38 --- /dev/null +++ b/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java @@ -0,0 +1,376 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.policytroubleshooter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * IAM Policy Troubleshooter service.
+ * This service helps you troubleshoot access issues for Google Cloud resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/policytroubleshooter/v1/checker.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class IamCheckerGrpc { + + private IamCheckerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.policytroubleshooter.v1.IamChecker"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + getTroubleshootIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TroubleshootIamPolicy", + requestType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, + responseType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + getTroubleshootIamPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + getTroubleshootIamPolicyMethod; + if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { + synchronized (IamCheckerGrpc.class) { + if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) + == null) { + IamCheckerGrpc.getTroubleshootIamPolicyMethod = + getTroubleshootIamPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "TroubleshootIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IamCheckerMethodDescriptorSupplier("TroubleshootIamPolicy")) + .build(); + } + } + } + return getTroubleshootIamPolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IamCheckerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerStub(channel, callOptions); + } + }; + return IamCheckerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IamCheckerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerBlockingStub(channel, callOptions); + } + }; + return IamCheckerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IamCheckerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IamCheckerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerFutureStub(channel, callOptions); + } + }; + return IamCheckerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public abstract static class IamCheckerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public void troubleshootIamPolicy( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTroubleshootIamPolicyMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTroubleshootIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>( + this, METHODID_TROUBLESHOOT_IAM_POLICY))) + .build(); + } + } + + /** + * + * + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerStub extends io.grpc.stub.AbstractAsyncStub { + private IamCheckerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerStub(channel, callOptions); + } + + /** + * + * + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public void troubleshootIamPolicy( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IamCheckerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + troubleshootIamPolicy( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * IAM Policy Troubleshooter service.
+   * This service helps you troubleshoot access issues for Google Cloud resources.
+   * 
+ */ + public static final class IamCheckerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IamCheckerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IamCheckerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IamCheckerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Checks whether a member has a specific permission for a specific resource,
+     * and explains why the member does or does not have that permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse> + troubleshootIamPolicy( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TROUBLESHOOT_IAM_POLICY = 0; + + 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 IamCheckerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(IamCheckerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TROUBLESHOOT_IAM_POLICY: + serviceImpl.troubleshootIamPolicy( + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class IamCheckerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IamCheckerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IamChecker"); + } + } + + private static final class IamCheckerFileDescriptorSupplier + extends IamCheckerBaseDescriptorSupplier { + IamCheckerFileDescriptorSupplier() {} + } + + private static final class IamCheckerMethodDescriptorSupplier + extends IamCheckerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + IamCheckerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IamCheckerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IamCheckerFileDescriptorSupplier()) + .addMethod(getTroubleshootIamPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java deleted file mode 100644 index da3646b..0000000 --- a/owl-bot-staging/v1/grpc-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerGrpc.java +++ /dev/null @@ -1,312 +0,0 @@ -package com.google.cloud.policytroubleshooter.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * IAM Policy Troubleshooter service.
- * This service helps you troubleshoot access issues for Google Cloud resources.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/policytroubleshooter/v1/checker.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class IamCheckerGrpc { - - private IamCheckerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.policytroubleshooter.v1.IamChecker"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TroubleshootIamPolicy", - requestType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, - responseType = com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod() { - io.grpc.MethodDescriptor getTroubleshootIamPolicyMethod; - if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { - synchronized (IamCheckerGrpc.class) { - if ((getTroubleshootIamPolicyMethod = IamCheckerGrpc.getTroubleshootIamPolicyMethod) == null) { - IamCheckerGrpc.getTroubleshootIamPolicyMethod = getTroubleshootIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TroubleshootIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance())) - .setSchemaDescriptor(new IamCheckerMethodDescriptorSupplier("TroubleshootIamPolicy")) - .build(); - } - } - } - return getTroubleshootIamPolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static IamCheckerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerStub(channel, callOptions); - } - }; - return IamCheckerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static IamCheckerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerBlockingStub(channel, callOptions); - } - }; - return IamCheckerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static IamCheckerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IamCheckerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerFutureStub(channel, callOptions); - } - }; - return IamCheckerFutureStub.newStub(factory, channel); - } - - /** - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static abstract class IamCheckerImplBase implements io.grpc.BindableService { - - /** - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public void troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTroubleshootIamPolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getTroubleshootIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest, - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse>( - this, METHODID_TROUBLESHOOT_IAM_POLICY))) - .build(); - } - } - - /** - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerStub extends io.grpc.stub.AbstractAsyncStub { - private IamCheckerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerStub(channel, callOptions); - } - - /** - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public void troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private IamCheckerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerBlockingStub(channel, callOptions); - } - - /** - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse troubleshootIamPolicy(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTroubleshootIamPolicyMethod(), getCallOptions(), request); - } - } - - /** - *
-   * IAM Policy Troubleshooter service.
-   * This service helps you troubleshoot access issues for Google Cloud resources.
-   * 
- */ - public static final class IamCheckerFutureStub extends io.grpc.stub.AbstractFutureStub { - private IamCheckerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IamCheckerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IamCheckerFutureStub(channel, callOptions); - } - - /** - *
-     * Checks whether a member has a specific permission for a specific resource,
-     * and explains why the member does or does not have that permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture troubleshootIamPolicy( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTroubleshootIamPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_TROUBLESHOOT_IAM_POLICY = 0; - - 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 IamCheckerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(IamCheckerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_TROUBLESHOOT_IAM_POLICY: - serviceImpl.troubleshootIamPolicy((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class IamCheckerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - IamCheckerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("IamChecker"); - } - } - - private static final class IamCheckerFileDescriptorSupplier - extends IamCheckerBaseDescriptorSupplier { - IamCheckerFileDescriptorSupplier() {} - } - - private static final class IamCheckerMethodDescriptorSupplier - extends IamCheckerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - IamCheckerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (IamCheckerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IamCheckerFileDescriptorSupplier()) - .addMethod(getTroubleshootIamPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java b/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java deleted file mode 100644 index 7804846..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/policytroubleshooter/v1/checker.proto - -package com.google.cloud.policytroubleshooter.v1; - -public final class IAMCheckerProto { - private IAMCheckerProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/policytroubleshooter/v1/c" + - "hecker.proto\022$google.cloud.policytrouble" + - "shooter.v1\0327google/cloud/policytroublesh" + - "ooter/v1/explanations.proto\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\"g\n\034TroubleshootIamPolicyRequest\022G\n\014ac" + - "cess_tuple\030\001 \001(\01321.google.cloud.policytr" + - "oubleshooter.v1.AccessTuple\"\265\001\n\035Troubles" + - "hootIamPolicyResponse\022A\n\006access\030\001 \001(\01621." + - "google.cloud.policytroubleshooter.v1.Acc" + - "essState\022Q\n\022explained_policies\030\002 \003(\01325.g" + - "oogle.cloud.policytroubleshooter.v1.Expl" + - "ainedPolicy2\251\002\n\nIamChecker\022\301\001\n\025Troublesh" + - "ootIamPolicy\022B.google.cloud.policytroubl" + - "eshooter.v1.TroubleshootIamPolicyRequest" + - "\032C.google.cloud.policytroubleshooter.v1." + - "TroubleshootIamPolicyResponse\"\037\202\323\344\223\002\031\"\024/" + - "v1/iam:troubleshoot:\001*\032W\312A#policytrouble" + - "shooter.googleapis.com\322A.https://www.goo" + - "gleapis.com/auth/cloud-platformB\222\002\n(com." + - "google.cloud.policytroubleshooter.v1B\017IA" + - "MCheckerProtoP\001ZXgoogle.golang.org/genpr" + - "oto/googleapis/cloud/policytroubleshoote" + - "r/v1;policytroubleshooter\370\001\001\252\002$Google.Cl" + - "oud.PolicyTroubleshooter.V1\312\002$Google\\Clo" + - "ud\\PolicyTroubleshooter\\V1\352\002\'Google::Clo" + - "ud::PolicyTroubleshooter::V1P\000b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor, - new java.lang.String[] { "AccessTuple", }); - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor, - new java.lang.String[] { "Access", "ExplainedPolicies", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java new file mode 100644 index 0000000..b15cad6 --- /dev/null +++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/IAMCheckerProto.java @@ -0,0 +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/cloud/policytroubleshooter/v1/checker.proto + +package com.google.cloud.policytroubleshooter.v1; + +public final class IAMCheckerProto { + private IAMCheckerProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/policytroubleshooter/v1/c" + + "hecker.proto\022$google.cloud.policytrouble" + + "shooter.v1\0327google/cloud/policytroublesh" + + "ooter/v1/explanations.proto\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\"g\n\034TroubleshootIamPolicyRequest\022G\n\014ac" + + "cess_tuple\030\001 \001(\01321.google.cloud.policytr" + + "oubleshooter.v1.AccessTuple\"\265\001\n\035Troubles" + + "hootIamPolicyResponse\022A\n\006access\030\001 \001(\01621." + + "google.cloud.policytroubleshooter.v1.Acc" + + "essState\022Q\n\022explained_policies\030\002 \003(\01325.g" + + "oogle.cloud.policytroubleshooter.v1.Expl" + + "ainedPolicy2\251\002\n\nIamChecker\022\301\001\n\025Troublesh" + + "ootIamPolicy\022B.google.cloud.policytroubl" + + "eshooter.v1.TroubleshootIamPolicyRequest" + + "\032C.google.cloud.policytroubleshooter.v1." + + "TroubleshootIamPolicyResponse\"\037\202\323\344\223\002\031\"\024/" + + "v1/iam:troubleshoot:\001*\032W\312A#policytrouble" + + "shooter.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\222\002\n(com." + + "google.cloud.policytroubleshooter.v1B\017IA" + + "MCheckerProtoP\001ZXgoogle.golang.org/genpr" + + "oto/googleapis/cloud/policytroubleshoote" + + "r/v1;policytroubleshooter\370\001\001\252\002$Google.Cl" + + "oud.PolicyTroubleshooter.V1\312\002$Google\\Clo" + + "ud\\PolicyTroubleshooter\\V1\352\002\'Google::Clo" + + "ud::PolicyTroubleshooter::V1P\000b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor, + new java.lang.String[] { + "AccessTuple", + }); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor, + new java.lang.String[] { + "Access", "ExplainedPolicies", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + google.cloud.policytroubleshooter.v1.Explanations.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java rename to proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java index 45050b0..8a847db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java +++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/policytroubleshooter/v1/checker.proto package com.google.cloud.policytroubleshooter.v1; /** + * + * *
  * Request for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
  * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest} */ -public final class TroubleshootIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TroubleshootIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) TroubleshootIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TroubleshootIamPolicyRequest.newBuilder() to construct. private TroubleshootIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TroubleshootIamPolicyRequest() { - } + + private TroubleshootIamPolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TroubleshootIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TroubleshootIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,31 @@ private TroubleshootIamPolicyRequest( case 0: done = true; break; - case 10: { - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder subBuilder = null; - if (accessTuple_ != null) { - subBuilder = accessTuple_.toBuilder(); + case 10: + { + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder subBuilder = + null; + if (accessTuple_ != null) { + subBuilder = accessTuple_.toBuilder(); + } + accessTuple_ = + input.readMessage( + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(accessTuple_); + accessTuple_ = subBuilder.buildPartial(); + } + + break; } - accessTuple_ = input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accessTuple_); - accessTuple_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,35 +100,40 @@ private TroubleshootIamPolicyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); } public static final int ACCESS_TUPLE_FIELD_NUMBER = 1; private google.cloud.policytroubleshooter.v1.Explanations.AccessTuple accessTuple_; /** + * + * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return Whether the accessTuple field is set. */ @java.lang.Override @@ -115,19 +141,26 @@ public boolean hasAccessTuple() { return accessTuple_ != null; } /** + * + * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return The accessTuple. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple() { - return accessTuple_ == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_; + return accessTuple_ == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() + : accessTuple_; } /** + * + * *
    * The information to use for checking whether a member has a permission for a
    * resource.
@@ -136,11 +169,13 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTu
    * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
    */
   @java.lang.Override
-  public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder getAccessTupleOrBuilder() {
+  public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder
+      getAccessTupleOrBuilder() {
     return getAccessTuple();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,8 +187,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (accessTuple_ != null) {
       output.writeMessage(1, getAccessTuple());
     }
@@ -167,8 +201,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (accessTuple_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getAccessTuple());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccessTuple());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -178,17 +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.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) obj;
+    com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other =
+        (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) obj;
 
     if (hasAccessTuple() != other.hasAccessTuple()) return false;
     if (hasAccessTuple()) {
-      if (!getAccessTuple()
-          .equals(other.getAccessTuple())) return false;
+      if (!getAccessTuple().equals(other.getAccessTuple())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -211,134 +244,145 @@ public int hashCode() {
   }
 
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.class, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.Builder.class); } - // Construct using com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.newBuilder() + // Construct using + // com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,14 +396,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance(); + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest + .getDefaultInstance(); } @java.lang.Override @@ -373,7 +419,8 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest bui @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest buildPartial() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest result = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest(this); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest result = + new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest(this); if (accessTupleBuilder_ == null) { result.accessTuple_ = accessTuple_; } else { @@ -387,46 +434,51 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) { - return mergeFrom((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)other); + return mergeFrom( + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other) { - if (other == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest other) { + if (other + == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest + .getDefaultInstance()) return this; if (other.hasAccessTuple()) { mergeAccessTuple(other.getAccessTuple()); } @@ -449,7 +501,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -461,36 +515,49 @@ public Builder mergeFrom( private google.cloud.policytroubleshooter.v1.Explanations.AccessTuple accessTuple_; private com.google.protobuf.SingleFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> accessTupleBuilder_; + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, + google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> + accessTupleBuilder_; /** + * + * *
      * The information to use for checking whether a member has a permission for a
      * resource.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return Whether the accessTuple field is set. */ public boolean hasAccessTuple() { return accessTupleBuilder_ != null || accessTuple_ != null; } /** + * + * *
      * The information to use for checking whether a member has a permission for a
      * resource.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return The accessTuple. */ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple() { if (accessTupleBuilder_ == null) { - return accessTuple_ == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_; + return accessTuple_ == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() + : accessTuple_; } else { return accessTupleBuilder_.getMessage(); } } /** + * + * *
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -498,7 +565,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTu
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public Builder setAccessTuple(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
+    public Builder setAccessTuple(
+        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
       if (accessTupleBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -512,6 +580,8 @@ public Builder setAccessTuple(google.cloud.policytroubleshooter.v1.Explanations.
       return this;
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -531,6 +601,8 @@ public Builder setAccessTuple(
       return this;
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -538,11 +610,14 @@ public Builder setAccessTuple(
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public Builder mergeAccessTuple(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
+    public Builder mergeAccessTuple(
+        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple value) {
       if (accessTupleBuilder_ == null) {
         if (accessTuple_ != null) {
           accessTuple_ =
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder(accessTuple_).mergeFrom(value).buildPartial();
+              google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder(accessTuple_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           accessTuple_ = value;
         }
@@ -554,6 +629,8 @@ public Builder mergeAccessTuple(google.cloud.policytroubleshooter.v1.Explanation
       return this;
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -573,6 +650,8 @@ public Builder clearAccessTuple() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -580,12 +659,15 @@ public Builder clearAccessTuple() {
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder getAccessTupleBuilder() {
-      
+    public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder
+        getAccessTupleBuilder() {
+
       onChanged();
       return getAccessTupleFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -593,15 +675,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder get
      *
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
-    public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder getAccessTupleOrBuilder() {
+    public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder
+        getAccessTupleOrBuilder() {
       if (accessTupleBuilder_ != null) {
         return accessTupleBuilder_.getMessageOrBuilder();
       } else {
-        return accessTuple_ == null ?
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance() : accessTuple_;
+        return accessTuple_ == null
+            ? google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()
+            : accessTuple_;
       }
     }
     /**
+     *
+     *
      * 
      * The information to use for checking whether a member has a permission for a
      * resource.
@@ -610,21 +696,24 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder ge
      * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder> 
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple,
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder,
+            google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>
         getAccessTupleFieldBuilder() {
       if (accessTupleBuilder_ == null) {
-        accessTupleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            google.cloud.policytroubleshooter.v1.Explanations.AccessTuple, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder, google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>(
-                getAccessTuple(),
-                getParentForChildren(),
-                isClean());
+        accessTupleBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                google.cloud.policytroubleshooter.v1.Explanations.AccessTuple,
+                google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder,
+                google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder>(
+                getAccessTuple(), getParentForChildren(), isClean());
         accessTuple_ = null;
       }
       return accessTupleBuilder_;
     }
+
     @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);
     }
 
@@ -634,30 +723,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
-  private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest();
   }
 
-  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstance() {
+  public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TroubleshootIamPolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new TroubleshootIamPolicyRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TroubleshootIamPolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new TroubleshootIamPolicyRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -669,9 +760,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest getDefaultInstanceForType() {
+  public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
rename to proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
index 33c4d50..50037ee 100644
--- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
+++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyRequestOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/policytroubleshooter/v1/checker.proto
 
 package com.google.cloud.policytroubleshooter.v1;
 
-public interface TroubleshootIamPolicyRequestOrBuilder extends
+public interface TroubleshootIamPolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return Whether the accessTuple field is set. */ boolean hasAccessTuple(); /** + * + * *
    * The information to use for checking whether a member has a permission for a
    * resource.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessTuple access_tuple = 1; + * * @return The accessTuple. */ google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getAccessTuple(); /** + * + * *
    * The information to use for checking whether a member has a permission for a
    * resource.
diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
rename to proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
index 0dbcb15..34001de 100644
--- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
+++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponse.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/policytroubleshooter/v1/checker.proto
 
 package com.google.cloud.policytroubleshooter.v1;
 
 /**
+ *
+ *
  * 
  * Response for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
  * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse} */ -public final class TroubleshootIamPolicyResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TroubleshootIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) TroubleshootIamPolicyResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TroubleshootIamPolicyResponse.newBuilder() to construct. private TroubleshootIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TroubleshootIamPolicyResponse() { access_ = 0; explainedPolicies_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private TroubleshootIamPolicyResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TroubleshootIamPolicyResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TroubleshootIamPolicyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private TroubleshootIamPolicyResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - access_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - explainedPolicies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + access_ = rawValue; + break; } - explainedPolicies_.add( - input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + explainedPolicies_ = + new java.util.ArrayList< + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>(); + mutable_bitField0_ |= 0x00000001; + } + explainedPolicies_.add( + input.readMessage( + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private TroubleshootIamPolicyResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { explainedPolicies_ = java.util.Collections.unmodifiableList(explainedPolicies_); @@ -94,51 +116,68 @@ private TroubleshootIamPolicyResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); } public static final int ACCESS_FIELD_NUMBER = 1; private int access_; /** + * + * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } public static final int EXPLAINED_POLICIES_FIELD_NUMBER = 2; - private java.util.List explainedPolicies_; + private java.util.List + explainedPolicies_; /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -150,13 +189,17 @@ private TroubleshootIamPolicyResponse(
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ @java.lang.Override - public java.util.List getExplainedPoliciesList() { + public java.util.List + getExplainedPoliciesList() { return explainedPolicies_; } /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -168,14 +211,18 @@ public java.util.List
    *
-   * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
+   * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>
       getExplainedPoliciesOrBuilderList() {
     return explainedPolicies_;
   }
   /**
+   *
+   *
    * 
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -187,13 +234,16 @@ public java.util.List
    *
-   * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
+   * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2;
+   * 
    */
   @java.lang.Override
   public int getExplainedPoliciesCount() {
     return explainedPolicies_.size();
   }
   /**
+   *
+   *
    * 
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -205,13 +255,17 @@ public int getExplainedPoliciesCount() {
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies( + int index) { return explainedPolicies_.get(index); } /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -223,15 +277,17 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder + getExplainedPoliciesOrBuilder(int index) { return explainedPolicies_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,9 +299,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (access_ + != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, access_); } for (int i = 0; i < explainedPolicies_.size(); i++) { @@ -260,13 +317,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, access_); + if (access_ + != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_); } for (int i = 0; i < explainedPolicies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, explainedPolicies_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, explainedPolicies_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,16 +334,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse)) { return super.equals(obj); } - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) obj; + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other = + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) obj; if (access_ != other.access_) return false; - if (!getExplainedPoliciesList() - .equals(other.getExplainedPoliciesList())) return false; + if (!getExplainedPoliciesList().equals(other.getExplainedPoliciesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -309,135 +367,147 @@ public int hashCode() { } public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse 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 for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.class, + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.Builder.class); } - // Construct using com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.newBuilder() + // Construct using + // com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getExplainedPoliciesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,19 +523,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto.internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.policytroubleshooter.v1.IAMCheckerProto + .internal_static_google_cloud_policytroubleshooter_v1_TroubleshootIamPolicyResponse_descriptor; } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstanceForType() { - return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance(); + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + getDefaultInstanceForType() { + return com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse build() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = buildPartial(); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -474,7 +547,8 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse bu @java.lang.Override public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse buildPartial() { - com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(this); + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse result = + new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(this); int from_bitField0_ = bitField0_; result.access_ = access_; if (explainedPoliciesBuilder_ == null) { @@ -494,46 +568,51 @@ public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) { - return mergeFrom((com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse)other); + return mergeFrom( + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other) { - if (other == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse other) { + if (other + == com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + .getDefaultInstance()) return this; if (other.access_ != 0) { setAccessValue(other.getAccessValue()); } @@ -555,9 +634,10 @@ public Builder mergeFrom(com.google.cloud.policytroubleshooter.v1.TroubleshootIa explainedPoliciesBuilder_ = null; explainedPolicies_ = other.explainedPolicies_; bitField0_ = (bitField0_ & ~0x00000001); - explainedPoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExplainedPoliciesFieldBuilder() : null; + explainedPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExplainedPoliciesFieldBuilder() + : null; } else { explainedPoliciesBuilder_.addAllMessages(other.explainedPolicies_); } @@ -582,7 +662,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -591,59 +673,76 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int access_ = 0; /** + * + * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @param value The access to set. * @return This builder for chaining. */ @@ -651,40 +750,52 @@ public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.Acces if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates whether the member has the specified permission for the specified
      * resource, based on evaluating all of the applicable IAM policies.
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; } - private java.util.List explainedPolicies_ = - java.util.Collections.emptyList(); + private java.util.List + explainedPolicies_ = java.util.Collections.emptyList(); + private void ensureExplainedPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - explainedPolicies_ = new java.util.ArrayList(explainedPolicies_); + explainedPolicies_ = + new java.util.ArrayList< + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy>( + explainedPolicies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> explainedPoliciesBuilder_; + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + explainedPoliciesBuilder_; /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -696,9 +807,11 @@ private void ensureExplainedPoliciesIsMutable() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public java.util.List getExplainedPoliciesList() { + public java.util.List + getExplainedPoliciesList() { if (explainedPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(explainedPolicies_); } else { @@ -706,6 +819,8 @@ public java.util.List * List of IAM policies that were evaluated to check the member's permissions, * with annotations to indicate how each policy contributed to the final @@ -717,7 +832,8 @@ public java.util.List * - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public int getExplainedPoliciesCount() { if (explainedPoliciesBuilder_ == null) { @@ -727,6 +843,8 @@ public int getExplainedPoliciesCount() { } } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -738,9 +856,11 @@ public int getExplainedPoliciesCount() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies( + int index) { if (explainedPoliciesBuilder_ == null) { return explainedPolicies_.get(index); } else { @@ -748,6 +868,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl } } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -759,7 +881,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExpl
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder setExplainedPolicies( int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { @@ -776,6 +899,8 @@ public Builder setExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -787,10 +912,12 @@ public Builder setExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder setExplainedPolicies( - int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { + int index, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); explainedPolicies_.set(index, builderForValue.build()); @@ -801,6 +928,8 @@ public Builder setExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -812,9 +941,11 @@ public Builder setExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public Builder addExplainedPolicies(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { + public Builder addExplainedPolicies( + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { if (explainedPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -828,6 +959,8 @@ public Builder addExplainedPolicies(google.cloud.policytroubleshooter.v1.Explana return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -839,7 +972,8 @@ public Builder addExplainedPolicies(google.cloud.policytroubleshooter.v1.Explana
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder addExplainedPolicies( int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy value) { @@ -856,6 +990,8 @@ public Builder addExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -867,7 +1003,8 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder addExplainedPolicies( google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { @@ -881,6 +1018,8 @@ public Builder addExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -892,10 +1031,12 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder addExplainedPolicies( - int index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { + int index, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder builderForValue) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); explainedPolicies_.add(index, builderForValue.build()); @@ -906,6 +1047,8 @@ public Builder addExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -917,14 +1060,16 @@ public Builder addExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder addAllExplainedPolicies( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy> + values) { if (explainedPoliciesBuilder_ == null) { ensureExplainedPoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, explainedPolicies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, explainedPolicies_); onChanged(); } else { explainedPoliciesBuilder_.addAllMessages(values); @@ -932,6 +1077,8 @@ public Builder addAllExplainedPolicies( return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -943,7 +1090,8 @@ public Builder addAllExplainedPolicies(
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder clearExplainedPolicies() { if (explainedPoliciesBuilder_ == null) { @@ -956,6 +1104,8 @@ public Builder clearExplainedPolicies() { return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -967,7 +1117,8 @@ public Builder clearExplainedPolicies() {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ public Builder removeExplainedPolicies(int index) { if (explainedPoliciesBuilder_ == null) { @@ -980,6 +1131,8 @@ public Builder removeExplainedPolicies(int index) { return this; } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -991,13 +1144,16 @@ public Builder removeExplainedPolicies(int index) {
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder getExplainedPoliciesBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder + getExplainedPoliciesBuilder(int index) { return getExplainedPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1009,16 +1165,20 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder + getExplainedPoliciesOrBuilder(int index) { if (explainedPoliciesBuilder_ == null) { - return explainedPolicies_.get(index); } else { + return explainedPolicies_.get(index); + } else { return explainedPoliciesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1030,10 +1190,12 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilde
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public java.util.List - getExplainedPoliciesOrBuilderList() { + public java.util.List< + ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + getExplainedPoliciesOrBuilderList() { if (explainedPoliciesBuilder_ != null) { return explainedPoliciesBuilder_.getMessageOrBuilderList(); } else { @@ -1041,6 +1203,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilde } } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1052,13 +1216,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilde
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder() { - return getExplainedPoliciesFieldBuilder().addBuilder( - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder + addExplainedPoliciesBuilder() { + return getExplainedPoliciesFieldBuilder() + .addBuilder( + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + .getDefaultInstance()); } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1070,14 +1240,20 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder addExplainedPoliciesBuilder( - int index) { - return getExplainedPoliciesFieldBuilder().addBuilder( - index, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder + addExplainedPoliciesBuilder(int index) { + return getExplainedPoliciesFieldBuilder() + .addBuilder( + index, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + .getDefaultInstance()); } /** + * + * *
      * List of IAM policies that were evaluated to check the member's permissions,
      * with annotations to indicate how each policy contributed to the final
@@ -1089,18 +1265,25 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder
      * https://cloud.google.com/iam/help/resource-hierarchy.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - public java.util.List - getExplainedPoliciesBuilderList() { + public java.util.List + getExplainedPoliciesBuilderList() { return getExplainedPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> getExplainedPoliciesFieldBuilder() { if (explainedPoliciesBuilder_ == null) { - explainedPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>( + explainedPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder, + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder>( explainedPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1109,9 +1292,9 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder } return explainedPoliciesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,30 +1304,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) - private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse DEFAULT_INSTANCE; + private static final com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse(); } - public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstance() { + public static com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TroubleshootIamPolicyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TroubleshootIamPolicyResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TroubleshootIamPolicyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TroubleshootIamPolicyResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,9 +1341,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse getDefaultInstanceForType() { + public com.google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java rename to proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java index 85a2ecf..559ce96 100644 --- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.java +++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/com/google/cloud/policytroubleshooter/v1/TroubleshootIamPolicyResponseOrBuilder.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/cloud/policytroubleshooter/v1/checker.proto package com.google.cloud.policytroubleshooter.v1; -public interface TroubleshootIamPolicyResponseOrBuilder extends +public interface TroubleshootIamPolicyResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** + * + * *
    * Indicates whether the member has the specified permission for the specified
    * resource, based on evaluating all of the applicable IAM policies.
    * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -40,11 +64,14 @@ public interface TroubleshootIamPolicyResponseOrBuilder extends
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - java.util.List + java.util.List getExplainedPoliciesList(); /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -56,10 +83,13 @@ public interface TroubleshootIamPolicyResponseOrBuilder extends
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getExplainedPolicies(int index); /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -71,10 +101,13 @@ public interface TroubleshootIamPolicyResponseOrBuilder extends
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ int getExplainedPoliciesCount(); /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -86,11 +119,15 @@ public interface TroubleshootIamPolicyResponseOrBuilder extends
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - java.util.List + java.util.List< + ? extends google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder> getExplainedPoliciesOrBuilderList(); /** + * + * *
    * List of IAM policies that were evaluated to check the member's permissions,
    * with annotations to indicate how each policy contributed to the final
@@ -102,8 +139,9 @@ public interface TroubleshootIamPolicyResponseOrBuilder extends
    * https://cloud.google.com/iam/help/resource-hierarchy.
    * 
* - * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * repeated .google.cloud.policytroubleshooter.v1.ExplainedPolicy explained_policies = 2; + * */ - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder getExplainedPoliciesOrBuilder( - int index); + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder + getExplainedPoliciesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java rename to proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java index f53fa71..6504036 100644 --- a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java +++ b/proto-google-cloud-policy-troubleshooter-v1/src/main/java/google/cloud/policytroubleshooter/v1/Explanations.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/policytroubleshooter/v1/explanations.proto @@ -5,25 +20,25 @@ public final class Explanations { private Explanations() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } /** + * + * *
    * Whether a member has a permission for a resource.
    * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.AccessState} */ - public enum AccessState - implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Reserved for future use.
      * 
@@ -32,6 +47,8 @@ public enum AccessState */ ACCESS_STATE_UNSPECIFIED(0), /** + * + * *
      * The member has the permission.
      * 
@@ -40,6 +57,8 @@ public enum AccessState */ GRANTED(1), /** + * + * *
      * The member does not have the permission.
      * 
@@ -48,6 +67,8 @@ public enum AccessState */ NOT_GRANTED(2), /** + * + * *
      * The member has the permission only if a condition expression evaluates to
      * `true`.
@@ -57,6 +78,8 @@ public enum AccessState
      */
     UNKNOWN_CONDITIONAL(3),
     /**
+     *
+     *
      * 
      * The sender of the request does not have access to all of the policies that
      * Policy Troubleshooter needs to evaluate.
@@ -69,6 +92,8 @@ public enum AccessState
     ;
 
     /**
+     *
+     *
      * 
      * Reserved for future use.
      * 
@@ -77,6 +102,8 @@ public enum AccessState */ public static final int ACCESS_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The member has the permission.
      * 
@@ -85,6 +112,8 @@ public enum AccessState */ public static final int GRANTED_VALUE = 1; /** + * + * *
      * The member does not have the permission.
      * 
@@ -93,6 +122,8 @@ public enum AccessState */ public static final int NOT_GRANTED_VALUE = 2; /** + * + * *
      * The member has the permission only if a condition expression evaluates to
      * `true`.
@@ -102,6 +133,8 @@ public enum AccessState
      */
     public static final int UNKNOWN_CONDITIONAL_VALUE = 3;
     /**
+     *
+     *
      * 
      * The sender of the request does not have access to all of the policies that
      * Policy Troubleshooter needs to evaluate.
@@ -111,7 +144,6 @@ public enum AccessState
      */
     public static final int UNKNOWN_INFO_DENIED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -136,51 +168,55 @@ public static AccessState valueOf(int value) {
      */
     public static AccessState forNumber(int value) {
       switch (value) {
-        case 0: return ACCESS_STATE_UNSPECIFIED;
-        case 1: return GRANTED;
-        case 2: return NOT_GRANTED;
-        case 3: return UNKNOWN_CONDITIONAL;
-        case 4: return UNKNOWN_INFO_DENIED;
-        default: return null;
+        case 0:
+          return ACCESS_STATE_UNSPECIFIED;
+        case 1:
+          return GRANTED;
+        case 2:
+          return NOT_GRANTED;
+        case 3:
+          return UNKNOWN_CONDITIONAL;
+        case 4:
+          return UNKNOWN_INFO_DENIED;
+        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<
-        AccessState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AccessState findValueByNumber(int number) {
-              return AccessState.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 AccessState findValueByNumber(int number) {
+            return AccessState.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AccessState[] VALUES = values();
 
-    public static AccessState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AccessState 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;
@@ -198,6 +234,8 @@ private AccessState(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The extent to which a single data point contributes to an overall
    * determination.
@@ -205,9 +243,10 @@ private AccessState(int value) {
    *
    * Protobuf enum {@code google.cloud.policytroubleshooter.v1.HeuristicRelevance}
    */
-  public enum HeuristicRelevance
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum HeuristicRelevance implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Reserved for future use.
      * 
@@ -216,6 +255,8 @@ public enum HeuristicRelevance */ HEURISTIC_RELEVANCE_UNSPECIFIED(0), /** + * + * *
      * The data point has a limited effect on the result. Changing the data point
      * is unlikely to affect the overall determination.
@@ -225,6 +266,8 @@ public enum HeuristicRelevance
      */
     NORMAL(1),
     /**
+     *
+     *
      * 
      * The data point has a strong effect on the result. Changing the data point
      * is likely to affect the overall determination.
@@ -237,6 +280,8 @@ public enum HeuristicRelevance
     ;
 
     /**
+     *
+     *
      * 
      * Reserved for future use.
      * 
@@ -245,6 +290,8 @@ public enum HeuristicRelevance */ public static final int HEURISTIC_RELEVANCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The data point has a limited effect on the result. Changing the data point
      * is unlikely to affect the overall determination.
@@ -254,6 +301,8 @@ public enum HeuristicRelevance
      */
     public static final int NORMAL_VALUE = 1;
     /**
+     *
+     *
      * 
      * The data point has a strong effect on the result. Changing the data point
      * is likely to affect the overall determination.
@@ -263,7 +312,6 @@ public enum HeuristicRelevance
      */
     public static final int HIGH_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -288,10 +336,14 @@ public static HeuristicRelevance valueOf(int value) {
      */
     public static HeuristicRelevance forNumber(int value) {
       switch (value) {
-        case 0: return HEURISTIC_RELEVANCE_UNSPECIFIED;
-        case 1: return NORMAL;
-        case 2: return HIGH;
-        default: return null;
+        case 0:
+          return HEURISTIC_RELEVANCE_UNSPECIFIED;
+        case 1:
+          return NORMAL;
+        case 2:
+          return HIGH;
+        default:
+          return null;
       }
     }
 
@@ -299,29 +351,31 @@ public static HeuristicRelevance forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        HeuristicRelevance> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public HeuristicRelevance findValueByNumber(int number) {
-              return HeuristicRelevance.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 HeuristicRelevance findValueByNumber(int number) {
+                return HeuristicRelevance.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final HeuristicRelevance[] VALUES = values();
@@ -329,8 +383,7 @@ public HeuristicRelevance findValueByNumber(int number) {
     public static HeuristicRelevance 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;
@@ -347,11 +400,14 @@ private HeuristicRelevance(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.policytroubleshooter.v1.HeuristicRelevance)
   }
 
-  public interface AccessTupleOrBuilder extends
+  public interface AccessTupleOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.AccessTuple)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -362,10 +418,13 @@ public interface AccessTupleOrBuilder extends
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The principal. */ java.lang.String getPrincipal(); /** + * + * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -376,12 +435,14 @@ public interface AccessTupleOrBuilder extends
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for principal. */ - com.google.protobuf.ByteString - getPrincipalBytes(); + com.google.protobuf.ByteString getPrincipalBytes(); /** + * + * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -390,10 +451,13 @@ public interface AccessTupleOrBuilder extends
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -402,12 +466,14 @@ public interface AccessTupleOrBuilder extends
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); /** + * + * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -417,10 +483,13 @@ public interface AccessTupleOrBuilder extends
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The permission. */ java.lang.String getPermission(); /** + * + * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -430,27 +499,30 @@ public interface AccessTupleOrBuilder extends
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for permission. */ - com.google.protobuf.ByteString - getPermissionBytes(); + com.google.protobuf.ByteString getPermissionBytes(); } /** + * + * *
    * Information about the member, resource, and permission to check.
    * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.AccessTuple} */ - public static final class AccessTuple extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AccessTuple extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.AccessTuple) AccessTupleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessTuple.newBuilder() to construct. private AccessTuple(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessTuple() { principal_ = ""; fullResourceName_ = ""; @@ -459,16 +531,15 @@ private AccessTuple() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessTuple(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessTuple( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -487,31 +558,34 @@ private AccessTuple( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - principal_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + principal_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - fullResourceName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + fullResourceName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - permission_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + permission_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -519,29 +593,33 @@ private AccessTuple( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); } public static final int PRINCIPAL_FIELD_NUMBER = 1; private volatile java.lang.Object principal_; /** + * + * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -552,6 +630,7 @@ private AccessTuple(
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The principal. */ @java.lang.Override @@ -560,14 +639,15 @@ public java.lang.String getPrincipal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** + * + * *
      * Required. The member, or principal, whose access you want to check, in the form of
      * the email address that represents that member. For example,
@@ -578,16 +658,15 @@ public java.lang.String getPrincipal() {
      * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for principal. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalBytes() { + public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { @@ -598,6 +677,8 @@ public java.lang.String getPrincipal() { public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** + * + * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -606,6 +687,7 @@ public java.lang.String getPrincipal() {
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ @java.lang.Override @@ -614,14 +696,15 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
      * Required. The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -630,16 +713,15 @@ public java.lang.String getFullResourceName() {
      * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -650,6 +732,8 @@ public java.lang.String getFullResourceName() { public static final int PERMISSION_FIELD_NUMBER = 3; private volatile java.lang.Object permission_; /** + * + * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -659,6 +743,7 @@ public java.lang.String getFullResourceName() {
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The permission. */ @java.lang.Override @@ -667,14 +752,15 @@ public java.lang.String getPermission() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; } } /** + * + * *
      * Required. The IAM permission to check for the specified member and resource.
      * For a complete list of IAM permissions, see
@@ -684,16 +770,15 @@ public java.lang.String getPermission() {
      * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for permission. */ @java.lang.Override - public com.google.protobuf.ByteString - getPermissionBytes() { + public com.google.protobuf.ByteString getPermissionBytes() { java.lang.Object ref = permission_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); permission_ = b; return b; } else { @@ -702,6 +787,7 @@ public java.lang.String getPermission() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -713,8 +799,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(principal_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); } @@ -750,19 +835,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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other = (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) obj; + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other = + (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) obj; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (!getPermission() - .equals(other.getPermission())) return false; + if (!getPrincipal().equals(other.getPrincipal())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; + if (!getPermission().equals(other.getPermission())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -786,87 +869,94 @@ public int hashCode() { } public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple prototype) { + + public static Builder newBuilder( + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple 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 @@ -876,27 +966,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about the member, resource, and permission to check.
      * 
* * Protobuf type {@code google.cloud.policytroubleshooter.v1.AccessTuple} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.AccessTuple) google.cloud.policytroubleshooter.v1.Explanations.AccessTupleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.class, + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.Builder.class); } // Construct using google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.newBuilder() @@ -904,16 +999,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -927,13 +1021,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor; } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple + getDefaultInstanceForType() { return google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance(); } @@ -948,7 +1043,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple build() { @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple buildPartial() { - google.cloud.policytroubleshooter.v1.Explanations.AccessTuple result = new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(this); + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple result = + new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(this); result.principal_ = principal_; result.fullResourceName_ = fullResourceName_; result.permission_ = permission_; @@ -960,46 +1056,52 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) { - return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.AccessTuple)other); + return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other) { - if (other == google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()) return this; + public Builder mergeFrom( + google.cloud.policytroubleshooter.v1.Explanations.AccessTuple other) { + if (other + == google.cloud.policytroubleshooter.v1.Explanations.AccessTuple.getDefaultInstance()) + return this; if (!other.getPrincipal().isEmpty()) { principal_ = other.principal_; onChanged(); @@ -1031,7 +1133,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) e.getUnfinishedMessage(); + parsedMessage = + (google.cloud.policytroubleshooter.v1.Explanations.AccessTuple) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1043,6 +1147,8 @@ public Builder mergeFrom( private java.lang.Object principal_ = ""; /** + * + * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1053,13 +1159,13 @@ public Builder mergeFrom(
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; @@ -1068,6 +1174,8 @@ public java.lang.String getPrincipal() { } } /** + * + * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1078,15 +1186,14 @@ public java.lang.String getPrincipal() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for principal. */ - public com.google.protobuf.ByteString - getPrincipalBytes() { + public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { @@ -1094,6 +1201,8 @@ public java.lang.String getPrincipal() { } } /** + * + * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1104,20 +1213,22 @@ public java.lang.String getPrincipal() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The principal to set. * @return This builder for chaining. */ - public Builder setPrincipal( - java.lang.String value) { + public Builder setPrincipal(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principal_ = value; onChanged(); return this; } /** + * + * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1128,15 +1239,18 @@ public Builder setPrincipal(
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPrincipal() { - + principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** + * + * *
        * Required. The member, or principal, whose access you want to check, in the form of
        * the email address that represents that member. For example,
@@ -1147,16 +1261,16 @@ public Builder clearPrincipal() {
        * 
* * string principal = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for principal to set. * @return This builder for chaining. */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principal_ = value; onChanged(); return this; @@ -1164,6 +1278,8 @@ public Builder setPrincipalBytes( private java.lang.Object fullResourceName_ = ""; /** + * + * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1172,13 +1288,13 @@ public Builder setPrincipalBytes(
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -1187,6 +1303,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1195,15 +1313,14 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -1211,6 +1328,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1219,20 +1338,22 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1241,15 +1362,18 @@ public Builder setFullResourceName(
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
        * Required. The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1258,16 +1382,16 @@ public Builder clearFullResourceName() {
        * 
* * string full_resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -1275,6 +1399,8 @@ public Builder setFullResourceNameBytes( private java.lang.Object permission_ = ""; /** + * + * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1284,13 +1410,13 @@ public Builder setFullResourceNameBytes(
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The permission. */ public java.lang.String getPermission() { java.lang.Object ref = permission_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); permission_ = s; return s; @@ -1299,6 +1425,8 @@ public java.lang.String getPermission() { } } /** + * + * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1308,15 +1436,14 @@ public java.lang.String getPermission() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for permission. */ - public com.google.protobuf.ByteString - getPermissionBytes() { + public com.google.protobuf.ByteString getPermissionBytes() { java.lang.Object ref = permission_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); permission_ = b; return b; } else { @@ -1324,6 +1451,8 @@ public java.lang.String getPermission() { } } /** + * + * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1333,20 +1462,22 @@ public java.lang.String getPermission() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The permission to set. * @return This builder for chaining. */ - public Builder setPermission( - java.lang.String value) { + public Builder setPermission(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + permission_ = value; onChanged(); return this; } /** + * + * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1356,15 +1487,18 @@ public Builder setPermission(
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPermission() { - + permission_ = getDefaultInstance().getPermission(); onChanged(); return this; } /** + * + * *
        * Required. The IAM permission to check for the specified member and resource.
        * For a complete list of IAM permissions, see
@@ -1374,20 +1508,21 @@ public Builder clearPermission() {
        * 
* * string permission = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for permission to set. * @return This builder for chaining. */ - public Builder setPermissionBytes( - com.google.protobuf.ByteString value) { + public Builder setPermissionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + permission_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1400,30 +1535,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.AccessTuple) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.AccessTuple) - private static final google.cloud.policytroubleshooter.v1.Explanations.AccessTuple DEFAULT_INSTANCE; + private static final google.cloud.policytroubleshooter.v1.Explanations.AccessTuple + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.AccessTuple(); } - public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.AccessTuple + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessTuple parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessTuple(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessTuple parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessTuple(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,17 +1572,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.AccessTuple + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExplainedPolicyOrBuilder extends + public interface ExplainedPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.ExplainedPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1457,10 +1597,13 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** + * + * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1472,11 +1615,14 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** + * + * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1487,10 +1633,13 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * string full_resource_name = 2; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1501,12 +1650,14 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1514,10 +1665,13 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1525,10 +1679,13 @@ public interface ExplainedPolicyOrBuilder extends
      * 
* * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1540,6 +1697,8 @@ public interface ExplainedPolicyOrBuilder extends
     com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
     /**
+     *
+     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1547,11 +1706,15 @@ public interface ExplainedPolicyOrBuilder extends
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - java.util.List + java.util.List getBindingExplanationsList(); /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1559,10 +1722,15 @@ public interface ExplainedPolicyOrBuilder extends
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations( + int index); /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1570,10 +1738,14 @@ public interface ExplainedPolicyOrBuilder extends
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ int getBindingExplanationsCount(); /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1581,11 +1753,16 @@ public interface ExplainedPolicyOrBuilder extends
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - java.util.List + java.util.List< + ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> getBindingExplanationsOrBuilderList(); /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1593,12 +1770,16 @@ public interface ExplainedPolicyOrBuilder extends
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( - int index); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder + getBindingExplanationsOrBuilder(int index); /** + * + * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1607,10 +1788,13 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder ge
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** + * + * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1619,11 +1803,14 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder ge
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); } /** + * + * *
    * Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
    * to the access check.
@@ -1631,15 +1818,16 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder ge
    *
    * Protobuf type {@code google.cloud.policytroubleshooter.v1.ExplainedPolicy}
    */
-  public static final class ExplainedPolicy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ExplainedPolicy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.ExplainedPolicy)
       ExplainedPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ExplainedPolicy.newBuilder() to construct.
     private ExplainedPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ExplainedPolicy() {
       access_ = 0;
       fullResourceName_ = "";
@@ -1649,16 +1837,15 @@ private ExplainedPolicy() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ExplainedPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ExplainedPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1678,53 +1865,63 @@ private ExplainedPolicy(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
-
-              access_ = rawValue;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 8:
+              {
+                int rawValue = input.readEnum();
 
-              fullResourceName_ = s;
-              break;
-            }
-            case 26: {
-              com.google.iam.v1.Policy.Builder subBuilder = null;
-              if (policy_ != null) {
-                subBuilder = policy_.toBuilder();
+                access_ = rawValue;
+                break;
               }
-              policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(policy_);
-                policy_ = subBuilder.buildPartial();
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+
+                fullResourceName_ = s;
+                break;
               }
+            case 26:
+              {
+                com.google.iam.v1.Policy.Builder subBuilder = null;
+                if (policy_ != null) {
+                  subBuilder = policy_.toBuilder();
+                }
+                policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(policy_);
+                  policy_ = subBuilder.buildPartial();
+                }
 
-              break;
-            }
-            case 34: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                bindingExplanations_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                break;
               }
-              bindingExplanations_.add(
-                  input.readMessage(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.parser(), extensionRegistry));
-              break;
-            }
-            case 40: {
-              int rawValue = input.readEnum();
+            case 34:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  bindingExplanations_ =
+                      new java.util.ArrayList<
+                          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                bindingExplanations_.add(
+                    input.readMessage(
+                        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                            .parser(),
+                        extensionRegistry));
+                break;
+              }
+            case 40:
+              {
+                int rawValue = input.readEnum();
 
-              relevance_ = rawValue;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                relevance_ = rawValue;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1732,8 +1929,7 @@ private ExplainedPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           bindingExplanations_ = java.util.Collections.unmodifiableList(bindingExplanations_);
@@ -1742,22 +1938,27 @@ private ExplainedPolicy(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations
+          .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
+      return google.cloud.policytroubleshooter.v1.Explanations
+          .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
+              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class,
+              google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
     }
 
     public static final int ACCESS_FIELD_NUMBER = 1;
     private int access_;
     /**
+     *
+     *
      * 
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1769,12 +1970,16 @@ private ExplainedPolicy(
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
      * Indicates whether _this policy_ provides the specified permission to the
      * specified member for the specified resource.
@@ -1786,17 +1991,24 @@ private ExplainedPolicy(
      * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** + * + * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1807,6 +2019,7 @@ private ExplainedPolicy(
      * 
* * string full_resource_name = 2; + * * @return The fullResourceName. */ @java.lang.Override @@ -1815,14 +2028,15 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
      * The full resource name that identifies the resource. For example,
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -1833,16 +2047,15 @@ public java.lang.String getFullResourceName() {
      * 
* * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -1853,6 +2066,8 @@ public java.lang.String getFullResourceName() { public static final int POLICY_FIELD_NUMBER = 3; private com.google.iam.v1.Policy policy_; /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1860,6 +2075,7 @@ public java.lang.String getFullResourceName() {
      * 
* * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -1867,6 +2083,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1874,6 +2092,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ @java.lang.Override @@ -1881,6 +2100,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
      * The IAM policy attached to the resource.
      * If the sender of the request does not have access to the policy, this field
@@ -1895,8 +2116,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     }
 
     public static final int BINDING_EXPLANATIONS_FIELD_NUMBER = 4;
-    private java.util.List bindingExplanations_;
+    private java.util.List
+        bindingExplanations_;
     /**
+     *
+     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1904,13 +2128,18 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ @java.lang.Override - public java.util.List getBindingExplanationsList() { + public java.util.List + getBindingExplanationsList() { return bindingExplanations_; } /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1918,14 +2147,19 @@ public java.util.List
      *
-     * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
+     * 
+     * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
+     * 
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List<
+            ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>
         getBindingExplanationsOrBuilderList() {
       return bindingExplanations_;
     }
     /**
+     *
+     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1933,13 +2167,17 @@ public java.util.List
      *
-     * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
+     * 
+     * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4;
+     * 
      */
     @java.lang.Override
     public int getBindingExplanationsCount() {
       return bindingExplanations_.size();
     }
     /**
+     *
+     *
      * 
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1947,13 +2185,18 @@ public int getBindingExplanationsCount() {
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + getBindingExplanations(int index) { return bindingExplanations_.get(index); } /** + * + * *
      * Details about how each binding in the policy affects the member's ability,
      * or inability, to use the permission for the resource.
@@ -1961,17 +2204,21 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getB
      * is omitted.
      * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder + getBindingExplanationsOrBuilder(int index) { return bindingExplanations_.get(index); } public static final int RELEVANCE_FIELD_NUMBER = 5; private int relevance_; /** + * + * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1980,12 +2227,16 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBui
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
      * The relevance of this policy to the overall determination in the
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -1994,15 +2245,21 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBui
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The relevance. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2014,9 +2271,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (access_ + != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, access_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { @@ -2028,7 +2286,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < bindingExplanations_.size(); i++) { output.writeMessage(4, bindingExplanations_.get(i)); } - if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { + if (relevance_ + != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + .HEURISTIC_RELEVANCE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, relevance_); } unknownFields.writeTo(output); @@ -2040,24 +2301,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, access_); + if (access_ + != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullResourceName_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicy()); } for (int i = 0; i < bindingExplanations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, bindingExplanations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, bindingExplanations_.get(i)); } - if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, relevance_); + if (relevance_ + != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + .HEURISTIC_RELEVANCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, relevance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2067,23 +2331,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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other = (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) obj; + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other = + (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) obj; if (access_ != other.access_) return false; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) 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 (!getBindingExplanationsList() - .equals(other.getBindingExplanationsList())) return false; + if (!getBindingExplanationsList().equals(other.getBindingExplanationsList())) return false; if (relevance_ != other.relevance_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2116,87 +2378,95 @@ public int hashCode() { } public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy prototype) { + + public static Builder newBuilder( + google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy 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 @@ -2206,6 +2476,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about how a specific IAM [Policy][google.iam.v1.Policy] contributed
      * to the access check.
@@ -2213,39 +2485,43 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.policytroubleshooter.v1.ExplainedPolicy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.ExplainedPolicy)
         google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class, google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
+                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.class,
+                google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.Builder.class);
       }
 
-      // Construct using google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.newBuilder()
+      // Construct using
+      // google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getBindingExplanationsFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2271,14 +2547,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
       }
 
       @java.lang.Override
-      public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstanceForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance();
+      public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
+          getDefaultInstanceForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2292,7 +2570,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy build()
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy buildPartial() {
-        google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy result = new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(this);
+        google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy result =
+            new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(this);
         int from_bitField0_ = bitField0_;
         result.access_ = access_;
         result.fullResourceName_ = fullResourceName_;
@@ -2319,46 +2598,53 @@ public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy buildPa
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) {
-          return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)other);
+          return mergeFrom(
+              (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other) {
-        if (other == google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy other) {
+        if (other
+            == google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy
+                .getDefaultInstance()) return this;
         if (other.access_ != 0) {
           setAccessValue(other.getAccessValue());
         }
@@ -2387,9 +2673,10 @@ public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.Expla
               bindingExplanationsBuilder_ = null;
               bindingExplanations_ = other.bindingExplanations_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              bindingExplanationsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getBindingExplanationsFieldBuilder() : null;
+              bindingExplanationsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getBindingExplanationsFieldBuilder()
+                      : null;
             } else {
               bindingExplanationsBuilder_.addAllMessages(other.bindingExplanations_);
             }
@@ -2417,7 +2704,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy) e.getUnfinishedMessage();
+          parsedMessage =
+              (google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2426,10 +2715,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private int access_ = 0;
       /**
+       *
+       *
        * 
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2441,12 +2733,16 @@ public Builder mergeFrom(
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2458,16 +2754,19 @@ public Builder mergeFrom(
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** + * + * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2479,15 +2778,21 @@ public Builder setAccessValue(int value) {
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } /** + * + * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2499,19 +2804,23 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @param value The access to set. * @return This builder for chaining. */ - public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { + public Builder setAccess( + google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates whether _this policy_ provides the specified permission to the
        * specified member for the specified resource.
@@ -2523,10 +2832,11 @@ public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.Acces
        * 
* * .google.cloud.policytroubleshooter.v1.AccessState access = 1; + * * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; @@ -2534,6 +2844,8 @@ public Builder clearAccess() { private java.lang.Object fullResourceName_ = ""; /** + * + * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2544,13 +2856,13 @@ public Builder clearAccess() {
        * 
* * string full_resource_name = 2; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -2559,6 +2871,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2569,15 +2883,14 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -2585,6 +2898,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2595,20 +2910,22 @@ public java.lang.String getFullResourceName() {
        * 
* * string full_resource_name = 2; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2619,15 +2936,18 @@ public Builder setFullResourceName(
        * 
* * string full_resource_name = 2; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
        * The full resource name that identifies the resource. For example,
        * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
@@ -2638,16 +2958,16 @@ public Builder clearFullResourceName() {
        * 
* * string full_resource_name = 2; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -2655,8 +2975,13 @@ public Builder setFullResourceNameBytes( 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_; /** + * + * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2664,12 +2989,15 @@ public Builder setFullResourceNameBytes(
        * 
* * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2677,6 +3005,7 @@ public boolean hasPolicy() {
        * 
* * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -2687,6 +3016,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2709,6 +3040,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2717,8 +3050,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
        *
        * .google.iam.v1.Policy policy = 3;
        */
-      public Builder setPolicy(
-          com.google.iam.v1.Policy.Builder builderForValue) {
+      public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
         if (policyBuilder_ == null) {
           policy_ = builderForValue.build();
           onChanged();
@@ -2729,6 +3061,8 @@ public Builder setPolicy(
         return this;
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2740,8 +3074,7 @@ public Builder setPolicy(
       public Builder mergePolicy(com.google.iam.v1.Policy value) {
         if (policyBuilder_ == null) {
           if (policy_ != null) {
-            policy_ =
-              com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
+            policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
           } else {
             policy_ = value;
           }
@@ -2753,6 +3086,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2773,6 +3108,8 @@ public Builder clearPolicy() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2782,11 +3119,13 @@ public Builder clearPolicy() {
        * .google.iam.v1.Policy policy = 3;
        */
       public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-        
+
         onChanged();
         return getPolicyFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2799,11 +3138,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_;
         }
       }
       /**
+       *
+       *
        * 
        * The IAM policy attached to the resource.
        * If the sender of the request does not have access to the policy, this field
@@ -2813,32 +3153,44 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
        * .google.iam.v1.Policy policy = 3;
        */
       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_;
       }
 
-      private java.util.List bindingExplanations_ =
-        java.util.Collections.emptyList();
+      private java.util.List
+          bindingExplanations_ = java.util.Collections.emptyList();
+
       private void ensureBindingExplanationsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          bindingExplanations_ = new java.util.ArrayList(bindingExplanations_);
+          bindingExplanations_ =
+              new java.util.ArrayList<
+                  google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation>(
+                  bindingExplanations_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> bindingExplanationsBuilder_;
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>
+          bindingExplanationsBuilder_;
 
       /**
+       *
+       *
        * 
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2846,9 +3198,12 @@ private void ensureBindingExplanationsIsMutable() {
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public java.util.List getBindingExplanationsList() { + public java.util.List + getBindingExplanationsList() { if (bindingExplanationsBuilder_ == null) { return java.util.Collections.unmodifiableList(bindingExplanations_); } else { @@ -2856,6 +3211,8 @@ public java.util.List * Details about how each binding in the policy affects the member's ability, * or inability, to use the permission for the resource. @@ -2863,7 +3220,9 @@ public java.util.List * - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public int getBindingExplanationsCount() { if (bindingExplanationsBuilder_ == null) { @@ -2873,6 +3232,8 @@ public int getBindingExplanationsCount() { } } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2880,9 +3241,12 @@ public int getBindingExplanationsCount() {
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getBindingExplanations(int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + getBindingExplanations(int index) { if (bindingExplanationsBuilder_ == null) { return bindingExplanations_.get(index); } else { @@ -2890,6 +3254,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getB } } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2897,7 +3263,9 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getB
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder setBindingExplanations( int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { @@ -2914,6 +3282,8 @@ public Builder setBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2921,10 +3291,14 @@ public Builder setBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder setBindingExplanations( - int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { + int index, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.set(index, builderForValue.build()); @@ -2935,6 +3309,8 @@ public Builder setBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2942,9 +3318,12 @@ public Builder setBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public Builder addBindingExplanations(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { + public Builder addBindingExplanations( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { if (bindingExplanationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2958,6 +3337,8 @@ public Builder addBindingExplanations(google.cloud.policytroubleshooter.v1.Expla return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2965,7 +3346,9 @@ public Builder addBindingExplanations(google.cloud.policytroubleshooter.v1.Expla
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder addBindingExplanations( int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation value) { @@ -2982,6 +3365,8 @@ public Builder addBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -2989,10 +3374,13 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder addBindingExplanations( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.add(builderForValue.build()); @@ -3003,6 +3391,8 @@ public Builder addBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3010,10 +3400,14 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder addBindingExplanations( - int index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder builderForValue) { + int index, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + builderForValue) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); bindingExplanations_.add(index, builderForValue.build()); @@ -3024,6 +3418,8 @@ public Builder addBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3031,14 +3427,17 @@ public Builder addBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder addAllBindingExplanations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation> + values) { if (bindingExplanationsBuilder_ == null) { ensureBindingExplanationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindingExplanations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingExplanations_); onChanged(); } else { bindingExplanationsBuilder_.addAllMessages(values); @@ -3046,6 +3445,8 @@ public Builder addAllBindingExplanations( return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3053,7 +3454,9 @@ public Builder addAllBindingExplanations(
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder clearBindingExplanations() { if (bindingExplanationsBuilder_ == null) { @@ -3066,6 +3469,8 @@ public Builder clearBindingExplanations() { return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3073,7 +3478,9 @@ public Builder clearBindingExplanations() {
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ public Builder removeBindingExplanations(int index) { if (bindingExplanationsBuilder_ == null) { @@ -3086,6 +3493,8 @@ public Builder removeBindingExplanations(int index) { return this; } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3093,13 +3502,17 @@ public Builder removeBindingExplanations(int index) {
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder getBindingExplanationsBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + getBindingExplanationsBuilder(int index) { return getBindingExplanationsFieldBuilder().getBuilder(index); } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3107,16 +3520,21 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder getBindingExplanationsOrBuilder( - int index) { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder + getBindingExplanationsOrBuilder(int index) { if (bindingExplanationsBuilder_ == null) { - return bindingExplanations_.get(index); } else { + return bindingExplanations_.get(index); + } else { return bindingExplanationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3124,10 +3542,14 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBui
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; - */ - public java.util.List - getBindingExplanationsOrBuilderList() { + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + */ + public java.util.List< + ? extends + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> + getBindingExplanationsOrBuilderList() { if (bindingExplanationsBuilder_ != null) { return bindingExplanationsBuilder_.getMessageOrBuilderList(); } else { @@ -3135,6 +3557,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBui } } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3142,13 +3566,20 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBui
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder addBindingExplanationsBuilder() { - return getBindingExplanationsFieldBuilder().addBuilder( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + addBindingExplanationsBuilder() { + return getBindingExplanationsFieldBuilder() + .addBuilder( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .getDefaultInstance()); } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3156,14 +3587,21 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder addBindingExplanationsBuilder( - int index) { - return getBindingExplanationsFieldBuilder().addBuilder( - index, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder + addBindingExplanationsBuilder(int index) { + return getBindingExplanationsFieldBuilder() + .addBuilder( + index, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .getDefaultInstance()); } /** + * + * *
        * Details about how each binding in the policy affects the member's ability,
        * or inability, to use the permission for the resource.
@@ -3171,18 +3609,27 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil
        * is omitted.
        * 
* - * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * + * repeated .google.cloud.policytroubleshooter.v1.BindingExplanation binding_explanations = 4; + * */ - public java.util.List - getBindingExplanationsBuilderList() { + public java.util.List< + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder> + getBindingExplanationsBuilderList() { return getBindingExplanationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder> getBindingExplanationsFieldBuilder() { if (bindingExplanationsBuilder_ == null) { - bindingExplanationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>( + bindingExplanationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder>( bindingExplanations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3194,6 +3641,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil private int relevance_ = 0; /** + * + * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3202,12 +3651,16 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3216,16 +3669,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Buil
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** + * + * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3234,15 +3690,22 @@ public Builder setRelevanceValue(int value) {
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } /** + * + * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3251,19 +3714,23 @@ public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getR
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance( + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The relevance of this policy to the overall determination in the
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
@@ -3272,14 +3739,16 @@ public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.He
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 5; + * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3292,30 +3761,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.ExplainedPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.ExplainedPolicy) - private static final google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy DEFAULT_INSTANCE; + private static final google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy(); } - public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplainedPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExplainedPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplainedPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplainedPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3327,17 +3798,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.ExplainedPolicy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BindingExplanationOrBuilder extends + public interface BindingExplanationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.BindingExplanation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -3348,11 +3822,16 @@ public interface BindingExplanationOrBuilder extends
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for access. */ int getAccessValue(); /** + * + * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -3363,12 +3842,17 @@ public interface BindingExplanationOrBuilder extends
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The access. */ google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess(); /** + * + * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -3377,10 +3861,13 @@ public interface BindingExplanationOrBuilder extends
      * 
* * string role = 2; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -3389,54 +3876,76 @@ public interface BindingExplanationOrBuilder extends
      * 
* * string role = 2; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The enum numeric value on the wire for rolePermission. */ int getRolePermissionValue(); /** + * + * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The rolePermission. */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission(); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + getRolePermission(); /** + * + * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The enum numeric value on the wire for rolePermissionRelevance. */ int getRolePermissionRelevanceValue(); /** + * + * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The rolePermissionRelevance. */ - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance(); + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + getRolePermissionRelevance(); /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3455,10 +3964,14 @@ public interface BindingExplanationOrBuilder extends
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ int getMembershipsCount(); /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3477,17 +3990,21 @@ public interface BindingExplanationOrBuilder extends
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; - */ - boolean containsMemberships( - java.lang.String key); - /** - * Use {@link #getMembershipsMap()} instead. + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ + boolean containsMemberships(java.lang.String key); + /** Use {@link #getMembershipsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMemberships(); + java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + getMemberships(); /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3506,11 +4023,18 @@ boolean containsMemberships(
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - java.util.Map - getMembershipsMap(); + java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + getMembershipsMap(); /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3529,15 +4053,21 @@ boolean containsMemberships(
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ /* nullable */ -google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault( - java.lang.String key, - /* nullable */ -google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + getMembershipsOrDefault( + java.lang.String key, + /* nullable */ + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + defaultValue); /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -3556,34 +4086,43 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMe
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( - java.lang.String key); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + getMembershipsOrThrow(java.lang.String key); /** + * + * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** + * + * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -3592,10 +4131,13 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMe
      * 
* * .google.type.Expr condition = 7; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -3604,10 +4146,13 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMe
      * 
* * .google.type.Expr condition = 7; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -3620,6 +4165,8 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMe
     com.google.type.ExprOrBuilder getConditionOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Details about how a binding in a policy affects a member's ability to use a
    * permission.
@@ -3627,15 +4174,16 @@ google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMe
    *
    * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation}
    */
-  public static final class BindingExplanation extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BindingExplanation extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.BindingExplanation)
       BindingExplanationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BindingExplanation.newBuilder() to construct.
     private BindingExplanation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private BindingExplanation() {
       access_ = 0;
       role_ = "";
@@ -3646,16 +4194,15 @@ private BindingExplanation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BindingExplanation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private BindingExplanation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3675,69 +4222,81 @@ private BindingExplanation(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
-
-              access_ = rawValue;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 8:
+              {
+                int rawValue = input.readEnum();
 
-              role_ = s;
-              break;
-            }
-            case 24: {
-              int rawValue = input.readEnum();
+                access_ = rawValue;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              rolePermission_ = rawValue;
-              break;
-            }
-            case 32: {
-              int rawValue = input.readEnum();
+                role_ = s;
+                break;
+              }
+            case 24:
+              {
+                int rawValue = input.readEnum();
 
-              rolePermissionRelevance_ = rawValue;
-              break;
-            }
-            case 42: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                memberships_ = com.google.protobuf.MapField.newMapField(
-                    MembershipsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
+                rolePermission_ = rawValue;
+                break;
               }
-              com.google.protobuf.MapEntry
-              memberships__ = input.readMessage(
-                  MembershipsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              memberships_.getMutableMap().put(
-                  memberships__.getKey(), memberships__.getValue());
-              break;
-            }
-            case 48: {
-              int rawValue = input.readEnum();
+            case 32:
+              {
+                int rawValue = input.readEnum();
 
-              relevance_ = rawValue;
-              break;
-            }
-            case 58: {
-              com.google.type.Expr.Builder subBuilder = null;
-              if (condition_ != null) {
-                subBuilder = condition_.toBuilder();
+                rolePermissionRelevance_ = rawValue;
+                break;
+              }
+            case 42:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  memberships_ =
+                      com.google.protobuf.MapField.newMapField(
+                          MembershipsDefaultEntryHolder.defaultEntry);
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                com.google.protobuf.MapEntry<
+                        java.lang.String,
+                        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                            .AnnotatedMembership>
+                    memberships__ =
+                        input.readMessage(
+                            MembershipsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                memberships_.getMutableMap().put(memberships__.getKey(), memberships__.getValue());
+                break;
               }
-              condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(condition_);
-                condition_ = subBuilder.buildPartial();
+            case 48:
+              {
+                int rawValue = input.readEnum();
+
+                relevance_ = rawValue;
+                break;
               }
+            case 58:
+              {
+                com.google.type.Expr.Builder subBuilder = null;
+                if (condition_ != null) {
+                  subBuilder = condition_.toBuilder();
+                }
+                condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(condition_);
+                  condition_ = subBuilder.buildPartial();
+                }
 
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3745,48 +4304,52 @@ private BindingExplanation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return google.cloud.policytroubleshooter.v1.Explanations
+          .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_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 internalGetMemberships();
         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 google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
+      return google.cloud.policytroubleshooter.v1.Explanations
+          .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
     }
 
     /**
+     *
+     *
      * 
      * Whether a role includes a specific permission.
      * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission} */ - public enum RolePermission - implements com.google.protobuf.ProtocolMessageEnum { + public enum RolePermission implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Reserved for future use.
        * 
@@ -3795,6 +4358,8 @@ public enum RolePermission */ ROLE_PERMISSION_UNSPECIFIED(0), /** + * + * *
        * The permission is included in the role.
        * 
@@ -3803,6 +4368,8 @@ public enum RolePermission */ ROLE_PERMISSION_INCLUDED(1), /** + * + * *
        * The permission is not included in the role.
        * 
@@ -3811,6 +4378,8 @@ public enum RolePermission */ ROLE_PERMISSION_NOT_INCLUDED(2), /** + * + * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -3822,6 +4391,8 @@ public enum RolePermission ; /** + * + * *
        * Reserved for future use.
        * 
@@ -3830,6 +4401,8 @@ public enum RolePermission */ public static final int ROLE_PERMISSION_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The permission is included in the role.
        * 
@@ -3838,6 +4411,8 @@ public enum RolePermission */ public static final int ROLE_PERMISSION_INCLUDED_VALUE = 1; /** + * + * *
        * The permission is not included in the role.
        * 
@@ -3846,6 +4421,8 @@ public enum RolePermission */ public static final int ROLE_PERMISSION_NOT_INCLUDED_VALUE = 2; /** + * + * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -3854,7 +4431,6 @@ public enum RolePermission */ public static final int ROLE_PERMISSION_UNKNOWN_INFO_DENIED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3879,41 +4455,47 @@ public static RolePermission valueOf(int value) { */ public static RolePermission forNumber(int value) { switch (value) { - case 0: return ROLE_PERMISSION_UNSPECIFIED; - case 1: return ROLE_PERMISSION_INCLUDED; - case 2: return ROLE_PERMISSION_NOT_INCLUDED; - case 3: return ROLE_PERMISSION_UNKNOWN_INFO_DENIED; - default: return null; + case 0: + return ROLE_PERMISSION_UNSPECIFIED; + case 1: + return ROLE_PERMISSION_INCLUDED; + case 2: + return ROLE_PERMISSION_NOT_INCLUDED; + case 3: + return ROLE_PERMISSION_UNKNOWN_INFO_DENIED; + 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< - RolePermission> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RolePermission findValueByNumber(int number) { - return RolePermission.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 RolePermission findValueByNumber(int number) { + return RolePermission.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor() + .getEnumTypes() + .get(0); } private static final RolePermission[] VALUES = values(); @@ -3921,8 +4503,7 @@ public RolePermission findValueByNumber(int number) { public static RolePermission 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; @@ -3940,15 +4521,18 @@ private RolePermission(int value) { } /** + * + * *
      * Whether the binding includes the member.
      * 
* * Protobuf enum {@code google.cloud.policytroubleshooter.v1.BindingExplanation.Membership} */ - public enum Membership - implements com.google.protobuf.ProtocolMessageEnum { + public enum Membership implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Reserved for future use.
        * 
@@ -3957,6 +4541,8 @@ public enum Membership */ MEMBERSHIP_UNSPECIFIED(0), /** + * + * *
        * The binding includes the member. The member can be included directly
        * or indirectly. For example:
@@ -3969,6 +4555,8 @@ public enum Membership
        */
       MEMBERSHIP_INCLUDED(1),
       /**
+       *
+       *
        * 
        * The binding does not include the member.
        * 
@@ -3977,6 +4565,8 @@ public enum Membership */ MEMBERSHIP_NOT_INCLUDED(2), /** + * + * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -3985,6 +4575,8 @@ public enum Membership */ MEMBERSHIP_UNKNOWN_INFO_DENIED(3), /** + * + * *
        * The member is an unsupported type. Only Google Accounts and service
        * accounts are supported.
@@ -3997,6 +4589,8 @@ public enum Membership
       ;
 
       /**
+       *
+       *
        * 
        * Reserved for future use.
        * 
@@ -4005,6 +4599,8 @@ public enum Membership */ public static final int MEMBERSHIP_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The binding includes the member. The member can be included directly
        * or indirectly. For example:
@@ -4017,6 +4613,8 @@ public enum Membership
        */
       public static final int MEMBERSHIP_INCLUDED_VALUE = 1;
       /**
+       *
+       *
        * 
        * The binding does not include the member.
        * 
@@ -4025,6 +4623,8 @@ public enum Membership */ public static final int MEMBERSHIP_NOT_INCLUDED_VALUE = 2; /** + * + * *
        * The sender of the request is not allowed to access the binding.
        * 
@@ -4033,6 +4633,8 @@ public enum Membership */ public static final int MEMBERSHIP_UNKNOWN_INFO_DENIED_VALUE = 3; /** + * + * *
        * The member is an unsupported type. Only Google Accounts and service
        * accounts are supported.
@@ -4042,7 +4644,6 @@ public enum Membership
        */
       public static final int MEMBERSHIP_UNKNOWN_UNSUPPORTED_VALUE = 4;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -4067,51 +4668,55 @@ public static Membership valueOf(int value) {
        */
       public static Membership forNumber(int value) {
         switch (value) {
-          case 0: return MEMBERSHIP_UNSPECIFIED;
-          case 1: return MEMBERSHIP_INCLUDED;
-          case 2: return MEMBERSHIP_NOT_INCLUDED;
-          case 3: return MEMBERSHIP_UNKNOWN_INFO_DENIED;
-          case 4: return MEMBERSHIP_UNKNOWN_UNSUPPORTED;
-          default: return null;
+          case 0:
+            return MEMBERSHIP_UNSPECIFIED;
+          case 1:
+            return MEMBERSHIP_INCLUDED;
+          case 2:
+            return MEMBERSHIP_NOT_INCLUDED;
+          case 3:
+            return MEMBERSHIP_UNKNOWN_INFO_DENIED;
+          case 4:
+            return MEMBERSHIP_UNKNOWN_UNSUPPORTED;
+          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<
-          Membership> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Membership findValueByNumber(int number) {
-                return Membership.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 Membership findValueByNumber(int number) {
+              return Membership.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor().getEnumTypes().get(1);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDescriptor()
+            .getEnumTypes()
+            .get(1);
       }
 
       private static final Membership[] VALUES = values();
 
-      public static Membership valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Membership 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;
@@ -4128,66 +4733,86 @@ private Membership(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.Membership)
     }
 
-    public interface AnnotatedMembershipOrBuilder extends
+    public interface AnnotatedMembershipOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The enum numeric value on the wire for membership. */ int getMembershipValue(); /** + * + * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The membership. */ - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership(); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + getMembership(); /** + * + * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The enum numeric value on the wire for relevance. */ int getRelevanceValue(); /** + * + * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The relevance. */ google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance(); } /** + * + * *
      * Details about whether the binding includes the member.
      * 
* - * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} + * Protobuf type {@code + * google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} */ - public static final class AnnotatedMembership extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AnnotatedMembership extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) AnnotatedMembershipOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotatedMembership.newBuilder() to construct. private AnnotatedMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotatedMembership() { membership_ = 0; relevance_ = 0; @@ -4195,16 +4820,15 @@ private AnnotatedMembership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotatedMembership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotatedMembership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4223,25 +4847,27 @@ private AnnotatedMembership( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - membership_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + membership_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - relevance_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + relevance_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4249,83 +4875,117 @@ private AnnotatedMembership( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.class, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.Builder.class); } public static final int MEMBERSHIP_FIELD_NUMBER = 1; private int membership_; /** + * + * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The enum numeric value on the wire for membership. */ - @java.lang.Override public int getMembershipValue() { + @java.lang.Override + public int getMembershipValue() { return membership_; } /** + * + * *
        * Indicates whether the binding includes the member.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The membership. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + getMembership() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf(membership_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf( + membership_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + .UNRECOGNIZED + : result; } public static final int RELEVANCE_FIELD_NUMBER = 2; private int relevance_; /** + * + * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
        * The relevance of the member's status to the overall determination for the
        * binding.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The relevance. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4337,12 +4997,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (membership_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.MEMBERSHIP_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (membership_ + != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + .MEMBERSHIP_UNSPECIFIED + .getNumber()) { output.writeEnum(1, membership_); } - if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { + if (relevance_ + != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + .HEURISTIC_RELEVANCE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, relevance_); } unknownFields.writeTo(output); @@ -4354,13 +5019,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (membership_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.MEMBERSHIP_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, membership_); - } - if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, relevance_); + if (membership_ + != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + .MEMBERSHIP_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, membership_); + } + if (relevance_ + != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + .HEURISTIC_RELEVANCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, relevance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4370,12 +5039,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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership)) { + if (!(obj + instanceof + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership)) { return super.equals(obj); } - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership other = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) obj; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + other = + (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership) + obj; if (membership_ != other.membership_) return false; if (relevance_ != other.relevance_) return false; @@ -4399,88 +5075,116 @@ public int hashCode() { return hash; } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership prototype) { + + public static Builder newBuilder( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + 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 @@ -4490,44 +5194,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Details about whether the binding includes the member.
        * 
* - * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} + * Protobuf type {@code + * google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.Builder.class); + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.class, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.Builder.class); } - // Construct using google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.newBuilder() + // Construct using + // google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4539,19 +5252,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor; } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstanceForType() { - return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + getDefaultInstanceForType() { + return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.getDefaultInstance(); } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership build() { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership result = buildPartial(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + build() { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4559,8 +5278,13 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership buildPartial() { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership result = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership(this); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + buildPartial() { + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + result = + new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership(this); result.membership_ = membership_; result.relevance_ = relevance_; onBuilt(); @@ -4571,46 +5295,59 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) { - return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership)other); + if (other + instanceof + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership) { + return mergeFrom( + (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership other) { - if (other == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance()) return this; + public Builder mergeFrom( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + other) { + if (other + == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.getDefaultInstance()) return this; if (other.membership_ != 0) { setMembershipValue(other.getMembershipValue()); } @@ -4632,11 +5369,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership parsedMessage = null; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership) e.getUnfinishedMessage(); + parsedMessage = + (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4648,73 +5389,101 @@ public Builder mergeFrom( private int membership_ = 0; /** + * + * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The enum numeric value on the wire for membership. */ - @java.lang.Override public int getMembershipValue() { + @java.lang.Override + public int getMembershipValue() { return membership_; } /** + * + * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @param value The enum numeric value on the wire for membership to set. * @return This builder for chaining. */ public Builder setMembershipValue(int value) { - + membership_ = value; onChanged(); return this; } /** + * + * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return The membership. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership getMembership() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + getMembership() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.valueOf(membership_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership result = + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + .valueOf(membership_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership + .UNRECOGNIZED + : result; } /** + * + * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @param value The membership to set. * @return This builder for chaining. */ - public Builder setMembership(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership value) { + public Builder setMembership( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Membership value) { if (value == null) { throw new NullPointerException(); } - + membership_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Indicates whether the binding includes the member.
          * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * .google.cloud.policytroubleshooter.v1.BindingExplanation.Membership membership = 1; + * + * * @return This builder for chaining. */ public Builder clearMembership() { - + membership_ = 0; onChanged(); return this; @@ -4722,82 +5491,104 @@ public Builder clearMembership() { private int relevance_ = 0; /** + * + * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** + * + * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } /** + * + * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance( + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The relevance of the member's status to the overall determination for the
          * binding.
          * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 2; + * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4810,30 +5601,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) } // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership) - private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership DEFAULT_INSTANCE; + private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership(); + DEFAULT_INSTANCE = + new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership(); } - public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstance() { + public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedMembership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedMembership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedMembership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4845,15 +5642,18 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getDefaultInstanceForType() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ACCESS_FIELD_NUMBER = 1; private int access_; /** + * + * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -4864,13 +5664,19 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
      * Required. Indicates whether _this binding_ provides the specified permission to the
      * specified member for the specified resource.
@@ -4881,18 +5687,27 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
      * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
      * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The access. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** + * + * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -4901,6 +5716,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
      * 
* * string role = 2; + * * @return The role. */ @java.lang.Override @@ -4909,14 +5725,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; } } /** + * + * *
      * The role that this binding grants. For example,
      * `roles/compute.serviceAgent`.
@@ -4925,16 +5742,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 { @@ -4945,77 +5761,127 @@ public java.lang.String getRole() { public static final int ROLE_PERMISSION_FIELD_NUMBER = 3; private int rolePermission_; /** + * + * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The enum numeric value on the wire for rolePermission. */ - @java.lang.Override public int getRolePermissionValue() { + @java.lang.Override + public int getRolePermissionValue() { return rolePermission_; } /** + * + * *
      * Indicates whether the role granted by this binding contains the specified
      * permission.
      * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The rolePermission. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + getRolePermission() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.valueOf(rolePermission_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + .valueOf(rolePermission_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + .UNRECOGNIZED + : result; } public static final int ROLE_PERMISSION_RELEVANCE_FIELD_NUMBER = 4; private int rolePermissionRelevance_; /** + * + * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The enum numeric value on the wire for rolePermissionRelevance. */ - @java.lang.Override public int getRolePermissionRelevanceValue() { + @java.lang.Override + public int getRolePermissionRelevanceValue() { return rolePermissionRelevance_; } /** + * + * *
      * The relevance of the permission's existence, or nonexistence, in the role
      * to the overall determination for the entire policy.
      * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The rolePermissionRelevance. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + getRolePermissionRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(rolePermissionRelevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + rolePermissionRelevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } public static final int MEMBERSHIPS_FIELD_NUMBER = 5; + private static final class MembershipsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> defaultEntry = + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership.getDefaultInstance()); + . + newDefaultInstance( + google.cloud.policytroubleshooter.v1.Explanations + .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + memberships_; + private com.google.protobuf.MapField< - java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> memberships_; - private com.google.protobuf.MapField - internalGetMemberships() { + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); @@ -5027,6 +5893,8 @@ public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5045,24 +5913,30 @@ public int getMembershipsCount() {
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - @java.lang.Override - public boolean containsMemberships( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMemberships(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMemberships().getMap().containsKey(key); } - /** - * Use {@link #getMembershipsMap()} instead. - */ + /** Use {@link #getMembershipsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMemberships() { + public java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + getMemberships() { return getMembershipsMap(); } /** + * + * *
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5081,14 +5955,21 @@ public java.util.Map
      *
-     * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+     * 
+     * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipsMap() {
+    public java.util.Map<
+            java.lang.String,
+            google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                .AnnotatedMembership>
+        getMembershipsMap() {
       return internalGetMemberships().getMap();
     }
     /**
+     *
+     *
      * 
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5107,19 +5988,29 @@ public java.util.Map
      *
-     * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+     * 
+     * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+     * 
      */
     @java.lang.Override
-
-    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault(
-        java.lang.String key,
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMemberships().getMap();
+    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership
+        getMembershipsOrDefault(
+            java.lang.String key,
+            google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership
+                defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map<
+              java.lang.String,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                  .AnnotatedMembership>
+          map = internalGetMemberships().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Indicates whether each member in the binding includes the member specified
      * in the request, either directly or indirectly. Each key identifies a member
@@ -5138,15 +6029,21 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
      * set to `MEMBERSHIP_INCLUDED`.
      * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ @java.lang.Override - - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMemberships().getMap(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + getMembershipsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + map = internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5156,35 +6053,48 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno public static final int RELEVANCE_FIELD_NUMBER = 6; private int relevance_; /** + * + * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
      * The relevance of this binding to the overall determination for the entire
      * policy.
      * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The relevance. */ - @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { + @java.lang.Override + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } public static final int CONDITION_FIELD_NUMBER = 7; private com.google.type.Expr condition_; /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -5193,6 +6103,7 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
      * 
* * .google.type.Expr condition = 7; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -5200,6 +6111,8 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -5208,6 +6121,7 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 7; + * * @return The condition. */ @java.lang.Override @@ -5215,6 +6129,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
      * A condition expression that prevents access unless the expression evaluates
      * to `true`.
@@ -5230,6 +6146,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -5241,27 +6158,33 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
-      if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+      if (access_
+          != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED
+              .getNumber()) {
         output.writeEnum(1, access_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_);
       }
-      if (rolePermission_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.ROLE_PERMISSION_UNSPECIFIED.getNumber()) {
+      if (rolePermission_
+          != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission
+              .ROLE_PERMISSION_UNSPECIFIED
+              .getNumber()) {
         output.writeEnum(3, rolePermission_);
       }
-      if (rolePermissionRelevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
+      if (rolePermissionRelevance_
+          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
+              .HEURISTIC_RELEVANCE_UNSPECIFIED
+              .getNumber()) {
         output.writeEnum(4, rolePermissionRelevance_);
       }
-      com.google.protobuf.GeneratedMessageV3
-        .serializeStringMapTo(
-          output,
-          internalGetMemberships(),
-          MembershipsDefaultEntryHolder.defaultEntry,
-          5);
-      if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
+      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+          output, internalGetMemberships(), MembershipsDefaultEntryHolder.defaultEntry, 5);
+      if (relevance_
+          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
+              .HEURISTIC_RELEVANCE_UNSPECIFIED
+              .getNumber()) {
         output.writeEnum(6, relevance_);
       }
       if (condition_ != null) {
@@ -5276,38 +6199,51 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (access_ != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(1, access_);
+      if (access_
+          != google.cloud.policytroubleshooter.v1.Explanations.AccessState.ACCESS_STATE_UNSPECIFIED
+              .getNumber()) {
+        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, access_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_);
       }
-      if (rolePermission_ != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.ROLE_PERMISSION_UNSPECIFIED.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(3, rolePermission_);
-      }
-      if (rolePermissionRelevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(4, rolePermissionRelevance_);
-      }
-      for (java.util.Map.Entry entry
-           : internalGetMemberships().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
-        memberships__ = MembershipsDefaultEntryHolder.defaultEntry.newBuilderForType()
-            .setKey(entry.getKey())
-            .setValue(entry.getValue())
-            .build();
-        size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(5, memberships__);
-      }
-      if (relevance_ != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.HEURISTIC_RELEVANCE_UNSPECIFIED.getNumber()) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(6, relevance_);
+      if (rolePermission_
+          != google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission
+              .ROLE_PERMISSION_UNSPECIFIED
+              .getNumber()) {
+        size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, rolePermission_);
+      }
+      if (rolePermissionRelevance_
+          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
+              .HEURISTIC_RELEVANCE_UNSPECIFIED
+              .getNumber()) {
+        size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, rolePermissionRelevance_);
+      }
+      for (java.util.Map.Entry<
+              java.lang.String,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                  .AnnotatedMembership>
+          entry : internalGetMemberships().getMap().entrySet()) {
+        com.google.protobuf.MapEntry<
+                java.lang.String,
+                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                    .AnnotatedMembership>
+            memberships__ =
+                MembershipsDefaultEntryHolder.defaultEntry
+                    .newBuilderForType()
+                    .setKey(entry.getKey())
+                    .setValue(entry.getValue())
+                    .build();
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, memberships__);
+      }
+      if (relevance_
+          != google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance
+              .HEURISTIC_RELEVANCE_UNSPECIFIED
+              .getNumber()) {
+        size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, relevance_);
       }
       if (condition_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, getCondition());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCondition());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -5317,25 +6253,23 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)) {
         return super.equals(obj);
       }
-      google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) obj;
+      google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other =
+          (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) obj;
 
       if (access_ != other.access_) return false;
-      if (!getRole()
-          .equals(other.getRole())) return false;
+      if (!getRole().equals(other.getRole())) return false;
       if (rolePermission_ != other.rolePermission_) return false;
       if (rolePermissionRelevance_ != other.rolePermissionRelevance_) return false;
-      if (!internalGetMemberships().equals(
-          other.internalGetMemberships())) return false;
+      if (!internalGetMemberships().equals(other.internalGetMemberships())) return false;
       if (relevance_ != other.relevance_) 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 (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -5372,87 +6306,95 @@ public int hashCode() {
     }
 
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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 google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation prototype) {
+
+    public static Builder newBuilder(
+        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation 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
@@ -5462,6 +6404,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Details about how a binding in a policy affects a member's ability to use a
      * permission.
@@ -5469,60 +6413,61 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.policytroubleshooter.v1.BindingExplanation}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.policytroubleshooter.v1.BindingExplanation)
         google.cloud.policytroubleshooter.v1.Explanations.BindingExplanationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 5:
             return internalGetMemberships();
           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 internalGetMutableMemberships();
           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 google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
+                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.class,
+                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Builder.class);
       }
 
-      // Construct using google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.newBuilder()
+      // Construct using
+      // google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5547,19 +6492,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations
+            .internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
       }
 
       @java.lang.Override
-      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstanceForType() {
-        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance();
+      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+          getDefaultInstanceForType() {
+        return google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation build() {
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result = buildPartial();
+        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5568,7 +6516,8 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buil
 
       @java.lang.Override
       public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buildPartial() {
-        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation(this);
+        google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation result =
+            new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation(this);
         int from_bitField0_ = bitField0_;
         result.access_ = access_;
         result.role_ = role_;
@@ -5590,46 +6539,53 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation buil
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) {
-          return mergeFrom((google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)other);
+          return mergeFrom(
+              (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other) {
-        if (other == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation other) {
+        if (other
+            == google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                .getDefaultInstance()) return this;
         if (other.access_ != 0) {
           setAccessValue(other.getAccessValue());
         }
@@ -5643,8 +6599,7 @@ public Builder mergeFrom(google.cloud.policytroubleshooter.v1.Explanations.Bindi
         if (other.rolePermissionRelevance_ != 0) {
           setRolePermissionRelevanceValue(other.getRolePermissionRelevanceValue());
         }
-        internalGetMutableMemberships().mergeFrom(
-            other.internalGetMemberships());
+        internalGetMutableMemberships().mergeFrom(other.internalGetMemberships());
         if (other.relevance_ != 0) {
           setRelevanceValue(other.getRelevanceValue());
         }
@@ -5670,7 +6625,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation) e.getUnfinishedMessage();
+          parsedMessage =
+              (google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -5679,10 +6636,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private int access_ = 0;
       /**
+       *
+       *
        * 
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -5693,13 +6653,19 @@ public Builder mergeFrom(
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for access. */ - @java.lang.Override public int getAccessValue() { + @java.lang.Override + public int getAccessValue() { return access_; } /** + * + * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -5710,17 +6676,22 @@ public Builder mergeFrom(
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for access to set. * @return This builder for chaining. */ public Builder setAccessValue(int value) { - + access_ = value; onChanged(); return this; } /** + * + * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -5731,16 +6702,24 @@ public Builder setAccessValue(int value) {
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The access. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.AccessState result = google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.AccessState result = + google.cloud.policytroubleshooter.v1.Explanations.AccessState.valueOf(access_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.AccessState.UNRECOGNIZED + : result; } /** + * + * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -5751,20 +6730,26 @@ public google.cloud.policytroubleshooter.v1.Explanations.AccessState getAccess()
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The access to set. * @return This builder for chaining. */ - public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { + public Builder setAccess( + google.cloud.policytroubleshooter.v1.Explanations.AccessState value) { if (value == null) { throw new NullPointerException(); } - + access_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Required. Indicates whether _this binding_ provides the specified permission to the
        * specified member for the specified resource.
@@ -5775,11 +6760,14 @@ public Builder setAccess(google.cloud.policytroubleshooter.v1.Explanations.Acces
        * [TroubleshootIamPolicyResponse][IamChecker.TroubleshootIamPolicyResponse].
        * 
* - * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.policytroubleshooter.v1.AccessState access = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAccess() { - + access_ = 0; onChanged(); return this; @@ -5787,6 +6775,8 @@ public Builder clearAccess() { private java.lang.Object role_ = ""; /** + * + * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -5795,13 +6785,13 @@ public Builder clearAccess() {
        * 
* * 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; @@ -5810,6 +6800,8 @@ public java.lang.String getRole() { } } /** + * + * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -5818,15 +6810,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 { @@ -5834,6 +6825,8 @@ public java.lang.String getRole() { } } /** + * + * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -5842,20 +6835,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) { + public Builder setRole(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** + * + * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -5864,15 +6859,18 @@ public Builder setRole(
        * 
* * string role = 2; + * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** + * + * *
        * The role that this binding grants. For example,
        * `roles/compute.serviceAgent`.
@@ -5881,16 +6879,16 @@ 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) { + public Builder setRoleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; onChanged(); return this; @@ -5898,78 +6896,112 @@ public Builder setRoleBytes( private int rolePermission_ = 0; /** + * + * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The enum numeric value on the wire for rolePermission. */ - @java.lang.Override public int getRolePermissionValue() { + @java.lang.Override + public int getRolePermissionValue() { return rolePermission_; } /** + * + * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @param value The enum numeric value on the wire for rolePermission to set. * @return This builder for chaining. */ public Builder setRolePermissionValue(int value) { - + rolePermission_ = value; onChanged(); return this; } /** + * + * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return The rolePermission. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission getRolePermission() { + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + getRolePermission() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.valueOf(rolePermission_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission result = + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + .valueOf(rolePermission_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + .UNRECOGNIZED + : result; } /** + * + * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @param value The rolePermission to set. * @return This builder for chaining. */ - public Builder setRolePermission(google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission value) { + public Builder setRolePermission( + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.RolePermission + value) { if (value == null) { throw new NullPointerException(); } - + rolePermission_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates whether the role granted by this binding contains the specified
        * permission.
        * 
* - * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * .google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission role_permission = 3; + * + * * @return This builder for chaining. */ public Builder clearRolePermission() { - + rolePermission_ = 0; onChanged(); return this; @@ -5977,99 +7009,143 @@ public Builder clearRolePermission() { private int rolePermissionRelevance_ = 0; /** + * + * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The enum numeric value on the wire for rolePermissionRelevance. */ - @java.lang.Override public int getRolePermissionRelevanceValue() { + @java.lang.Override + public int getRolePermissionRelevanceValue() { return rolePermissionRelevance_; } /** + * + * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @param value The enum numeric value on the wire for rolePermissionRelevance to set. * @return This builder for chaining. */ public Builder setRolePermissionRelevanceValue(int value) { - + rolePermissionRelevance_ = value; onChanged(); return this; } /** + * + * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return The rolePermissionRelevance. */ @java.lang.Override - public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRolePermissionRelevance() { + public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance + getRolePermissionRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(rolePermissionRelevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + rolePermissionRelevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } /** + * + * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @param value The rolePermissionRelevance to set. * @return This builder for chaining. */ - public Builder setRolePermissionRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRolePermissionRelevance( + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + rolePermissionRelevance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The relevance of the permission's existence, or nonexistence, in the role
        * to the overall determination for the entire policy.
        * 
* - * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * .google.cloud.policytroubleshooter.v1.HeuristicRelevance role_permission_relevance = 4; + * + * * @return This builder for chaining. */ public Builder clearRolePermissionRelevance() { - + rolePermissionRelevance_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< - java.lang.String, google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership> memberships_; - private com.google.protobuf.MapField - internalGetMemberships() { + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + memberships_; + + private com.google.protobuf.MapField< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + internalGetMemberships() { if (memberships_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipsDefaultEntryHolder.defaultEntry); } return memberships_; } - private com.google.protobuf.MapField - internalGetMutableMemberships() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + internalGetMutableMemberships() { + onChanged(); + ; if (memberships_ == null) { - memberships_ = com.google.protobuf.MapField.newMapField( - MembershipsDefaultEntryHolder.defaultEntry); + memberships_ = + com.google.protobuf.MapField.newMapField(MembershipsDefaultEntryHolder.defaultEntry); } if (!memberships_.isMutable()) { memberships_ = memberships_.copy(); @@ -6081,6 +7157,8 @@ public int getMembershipsCount() { return internalGetMemberships().getMap().size(); } /** + * + * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6099,24 +7177,30 @@ public int getMembershipsCount() {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - @java.lang.Override - public boolean containsMemberships( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMemberships(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMemberships().getMap().containsKey(key); } - /** - * Use {@link #getMembershipsMap()} instead. - */ + /** Use {@link #getMembershipsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMemberships() { + public java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + getMemberships() { return getMembershipsMap(); } /** + * + * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6135,14 +7219,21 @@ public java.util.Map
        *
-       * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+       * 
+       * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+       * 
        */
       @java.lang.Override
-
-      public java.util.Map getMembershipsMap() {
+      public java.util.Map<
+              java.lang.String,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                  .AnnotatedMembership>
+          getMembershipsMap() {
         return internalGetMemberships().getMap();
       }
       /**
+       *
+       *
        * 
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6161,19 +7252,31 @@ public java.util.Map
        *
-       * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+       * 
+       * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5;
+       * 
        */
       @java.lang.Override
-
-      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrDefault(
-          java.lang.String key,
-          google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetMemberships().getMap();
+      public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+              .AnnotatedMembership
+          getMembershipsOrDefault(
+              java.lang.String key,
+              google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                      .AnnotatedMembership
+                  defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map<
+                java.lang.String,
+                google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+                    .AnnotatedMembership>
+            map = internalGetMemberships().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6192,15 +7295,22 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ @java.lang.Override - - public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership getMembershipsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMemberships().getMap(); + public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership + getMembershipsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + map = internalGetMemberships().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6208,11 +7318,12 @@ public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.Anno } public Builder clearMemberships() { - internalGetMutableMemberships().getMutableMap() - .clear(); + internalGetMutableMemberships().getMutableMap().clear(); return this; } /** + * + * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6231,25 +7342,29 @@ public Builder clearMemberships() {
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - - public Builder removeMemberships( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMemberships().getMutableMap() - .remove(key); + public Builder removeMemberships(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMemberships().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMemberships() { + public java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + getMutableMemberships() { return internalGetMutableMemberships().getMutableMap(); } /** + * + * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6268,21 +7383,27 @@ public Builder removeMemberships(
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ public Builder putMemberships( java.lang.String key, - google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership value) { - if (key == null) { throw new NullPointerException("map key"); } + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation.AnnotatedMembership + value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMemberships().getMutableMap() - .put(key, value); + internalGetMutableMemberships().getMutableMap().put(key, value); return this; } /** + * + * *
        * Indicates whether each member in the binding includes the member specified
        * in the request, either directly or indirectly. Each key identifies a member
@@ -6301,90 +7422,115 @@ public Builder putMemberships(
        * set to `MEMBERSHIP_INCLUDED`.
        * 
* - * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * + * map<string, .google.cloud.policytroubleshooter.v1.BindingExplanation.AnnotatedMembership> memberships = 5; + * */ - public Builder putAllMemberships( - java.util.Map values) { - internalGetMutableMemberships().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation + .AnnotatedMembership> + values) { + internalGetMutableMemberships().getMutableMap().putAll(values); return this; } private int relevance_ = 0; /** + * + * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The enum numeric value on the wire for relevance. */ - @java.lang.Override public int getRelevanceValue() { + @java.lang.Override + public int getRelevanceValue() { return relevance_; } /** + * + * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @param value The enum numeric value on the wire for relevance to set. * @return This builder for chaining. */ public Builder setRelevanceValue(int value) { - + relevance_ = value; onChanged(); return this; } /** + * + * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return The relevance. */ @java.lang.Override public google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance getRelevance() { @SuppressWarnings("deprecation") - google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf(relevance_); - return result == null ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED : result; + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance result = + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.valueOf( + relevance_); + return result == null + ? google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance.UNRECOGNIZED + : result; } /** + * + * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @param value The relevance to set. * @return This builder for chaining. */ - public Builder setRelevance(google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { + public Builder setRelevance( + google.cloud.policytroubleshooter.v1.Explanations.HeuristicRelevance value) { if (value == null) { throw new NullPointerException(); } - + relevance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The relevance of this binding to the overall determination for the entire
        * policy.
        * 
* * .google.cloud.policytroubleshooter.v1.HeuristicRelevance relevance = 6; + * * @return This builder for chaining. */ public Builder clearRelevance() { - + relevance_ = 0; onChanged(); return this; @@ -6392,8 +7538,11 @@ public Builder clearRelevance() { 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_; /** + * + * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6402,12 +7551,15 @@ public Builder clearRelevance() {
        * 
* * .google.type.Expr condition = 7; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** + * + * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6416,6 +7568,7 @@ public boolean hasCondition() {
        * 
* * .google.type.Expr condition = 7; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -6426,6 +7579,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6449,6 +7604,8 @@ public Builder setCondition(com.google.type.Expr value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6458,8 +7615,7 @@ public Builder setCondition(com.google.type.Expr value) {
        *
        * .google.type.Expr condition = 7;
        */
-      public Builder setCondition(
-          com.google.type.Expr.Builder builderForValue) {
+      public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
         if (conditionBuilder_ == null) {
           condition_ = builderForValue.build();
           onChanged();
@@ -6470,6 +7626,8 @@ public Builder setCondition(
         return this;
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6483,7 +7641,7 @@ public Builder mergeCondition(com.google.type.Expr value) {
         if (conditionBuilder_ == null) {
           if (condition_ != null) {
             condition_ =
-              com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
+                com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
           } else {
             condition_ = value;
           }
@@ -6495,6 +7653,8 @@ public Builder mergeCondition(com.google.type.Expr value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6516,6 +7676,8 @@ public Builder clearCondition() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6526,11 +7688,13 @@ public Builder clearCondition() {
        * .google.type.Expr condition = 7;
        */
       public com.google.type.Expr.Builder getConditionBuilder() {
-        
+
         onChanged();
         return getConditionFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6544,11 +7708,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_;
         }
       }
       /**
+       *
+       *
        * 
        * A condition expression that prevents access unless the expression evaluates
        * to `true`.
@@ -6559,18 +7724,19 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
        * .google.type.Expr condition = 7;
        */
       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) {
@@ -6583,30 +7749,32 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.policytroubleshooter.v1.BindingExplanation)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.policytroubleshooter.v1.BindingExplanation)
-    private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation DEFAULT_INSTANCE;
+    private static final google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation();
     }
 
-    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstance() {
+    public static google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public BindingExplanation parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new BindingExplanation(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public BindingExplanation parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new BindingExplanation(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -6618,144 +7786,160 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation getDefaultInstanceForType() {
+    public google.cloud.policytroubleshooter.v1.Explanations.BindingExplanation
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
     java.lang.String[] descriptorData = {
-      "\n7google/cloud/policytroubleshooter/v1/e" +
-      "xplanations.proto\022$google.cloud.policytr" +
-      "oubleshooter.v1\032\037google/api/field_behavi" +
-      "or.proto\032\032google/iam/v1/policy.proto\032\026go" +
-      "ogle/type/expr.proto\"_\n\013AccessTuple\022\026\n\tp" +
-      "rincipal\030\001 \001(\tB\003\340A\002\022\037\n\022full_resource_nam" +
-      "e\030\002 \001(\tB\003\340A\002\022\027\n\npermission\030\003 \001(\tB\003\340A\002\"\274\002" +
-      "\n\017ExplainedPolicy\022A\n\006access\030\001 \001(\01621.goog" +
-      "le.cloud.policytroubleshooter.v1.AccessS" +
-      "tate\022\032\n\022full_resource_name\030\002 \001(\t\022%\n\006poli" +
-      "cy\030\003 \001(\0132\025.google.iam.v1.Policy\022V\n\024bindi" +
-      "ng_explanations\030\004 \003(\01328.google.cloud.pol" +
-      "icytroubleshooter.v1.BindingExplanation\022" +
-      "K\n\trelevance\030\005 \001(\01628.google.cloud.policy" +
-      "troubleshooter.v1.HeuristicRelevance\"\203\t\n" +
-      "\022BindingExplanation\022F\n\006access\030\001 \001(\01621.go" +
-      "ogle.cloud.policytroubleshooter.v1.Acces" +
-      "sStateB\003\340A\002\022\014\n\004role\030\002 \001(\t\022`\n\017role_permis" +
-      "sion\030\003 \001(\0162G.google.cloud.policytroubles" +
-      "hooter.v1.BindingExplanation.RolePermiss" +
-      "ion\022[\n\031role_permission_relevance\030\004 \001(\01628" +
-      ".google.cloud.policytroubleshooter.v1.He" +
-      "uristicRelevance\022^\n\013memberships\030\005 \003(\0132I." +
-      "google.cloud.policytroubleshooter.v1.Bin" +
-      "dingExplanation.MembershipsEntry\022K\n\trele" +
-      "vance\030\006 \001(\01628.google.cloud.policytrouble" +
-      "shooter.v1.HeuristicRelevance\022$\n\tconditi" +
-      "on\030\007 \001(\0132\021.google.type.Expr\032\273\001\n\023Annotate" +
-      "dMembership\022W\n\nmembership\030\001 \001(\0162C.google" +
-      ".cloud.policytroubleshooter.v1.BindingEx" +
-      "planation.Membership\022K\n\trelevance\030\002 \001(\0162" +
-      "8.google.cloud.policytroubleshooter.v1.H" +
-      "euristicRelevance\032\200\001\n\020MembershipsEntry\022\013" +
-      "\n\003key\030\001 \001(\t\022[\n\005value\030\002 \001(\0132L.google.clou" +
-      "d.policytroubleshooter.v1.BindingExplana" +
-      "tion.AnnotatedMembership:\0028\001\"\232\001\n\016RolePer" +
-      "mission\022\037\n\033ROLE_PERMISSION_UNSPECIFIED\020\000" +
-      "\022\034\n\030ROLE_PERMISSION_INCLUDED\020\001\022 \n\034ROLE_P" +
-      "ERMISSION_NOT_INCLUDED\020\002\022\'\n#ROLE_PERMISS" +
-      "ION_UNKNOWN_INFO_DENIED\020\003\"\246\001\n\nMembership" +
-      "\022\032\n\026MEMBERSHIP_UNSPECIFIED\020\000\022\027\n\023MEMBERSH" +
-      "IP_INCLUDED\020\001\022\033\n\027MEMBERSHIP_NOT_INCLUDED" +
-      "\020\002\022\"\n\036MEMBERSHIP_UNKNOWN_INFO_DENIED\020\003\022\"" +
-      "\n\036MEMBERSHIP_UNKNOWN_UNSUPPORTED\020\004*{\n\013Ac" +
-      "cessState\022\034\n\030ACCESS_STATE_UNSPECIFIED\020\000\022" +
-      "\013\n\007GRANTED\020\001\022\017\n\013NOT_GRANTED\020\002\022\027\n\023UNKNOWN" +
-      "_CONDITIONAL\020\003\022\027\n\023UNKNOWN_INFO_DENIED\020\004*" +
-      "O\n\022HeuristicRelevance\022#\n\037HEURISTIC_RELEV" +
-      "ANCE_UNSPECIFIED\020\000\022\n\n\006NORMAL\020\001\022\010\n\004HIGH\020\002" +
-      "B\322\001ZXgoogle.golang.org/genproto/googleap" +
-      "is/cloud/policytroubleshooter/v1;policyt" +
-      "roubleshooter\252\002$Google.Cloud.PolicyTroub" +
-      "leshooter.V1\312\002$Google\\Cloud\\PolicyTroubl" +
-      "eshooter\\V1\352\002\'Google::Cloud::PolicyTroub" +
-      "leshooter::V1b\006proto3"
+      "\n7google/cloud/policytroubleshooter/v1/e"
+          + "xplanations.proto\022$google.cloud.policytr"
+          + "oubleshooter.v1\032\037google/api/field_behavi"
+          + "or.proto\032\032google/iam/v1/policy.proto\032\026go"
+          + "ogle/type/expr.proto\"_\n\013AccessTuple\022\026\n\tp"
+          + "rincipal\030\001 \001(\tB\003\340A\002\022\037\n\022full_resource_nam"
+          + "e\030\002 \001(\tB\003\340A\002\022\027\n\npermission\030\003 \001(\tB\003\340A\002\"\274\002"
+          + "\n\017ExplainedPolicy\022A\n\006access\030\001 \001(\01621.goog"
+          + "le.cloud.policytroubleshooter.v1.AccessS"
+          + "tate\022\032\n\022full_resource_name\030\002 \001(\t\022%\n\006poli"
+          + "cy\030\003 \001(\0132\025.google.iam.v1.Policy\022V\n\024bindi"
+          + "ng_explanations\030\004 \003(\01328.google.cloud.pol"
+          + "icytroubleshooter.v1.BindingExplanation\022"
+          + "K\n\trelevance\030\005 \001(\01628.google.cloud.policy"
+          + "troubleshooter.v1.HeuristicRelevance\"\203\t\n"
+          + "\022BindingExplanation\022F\n\006access\030\001 \001(\01621.go"
+          + "ogle.cloud.policytroubleshooter.v1.Acces"
+          + "sStateB\003\340A\002\022\014\n\004role\030\002 \001(\t\022`\n\017role_permis"
+          + "sion\030\003 \001(\0162G.google.cloud.policytroubles"
+          + "hooter.v1.BindingExplanation.RolePermiss"
+          + "ion\022[\n\031role_permission_relevance\030\004 \001(\01628"
+          + ".google.cloud.policytroubleshooter.v1.He"
+          + "uristicRelevance\022^\n\013memberships\030\005 \003(\0132I."
+          + "google.cloud.policytroubleshooter.v1.Bin"
+          + "dingExplanation.MembershipsEntry\022K\n\trele"
+          + "vance\030\006 \001(\01628.google.cloud.policytrouble"
+          + "shooter.v1.HeuristicRelevance\022$\n\tconditi"
+          + "on\030\007 \001(\0132\021.google.type.Expr\032\273\001\n\023Annotate"
+          + "dMembership\022W\n\nmembership\030\001 \001(\0162C.google"
+          + ".cloud.policytroubleshooter.v1.BindingEx"
+          + "planation.Membership\022K\n\trelevance\030\002 \001(\0162"
+          + "8.google.cloud.policytroubleshooter.v1.H"
+          + "euristicRelevance\032\200\001\n\020MembershipsEntry\022\013"
+          + "\n\003key\030\001 \001(\t\022[\n\005value\030\002 \001(\0132L.google.clou"
+          + "d.policytroubleshooter.v1.BindingExplana"
+          + "tion.AnnotatedMembership:\0028\001\"\232\001\n\016RolePer"
+          + "mission\022\037\n\033ROLE_PERMISSION_UNSPECIFIED\020\000"
+          + "\022\034\n\030ROLE_PERMISSION_INCLUDED\020\001\022 \n\034ROLE_P"
+          + "ERMISSION_NOT_INCLUDED\020\002\022\'\n#ROLE_PERMISS"
+          + "ION_UNKNOWN_INFO_DENIED\020\003\"\246\001\n\nMembership"
+          + "\022\032\n\026MEMBERSHIP_UNSPECIFIED\020\000\022\027\n\023MEMBERSH"
+          + "IP_INCLUDED\020\001\022\033\n\027MEMBERSHIP_NOT_INCLUDED"
+          + "\020\002\022\"\n\036MEMBERSHIP_UNKNOWN_INFO_DENIED\020\003\022\""
+          + "\n\036MEMBERSHIP_UNKNOWN_UNSUPPORTED\020\004*{\n\013Ac"
+          + "cessState\022\034\n\030ACCESS_STATE_UNSPECIFIED\020\000\022"
+          + "\013\n\007GRANTED\020\001\022\017\n\013NOT_GRANTED\020\002\022\027\n\023UNKNOWN"
+          + "_CONDITIONAL\020\003\022\027\n\023UNKNOWN_INFO_DENIED\020\004*"
+          + "O\n\022HeuristicRelevance\022#\n\037HEURISTIC_RELEV"
+          + "ANCE_UNSPECIFIED\020\000\022\n\n\006NORMAL\020\001\022\010\n\004HIGH\020\002"
+          + "B\322\001ZXgoogle.golang.org/genproto/googleap"
+          + "is/cloud/policytroubleshooter/v1;policyt"
+          + "roubleshooter\252\002$Google.Cloud.PolicyTroub"
+          + "leshooter.V1\312\002$Google\\Cloud\\PolicyTroubl"
+          + "eshooter\\V1\352\002\'Google::Cloud::PolicyTroub"
+          + "leshooter::V1b\006proto3"
     };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.FieldBehaviorProto.getDescriptor(),
-          com.google.iam.v1.PolicyProto.getDescriptor(),
-          com.google.type.ExprProto.getDescriptor(),
-        });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.iam.v1.PolicyProto.getDescriptor(),
+              com.google.type.ExprProto.getDescriptor(),
+            });
     internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor,
-        new java.lang.String[] { "Principal", "FullResourceName", "Permission", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_policytroubleshooter_v1_AccessTuple_descriptor,
+            new java.lang.String[] {
+              "Principal", "FullResourceName", "Permission",
+            });
     internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor,
-        new java.lang.String[] { "Access", "FullResourceName", "Policy", "BindingExplanations", "Relevance", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_policytroubleshooter_v1_ExplainedPolicy_descriptor,
+            new java.lang.String[] {
+              "Access", "FullResourceName", "Policy", "BindingExplanations", "Relevance",
+            });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor,
-        new java.lang.String[] { "Access", "Role", "RolePermission", "RolePermissionRelevance", "Memberships", "Relevance", "Condition", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor,
+            new java.lang.String[] {
+              "Access",
+              "Role",
+              "RolePermission",
+              "RolePermissionRelevance",
+              "Memberships",
+              "Relevance",
+              "Condition",
+            });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor =
-      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor.getNestedTypes().get(0);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor,
-        new java.lang.String[] { "Membership", "Relevance", });
+        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_AnnotatedMembership_descriptor,
+            new java.lang.String[] {
+              "Membership", "Relevance",
+            });
     internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor =
-      internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor.getNestedTypes().get(1);
-    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_policytroubleshooter_v1_BindingExplanation_MembershipsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.iam.v1.PolicyProto.getDescriptor();
     com.google.type.ExprProto.getDescriptor();
diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto b/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
rename to proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/checker.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto b/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
rename to proto-google-cloud-policy-troubleshooter-v1/src/main/proto/google/cloud/policytroubleshooter/v1/explanations.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/AsyncTroubleshootIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckerclient/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/iamcheckersettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java b/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/policytroubleshooter/v1/stub/iamcheckerstubsettings/troubleshootiampolicy/SyncTroubleshootIamPolicy.java

From 1132d7586759ca98ed3b2fbcce06ffd8e864489b Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Thu, 23 Jun 2022 21:12:47 +0000
Subject: [PATCH 3/4] deps: adding gax-httpjson

---
 google-cloud-policy-troubleshooter/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-policy-troubleshooter/pom.xml b/google-cloud-policy-troubleshooter/pom.xml
index 721008f..2645e5d 100644
--- a/google-cloud-policy-troubleshooter/pom.xml
+++ b/google-cloud-policy-troubleshooter/pom.xml
@@ -58,6 +58,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -77,12 +81,24 @@
       test
     
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+    
   
 
   

From d556f6e3b3560b00afedb682bbbd457ba2abfaf7 Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Thu, 23 Jun 2022 21:15:01 +0000
Subject: [PATCH 4/4] =?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
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index aa28e4a..23ac80f 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
 
   com.google.cloud
   google-cloud-policy-troubleshooter
-  1.1.0
+  1.1.1
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.1.0'
+implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.1.1'
 ```
 
 If you are using SBT, add this to your dependencies
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.1.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.1.1"
 ```
 
 ## Authentication