From eae2b026cadf9af1370d49d103ba0ba810729d1e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 4 Apr 2022 20:17:30 +0000 Subject: [PATCH 1/2] feat: AuditConfig for IAM v1 PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 --- .../java/com/google/iam/v1/IAMPolicyGrpc.java | 407 ++-- .../java/com/google/iam/v1/AuditConfig.java | 1142 ++++++++++ .../com/google/iam/v1/AuditConfigDelta.java | 569 ++--- .../iam/v1/AuditConfigDeltaOrBuilder.java | 51 +- .../google/iam/v1/AuditConfigOrBuilder.java | 77 + .../com/google/iam/v1/AuditLogConfig.java | 1019 +++++++++ .../iam/v1/AuditLogConfigOrBuilder.java | 77 + .../main/java/com/google/iam/v1/Binding.java | 863 +++++--- .../java/com/google/iam/v1/BindingDelta.java | 560 ++--- .../google/iam/v1/BindingDeltaOrBuilder.java | 50 +- .../com/google/iam/v1/BindingOrBuilder.java | 243 +++ .../google/iam/v1/GetIamPolicyRequest.java | 445 ++-- .../iam/v1/GetIamPolicyRequestOrBuilder.java | 49 +- .../com/google/iam/v1/GetPolicyOptions.java | 313 ++- .../iam/v1/GetPolicyOptionsOrBuilder.java | 32 + .../com/google/iam/v1/IamPolicyProto.java | 131 ++ .../java/com/google/iam/v1/OptionsProto.java | 52 + .../main/java/com/google/iam/v1/Policy.java | 1882 +++++++++++++++++ .../java/com/google/iam/v1/PolicyDelta.java | 487 ++--- .../google/iam/v1/PolicyDeltaOrBuilder.java | 55 +- .../com/google/iam/v1/PolicyOrBuilder.java | 184 ++ .../java/com/google/iam/v1/PolicyProto.java | 144 ++ .../google/iam/v1/SetIamPolicyRequest.java | 682 +++--- .../iam/v1/SetIamPolicyRequestOrBuilder.java | 79 +- .../iam/v1/TestIamPermissionsRequest.java | 440 ++-- .../TestIamPermissionsRequestOrBuilder.java | 53 +- .../iam/v1/TestIamPermissionsResponse.java | 333 ++- .../TestIamPermissionsResponseOrBuilder.java | 36 +- .../com/google/iam/v1/BindingOrBuilder.java | 199 -- .../iam/v1/GetPolicyOptionsOrBuilder.java | 43 - .../com/google/iam/v1/IamPolicyProto.java | 145 -- .../java/com/google/iam/v1/OptionsProto.java | 69 - .../main/java/com/google/iam/v1/Policy.java | 1336 ------------ .../com/google/iam/v1/PolicyOrBuilder.java | 132 -- .../java/com/google/iam/v1/PolicyProto.java | 132 -- 35 files changed, 7480 insertions(+), 5031 deletions(-) rename {grpc-google-iam-v1 => owl-bot-staging/v1/grpc-google-iam-v1}/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java (59%) create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfigDelta.java (74%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/Binding.java (53%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/BindingDelta.java (75%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java (66%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java (54%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetPolicyOptions.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/PolicyDelta.java (78%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java (71%) create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java (56%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java (57%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java (72%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java (68%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java (71%) rename {proto-google-iam-v1 => owl-bot-staging/v1/proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java (61%) delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java delete mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java diff --git a/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java b/owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java similarity index 59% rename from grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java rename to owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java index 53e66232..52377210 100644 --- a/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java +++ b/owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java @@ -1,27 +1,10 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.iam.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
- * ## API Overview
+ * API Overview
  * Manages Identity and Access Management (IAM) policies.
  * Any implementation of an API that offers access control features
  * implements the google.iam.v1.IAMPolicy interface.
@@ -52,170 +35,146 @@ private IAMPolicyGrpc() {}
   public static final String SERVICE_NAME = "google.iam.v1.IAMPolicy";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
       requestType = com.google.iam.v1.SetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
-      getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getSetIamPolicyMethod;
     if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.getSetIamPolicyMethod =
-              getSetIamPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.Policy.getDefaultInstance()))
-                      .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
-                      .build();
+          IAMPolicyGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
+              .build();
         }
       }
     }
     return getSetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
       requestType = com.google.iam.v1.GetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
-      getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor
-        getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
+    io.grpc.MethodDescriptor getGetIamPolicyMethod;
     if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.getGetIamPolicyMethod =
-              getGetIamPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.Policy.getDefaultInstance()))
-                      .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
-                      .build();
+          IAMPolicyGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
+              .build();
         }
       }
     }
     return getGetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
-      getTestIamPermissionsMethod;
+  private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
       requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
       responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
-      getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.iam.v1.TestIamPermissionsRequest,
-            com.google.iam.v1.TestIamPermissionsResponse>
-        getTestIamPermissionsMethod;
+  public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
+    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
     if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
-          IAMPolicyGrpc.getTestIamPermissionsMethod =
-              getTestIamPermissionsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
-                      .build();
+          IAMPolicyGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
+              .build();
         }
       }
     }
     return getTestIamPermissionsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static IAMPolicyStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyStub(channel, callOptions);
+        }
+      };
     return IAMPolicyStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static IAMPolicyBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static IAMPolicyBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyBlockingStub(channel, callOptions);
+        }
+      };
     return IAMPolicyBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static IAMPolicyFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static IAMPolicyFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public IAMPolicyFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new IAMPolicyFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new IAMPolicyFutureStub(channel, callOptions);
+        }
+      };
     return IAMPolicyFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
-   * ## API Overview
+   * API Overview
    * Manages Identity and Access Management (IAM) policies.
    * Any implementation of an API that offers access control features
    * implements the google.iam.v1.IAMPolicy interface.
@@ -235,90 +194,77 @@ public IAMPolicyFutureStub newStub(
    * attached.
    * 
*/ - public abstract static class IAMPolicyImplBase implements io.grpc.BindableService { + public static abstract class IAMPolicyImplBase implements io.grpc.BindableService { /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** - * - * *
-   * ## API Overview
+   * API Overview
    * Manages Identity and Access Management (IAM) policies.
    * Any implementation of an API that offers access control features
    * implements the google.iam.v1.IAMPolicy interface.
@@ -339,78 +285,63 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private IAMPolicyStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyStub(channel, callOptions); } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
-   * ## API Overview
+   * API Overview
    * Manages Identity and Access Management (IAM) policies.
    * Any implementation of an API that offers access control features
    * implements the google.iam.v1.IAMPolicy interface.
@@ -430,9 +361,9 @@ public void testIamPermissions(
    * attached.
    * 
*/ - public static final class IAMPolicyBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private IAMPolicyBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -443,11 +374,10 @@ protected IAMPolicyBlockingStub build( } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { @@ -456,8 +386,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
@@ -470,29 +398,24 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
-     *
-     *
      * 
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
      * 
*/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** - * - * *
-   * ## API Overview
+   * API Overview
    * Manages Identity and Access Management (IAM) policies.
    * Any implementation of an API that offers access control features
    * implements the google.iam.v1.IAMPolicy interface.
@@ -512,61 +435,56 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
    * attached.
    * 
*/ - public static final class IAMPolicyFutureStub - extends io.grpc.stub.AbstractFutureStub { - private IAMPolicyFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyFutureStub extends io.grpc.stub.AbstractFutureStub { + private IAMPolicyFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyFutureStub(channel, callOptions); } /** - * - * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -576,11 +494,11 @@ protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_GET_IAM_POLICY = 1; private static final int METHODID_TEST_IAM_PERMISSIONS = 2; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final IAMPolicyImplBase serviceImpl; private final int methodId; @@ -594,20 +512,16 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -625,9 +539,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class IAMPolicyBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class IAMPolicyBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IAMPolicyBaseDescriptorSupplier() {} @java.lang.Override @@ -669,14 +582,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (IAMPolicyGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java new file mode 100644 index 00000000..ff2646ed --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java @@ -0,0 +1,1142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +/** + *
+ * Specifies the audit configuration for a service.
+ * The configuration determines which permission types are logged, and what
+ * identities, if any, are exempted from logging.
+ * An AuditConfig must have one or more AuditLogConfigs.
+ * If there are AuditConfigs for both `allServices` and a specific service,
+ * the union of the two AuditConfigs is used for that service: the log_types
+ * specified in each AuditConfig are enabled, and the exempted_members in each
+ * AuditLogConfig are exempted.
+ * Example Policy with multiple AuditConfigs:
+ *     {
+ *       "audit_configs": [
+ *         {
+ *           "service": "allServices",
+ *           "audit_log_configs": [
+ *             {
+ *               "log_type": "DATA_READ",
+ *               "exempted_members": [
+ *                 "user:jose@example.com"
+ *               ]
+ *             },
+ *             {
+ *               "log_type": "DATA_WRITE"
+ *             },
+ *             {
+ *               "log_type": "ADMIN_READ"
+ *             }
+ *           ]
+ *         },
+ *         {
+ *           "service": "sampleservice.googleapis.com",
+ *           "audit_log_configs": [
+ *             {
+ *               "log_type": "DATA_READ"
+ *             },
+ *             {
+ *               "log_type": "DATA_WRITE",
+ *               "exempted_members": [
+ *                 "user:aliya@example.com"
+ *               ]
+ *             }
+ *           ]
+ *         }
+ *       ]
+ *     }
+ * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
+ * logging. It also exempts jose@example.com from DATA_READ logging, and
+ * aliya@example.com from DATA_WRITE logging.
+ * 
+ * + * Protobuf type {@code google.iam.v1.AuditConfig} + */ +public final class AuditConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfig) + AuditConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuditConfig.newBuilder() to construct. + private AuditConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuditConfig() { + service_ = ""; + auditLogConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuditConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuditConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + auditLogConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + auditLogConfigs_.add( + input.readMessage(com.google.iam.v1.AuditLogConfig.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + auditLogConfigs_ = java.util.Collections.unmodifiableList(auditLogConfigs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + *
+   * Specifies a service that will be enabled for audit logging.
+   * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+   * `allServices` is a special value that covers all services.
+   * 
+ * + * string service = 1; + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + *
+   * Specifies a service that will be enabled for audit logging.
+   * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+   * `allServices` is a special value that covers all services.
+   * 
+ * + * string service = 1; + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER = 3; + private java.util.List auditLogConfigs_; + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + @java.lang.Override + public java.util.List getAuditLogConfigsList() { + return auditLogConfigs_; + } + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + @java.lang.Override + public java.util.List + getAuditLogConfigsOrBuilderList() { + return auditLogConfigs_; + } + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + @java.lang.Override + public int getAuditLogConfigsCount() { + return auditLogConfigs_.size(); + } + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + @java.lang.Override + public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { + return auditLogConfigs_.get(index); + } + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + @java.lang.Override + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index) { + return auditLogConfigs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + for (int i = 0; i < auditLogConfigs_.size(); i++) { + output.writeMessage(3, auditLogConfigs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + for (int i = 0; i < auditLogConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, auditLogConfigs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v1.AuditConfig)) { + return super.equals(obj); + } + com.google.iam.v1.AuditConfig other = (com.google.iam.v1.AuditConfig) obj; + + if (!getService() + .equals(other.getService())) return false; + if (!getAuditLogConfigsList() + .equals(other.getAuditLogConfigsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + if (getAuditLogConfigsCount() > 0) { + hash = (37 * hash) + AUDIT_LOG_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAuditLogConfigsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v1.AuditConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.AuditConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.iam.v1.AuditConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Specifies the audit configuration for a service.
+   * The configuration determines which permission types are logged, and what
+   * identities, if any, are exempted from logging.
+   * An AuditConfig must have one or more AuditLogConfigs.
+   * If there are AuditConfigs for both `allServices` and a specific service,
+   * the union of the two AuditConfigs is used for that service: the log_types
+   * specified in each AuditConfig are enabled, and the exempted_members in each
+   * AuditLogConfig are exempted.
+   * Example Policy with multiple AuditConfigs:
+   *     {
+   *       "audit_configs": [
+   *         {
+   *           "service": "allServices",
+   *           "audit_log_configs": [
+   *             {
+   *               "log_type": "DATA_READ",
+   *               "exempted_members": [
+   *                 "user:jose@example.com"
+   *               ]
+   *             },
+   *             {
+   *               "log_type": "DATA_WRITE"
+   *             },
+   *             {
+   *               "log_type": "ADMIN_READ"
+   *             }
+   *           ]
+   *         },
+   *         {
+   *           "service": "sampleservice.googleapis.com",
+   *           "audit_log_configs": [
+   *             {
+   *               "log_type": "DATA_READ"
+   *             },
+   *             {
+   *               "log_type": "DATA_WRITE",
+   *               "exempted_members": [
+   *                 "user:aliya@example.com"
+   *               ]
+   *             }
+   *           ]
+   *         }
+   *       ]
+   *     }
+   * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
+   * logging. It also exempts jose@example.com from DATA_READ logging, and
+   * aliya@example.com from DATA_WRITE logging.
+   * 
+ * + * Protobuf type {@code google.iam.v1.AuditConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditConfig) + com.google.iam.v1.AuditConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class); + } + + // Construct using com.google.iam.v1.AuditConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAuditLogConfigsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + if (auditLogConfigsBuilder_ == null) { + auditLogConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + auditLogConfigsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor; + } + + @java.lang.Override + public com.google.iam.v1.AuditConfig getDefaultInstanceForType() { + return com.google.iam.v1.AuditConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v1.AuditConfig build() { + com.google.iam.v1.AuditConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v1.AuditConfig buildPartial() { + com.google.iam.v1.AuditConfig result = new com.google.iam.v1.AuditConfig(this); + int from_bitField0_ = bitField0_; + result.service_ = service_; + if (auditLogConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + auditLogConfigs_ = java.util.Collections.unmodifiableList(auditLogConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.auditLogConfigs_ = auditLogConfigs_; + } else { + result.auditLogConfigs_ = auditLogConfigsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v1.AuditConfig) { + return mergeFrom((com.google.iam.v1.AuditConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v1.AuditConfig other) { + if (other == com.google.iam.v1.AuditConfig.getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (auditLogConfigsBuilder_ == null) { + if (!other.auditLogConfigs_.isEmpty()) { + if (auditLogConfigs_.isEmpty()) { + auditLogConfigs_ = other.auditLogConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.addAll(other.auditLogConfigs_); + } + onChanged(); + } + } else { + if (!other.auditLogConfigs_.isEmpty()) { + if (auditLogConfigsBuilder_.isEmpty()) { + auditLogConfigsBuilder_.dispose(); + auditLogConfigsBuilder_ = null; + auditLogConfigs_ = other.auditLogConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + auditLogConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuditLogConfigsFieldBuilder() : null; + } else { + auditLogConfigsBuilder_.addAllMessages(other.auditLogConfigs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.iam.v1.AuditConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.iam.v1.AuditConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object service_ = ""; + /** + *
+     * Specifies a service that will be enabled for audit logging.
+     * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+     * `allServices` is a special value that covers all services.
+     * 
+ * + * string service = 1; + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Specifies a service that will be enabled for audit logging.
+     * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+     * `allServices` is a special value that covers all services.
+     * 
+ * + * string service = 1; + * @return The bytes for service. + */ + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Specifies a service that will be enabled for audit logging.
+     * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+     * `allServices` is a special value that covers all services.
+     * 
+ * + * string service = 1; + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies a service that will be enabled for audit logging.
+     * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+     * `allServices` is a special value that covers all services.
+     * 
+ * + * string service = 1; + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + *
+     * Specifies a service that will be enabled for audit logging.
+     * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+     * `allServices` is a special value that covers all services.
+     * 
+ * + * string service = 1; + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private java.util.List auditLogConfigs_ = + java.util.Collections.emptyList(); + private void ensureAuditLogConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + auditLogConfigs_ = new java.util.ArrayList(auditLogConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> auditLogConfigsBuilder_; + + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public java.util.List getAuditLogConfigsList() { + if (auditLogConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(auditLogConfigs_); + } else { + return auditLogConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public int getAuditLogConfigsCount() { + if (auditLogConfigsBuilder_ == null) { + return auditLogConfigs_.size(); + } else { + return auditLogConfigsBuilder_.getCount(); + } + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { + if (auditLogConfigsBuilder_ == null) { + return auditLogConfigs_.get(index); + } else { + return auditLogConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder setAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig value) { + if (auditLogConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.set(index, value); + onChanged(); + } else { + auditLogConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder setAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + if (auditLogConfigsBuilder_ == null) { + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + auditLogConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig value) { + if (auditLogConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.add(value); + onChanged(); + } else { + auditLogConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder addAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig value) { + if (auditLogConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.add(index, value); + onChanged(); + } else { + auditLogConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder addAuditLogConfigs( + com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + if (auditLogConfigsBuilder_ == null) { + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.add(builderForValue.build()); + onChanged(); + } else { + auditLogConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder addAuditLogConfigs( + int index, com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + if (auditLogConfigsBuilder_ == null) { + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + auditLogConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder addAllAuditLogConfigs( + java.lang.Iterable values) { + if (auditLogConfigsBuilder_ == null) { + ensureAuditLogConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditLogConfigs_); + onChanged(); + } else { + auditLogConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder clearAuditLogConfigs() { + if (auditLogConfigsBuilder_ == null) { + auditLogConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + auditLogConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public Builder removeAuditLogConfigs(int index) { + if (auditLogConfigsBuilder_ == null) { + ensureAuditLogConfigsIsMutable(); + auditLogConfigs_.remove(index); + onChanged(); + } else { + auditLogConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder( + int index) { + return getAuditLogConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index) { + if (auditLogConfigsBuilder_ == null) { + return auditLogConfigs_.get(index); } else { + return auditLogConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public java.util.List + getAuditLogConfigsOrBuilderList() { + if (auditLogConfigsBuilder_ != null) { + return auditLogConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(auditLogConfigs_); + } + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder() { + return getAuditLogConfigsFieldBuilder().addBuilder( + com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( + int index) { + return getAuditLogConfigsFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + } + /** + *
+     * The configuration for logging of each type of permission.
+     * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + public java.util.List + getAuditLogConfigsBuilderList() { + return getAuditLogConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> + getAuditLogConfigsFieldBuilder() { + if (auditLogConfigsBuilder_ == null) { + auditLogConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder>( + auditLogConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + auditLogConfigs_ = null; + } + return auditLogConfigsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfig) + } + + // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfig) + private static final com.google.iam.v1.AuditConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfig(); + } + + public static com.google.iam.v1.AuditConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v1.AuditConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java similarity index 74% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index b1f2b2dc..e5e2d404 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * One delta entry for AuditConfig. Each individual change (only one
  * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfigDelta}
  */
-public final class AuditConfigDelta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AuditConfigDelta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfigDelta)
     AuditConfigDeltaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AuditConfigDelta.newBuilder() to construct.
   private AuditConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AuditConfigDelta() {
     action_ = 0;
     service_ = "";
@@ -47,15 +29,16 @@ private AuditConfigDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AuditConfigDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AuditConfigDelta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,80 +57,72 @@ private AuditConfigDelta(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            action_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              service_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            service_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              exemptedMember_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            exemptedMember_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              logType_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            logType_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.iam.v1.AuditConfigDelta.class,
-            com.google.iam.v1.AuditConfigDelta.Builder.class);
+            com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of action performed on an audit configuration in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.AuditConfigDelta.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -156,8 +131,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -166,8 +139,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -179,8 +150,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -189,8 +158,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of an audit configuration.
      * 
@@ -199,8 +166,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of an audit configuration.
      * 
@@ -209,6 +174,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -233,49 +199,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return ADD; - case 2: - return REMOVE; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return ADD; + case 2: return REMOVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.iam.v1.AuditConfigDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -295,46 +261,35 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.iam.v1.AuditConfigDelta.Action getAction() { + @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = - com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } public static final int SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -343,7 +298,6 @@ public com.google.iam.v1.AuditConfigDelta.Action getAction() {
    * 
* * string service = 2; - * * @return The service. */ @java.lang.Override @@ -352,15 +306,14 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -369,15 +322,16 @@ public java.lang.String getService() {
    * 
* * string service = 2; - * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -388,8 +342,6 @@ public com.google.protobuf.ByteString getServiceBytes() { public static final int EXEMPTED_MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object exemptedMember_; /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -397,7 +349,6 @@ public com.google.protobuf.ByteString getServiceBytes() {
    * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ @java.lang.Override @@ -406,15 +357,14 @@ public java.lang.String getExemptedMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; } } /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -422,15 +372,16 @@ public java.lang.String getExemptedMember() {
    * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ @java.lang.Override - public com.google.protobuf.ByteString getExemptedMemberBytes() { + public com.google.protobuf.ByteString + getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -441,8 +392,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { public static final int LOG_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object logType_; /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -450,7 +399,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() {
    * 
* * string log_type = 4; - * * @return The logType. */ @java.lang.Override @@ -459,15 +407,14 @@ public java.lang.String getLogType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; } } /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -475,15 +422,16 @@ public java.lang.String getLogType() {
    * 
* * string log_type = 4; - * * @return The bytes for logType. */ @java.lang.Override - public com.google.protobuf.ByteString getLogTypeBytes() { + public com.google.protobuf.ByteString + getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logType_ = b; return b; } else { @@ -492,7 +440,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -504,7 +451,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -527,7 +475,8 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); @@ -546,7 +495,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.AuditConfigDelta)) { return super.equals(obj); @@ -554,9 +503,12 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditConfigDelta other = (com.google.iam.v1.AuditConfigDelta) obj; if (action_ != other.action_) return false; - if (!getService().equals(other.getService())) return false; - if (!getExemptedMember().equals(other.getExemptedMember())) return false; - if (!getLogType().equals(other.getLogType())) return false; + if (!getService() + .equals(other.getService())) return false; + if (!getExemptedMember() + .equals(other.getExemptedMember())) return false; + if (!getLogType() + .equals(other.getLogType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -581,103 +533,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfigDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfigDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.AuditConfigDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.AuditConfigDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.AuditConfigDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.AuditConfigDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.AuditConfigDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditConfigDelta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.AuditConfigDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * One delta entry for AuditConfig. Each individual change (only one
    * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -685,23 +631,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.AuditConfigDelta}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditConfigDelta)
       com.google.iam.v1.AuditConfigDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditConfigDelta.class,
-              com.google.iam.v1.AuditConfigDelta.Builder.class);
+              com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfigDelta.newBuilder()
@@ -709,15 +653,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();
@@ -733,9 +678,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
@@ -767,39 +712,38 @@ public com.google.iam.v1.AuditConfigDelta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.AuditConfigDelta) {
-        return mergeFrom((com.google.iam.v1.AuditConfigDelta) other);
+        return mergeFrom((com.google.iam.v1.AuditConfigDelta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -854,69 +798,55 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = - com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -924,25 +854,22 @@ public Builder setAction(com.google.iam.v1.AuditConfigDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -950,8 +877,6 @@ public Builder clearAction() { private java.lang.Object service_ = ""; /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -960,13 +885,13 @@ public Builder clearAction() {
      * 
* * string service = 2; - * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -975,8 +900,6 @@ public java.lang.String getService() { } } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -985,14 +908,15 @@ public java.lang.String getService() {
      * 
* * string service = 2; - * * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -1000,8 +924,6 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1010,22 +932,20 @@ public com.google.protobuf.ByteString getServiceBytes() {
      * 
* * string service = 2; - * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { + public Builder setService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1034,18 +954,15 @@ public Builder setService(java.lang.String value) {
      * 
* * string service = 2; - * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** - * - * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -1054,16 +971,16 @@ public Builder clearService() {
      * 
* * string service = 2; - * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; @@ -1071,8 +988,6 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { private java.lang.Object exemptedMember_ = ""; /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1080,13 +995,13 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
      * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ public java.lang.String getExemptedMember() { java.lang.Object ref = exemptedMember_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; @@ -1095,8 +1010,6 @@ public java.lang.String getExemptedMember() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1104,14 +1017,15 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ - public com.google.protobuf.ByteString getExemptedMemberBytes() { + public com.google.protobuf.ByteString + getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -1119,8 +1033,6 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() { } } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1128,22 +1040,20 @@ public com.google.protobuf.ByteString getExemptedMemberBytes() {
      * 
* * string exempted_member = 3; - * * @param value The exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMember(java.lang.String value) { + public Builder setExemptedMember( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + exemptedMember_ = value; onChanged(); return this; } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1151,18 +1061,15 @@ public Builder setExemptedMember(java.lang.String value) {
      * 
* * string exempted_member = 3; - * * @return This builder for chaining. */ public Builder clearExemptedMember() { - + exemptedMember_ = getDefaultInstance().getExemptedMember(); onChanged(); return this; } /** - * - * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1170,16 +1077,16 @@ public Builder clearExemptedMember() {
      * 
* * string exempted_member = 3; - * * @param value The bytes for exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { + public Builder setExemptedMemberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exemptedMember_ = value; onChanged(); return this; @@ -1187,8 +1094,6 @@ public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { private java.lang.Object logType_ = ""; /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1196,13 +1101,13 @@ public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) {
      * 
* * string log_type = 4; - * * @return The logType. */ public java.lang.String getLogType() { java.lang.Object ref = logType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; @@ -1211,8 +1116,6 @@ public java.lang.String getLogType() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1220,14 +1123,15 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; - * * @return The bytes for logType. */ - public com.google.protobuf.ByteString getLogTypeBytes() { + public com.google.protobuf.ByteString + getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logType_ = b; return b; } else { @@ -1235,8 +1139,6 @@ public com.google.protobuf.ByteString getLogTypeBytes() { } } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1244,22 +1146,20 @@ public com.google.protobuf.ByteString getLogTypeBytes() {
      * 
* * string log_type = 4; - * * @param value The logType to set. * @return This builder for chaining. */ - public Builder setLogType(java.lang.String value) { + public Builder setLogType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1267,18 +1167,15 @@ public Builder setLogType(java.lang.String value) {
      * 
* * string log_type = 4; - * * @return This builder for chaining. */ public Builder clearLogType() { - + logType_ = getDefaultInstance().getLogType(); onChanged(); return this; } /** - * - * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1286,23 +1183,23 @@ public Builder clearLogType() {
      * 
* * string log_type = 4; - * * @param value The bytes for logType to set. * @return This builder for chaining. */ - public Builder setLogTypeBytes(com.google.protobuf.ByteString value) { + public Builder setLogTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1312,12 +1209,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfigDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfigDelta) private static final com.google.iam.v1.AuditConfigDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfigDelta(); } @@ -1326,16 +1223,16 @@ public static com.google.iam.v1.AuditConfigDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfigDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditConfigDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfigDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditConfigDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1247,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfigDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java similarity index 73% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e1bea6c2..e16f3aa5 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigDeltaOrBuilder - extends +public interface AuditConfigDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfigDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; - * * @return The action. */ com.google.iam.v1.AuditConfigDelta.Action getAction(); /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -61,13 +37,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string service = 2; - * * @return The service. */ java.lang.String getService(); /** - * - * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -76,14 +49,12 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string service = 2; - * * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -91,13 +62,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string exempted_member = 3; - * * @return The exemptedMember. */ java.lang.String getExemptedMember(); /** - * - * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -105,14 +73,12 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string exempted_member = 3; - * * @return The bytes for exemptedMember. */ - com.google.protobuf.ByteString getExemptedMemberBytes(); + com.google.protobuf.ByteString + getExemptedMemberBytes(); /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -120,13 +86,10 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string log_type = 4; - * * @return The logType. */ java.lang.String getLogType(); /** - * - * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -134,8 +97,8 @@ public interface AuditConfigDeltaOrBuilder
    * 
* * string log_type = 4; - * * @return The bytes for logType. */ - com.google.protobuf.ByteString getLogTypeBytes(); + com.google.protobuf.ByteString + getLogTypeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java new file mode 100644 index 00000000..05b40d39 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public interface AuditConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies a service that will be enabled for audit logging.
+   * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+   * `allServices` is a special value that covers all services.
+   * 
+ * + * string service = 1; + * @return The service. + */ + java.lang.String getService(); + /** + *
+   * Specifies a service that will be enabled for audit logging.
+   * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
+   * `allServices` is a special value that covers all services.
+   * 
+ * + * string service = 1; + * @return The bytes for service. + */ + com.google.protobuf.ByteString + getServiceBytes(); + + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + java.util.List + getAuditLogConfigsList(); + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index); + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + int getAuditLogConfigsCount(); + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + java.util.List + getAuditLogConfigsOrBuilderList(); + /** + *
+   * The configuration for logging of each type of permission.
+   * 
+ * + * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java new file mode 100644 index 00000000..f4dad628 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java @@ -0,0 +1,1019 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +/** + *
+ * Provides the configuration for logging a type of permissions.
+ * Example:
+ *     {
+ *       "audit_log_configs": [
+ *         {
+ *           "log_type": "DATA_READ",
+ *           "exempted_members": [
+ *             "user:jose@example.com"
+ *           ]
+ *         },
+ *         {
+ *           "log_type": "DATA_WRITE"
+ *         }
+ *       ]
+ *     }
+ * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
+ * jose@example.com from DATA_READ logging.
+ * 
+ * + * Protobuf type {@code google.iam.v1.AuditLogConfig} + */ +public final class AuditLogConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.iam.v1.AuditLogConfig) + AuditLogConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AuditLogConfig.newBuilder() to construct. + private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuditLogConfig() { + logType_ = 0; + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuditLogConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuditLogConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + logType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + exemptedMembers_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + exemptedMembers_ = exemptedMembers_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class); + } + + /** + *
+   * The list of valid permission types for which logging can be configured.
+   * Admin writes are always logged, and are not configurable.
+   * 
+ * + * Protobuf enum {@code google.iam.v1.AuditLogConfig.LogType} + */ + public enum LogType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default case. Should never be this.
+     * 
+ * + * LOG_TYPE_UNSPECIFIED = 0; + */ + LOG_TYPE_UNSPECIFIED(0), + /** + *
+     * Admin reads. Example: CloudIAM getIamPolicy
+     * 
+ * + * ADMIN_READ = 1; + */ + ADMIN_READ(1), + /** + *
+     * Data writes. Example: CloudSQL Users create
+     * 
+ * + * DATA_WRITE = 2; + */ + DATA_WRITE(2), + /** + *
+     * Data reads. Example: CloudSQL Users list
+     * 
+ * + * DATA_READ = 3; + */ + DATA_READ(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default case. Should never be this.
+     * 
+ * + * LOG_TYPE_UNSPECIFIED = 0; + */ + public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Admin reads. Example: CloudIAM getIamPolicy
+     * 
+ * + * ADMIN_READ = 1; + */ + public static final int ADMIN_READ_VALUE = 1; + /** + *
+     * Data writes. Example: CloudSQL Users create
+     * 
+ * + * DATA_WRITE = 2; + */ + public static final int DATA_WRITE_VALUE = 2; + /** + *
+     * Data reads. Example: CloudSQL Users list
+     * 
+ * + * DATA_READ = 3; + */ + public static final int DATA_READ_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LogType forNumber(int value) { + switch (value) { + case 0: return LOG_TYPE_UNSPECIFIED; + case 1: return ADMIN_READ; + case 2: return DATA_WRITE; + case 3: return DATA_READ; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogType findValueByNumber(int number) { + return LogType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.iam.v1.AuditLogConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LogType[] VALUES = values(); + + public static LogType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.iam.v1.AuditLogConfig.LogType) + } + + public static final int LOG_TYPE_FIELD_NUMBER = 1; + private int logType_; + /** + *
+   * The log type that this config enables.
+   * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The enum numeric value on the wire for logType. + */ + @java.lang.Override public int getLogTypeValue() { + return logType_; + } + /** + *
+   * The log type that this config enables.
+   * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The logType. + */ + @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { + @SuppressWarnings("deprecation") + com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; + } + + public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList exemptedMembers_; + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @return A list containing the exemptedMembers. + */ + public com.google.protobuf.ProtocolStringList + getExemptedMembersList() { + return exemptedMembers_; + } + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @return The count of exemptedMembers. + */ + public int getExemptedMembersCount() { + return exemptedMembers_.size(); + } + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the element to return. + * @return The exemptedMembers at the given index. + */ + public java.lang.String getExemptedMembers(int index) { + return exemptedMembers_.get(index); + } + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the value to return. + * @return The bytes of the exemptedMembers at the given index. + */ + public com.google.protobuf.ByteString + getExemptedMembersBytes(int index) { + return exemptedMembers_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, logType_); + } + for (int i = 0; i < exemptedMembers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, exemptedMembers_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, logType_); + } + { + int dataSize = 0; + for (int i = 0; i < exemptedMembers_.size(); i++) { + dataSize += computeStringSizeNoTag(exemptedMembers_.getRaw(i)); + } + size += dataSize; + size += 1 * getExemptedMembersList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v1.AuditLogConfig)) { + return super.equals(obj); + } + com.google.iam.v1.AuditLogConfig other = (com.google.iam.v1.AuditLogConfig) obj; + + if (logType_ != other.logType_) return false; + if (!getExemptedMembersList() + .equals(other.getExemptedMembersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOG_TYPE_FIELD_NUMBER; + hash = (53 * hash) + logType_; + if (getExemptedMembersCount() > 0) { + hash = (37 * hash) + EXEMPTED_MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getExemptedMembersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v1.AuditLogConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditLogConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.AuditLogConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.AuditLogConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditLogConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.AuditLogConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.iam.v1.AuditLogConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Provides the configuration for logging a type of permissions.
+   * Example:
+   *     {
+   *       "audit_log_configs": [
+   *         {
+   *           "log_type": "DATA_READ",
+   *           "exempted_members": [
+   *             "user:jose@example.com"
+   *           ]
+   *         },
+   *         {
+   *           "log_type": "DATA_WRITE"
+   *         }
+   *       ]
+   *     }
+   * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
+   * jose@example.com from DATA_READ logging.
+   * 
+ * + * Protobuf type {@code google.iam.v1.AuditLogConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditLogConfig) + com.google.iam.v1.AuditLogConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class); + } + + // Construct using com.google.iam.v1.AuditLogConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + logType_ = 0; + + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor; + } + + @java.lang.Override + public com.google.iam.v1.AuditLogConfig getDefaultInstanceForType() { + return com.google.iam.v1.AuditLogConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v1.AuditLogConfig build() { + com.google.iam.v1.AuditLogConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v1.AuditLogConfig buildPartial() { + com.google.iam.v1.AuditLogConfig result = new com.google.iam.v1.AuditLogConfig(this); + int from_bitField0_ = bitField0_; + result.logType_ = logType_; + if (((bitField0_ & 0x00000001) != 0)) { + exemptedMembers_ = exemptedMembers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.exemptedMembers_ = exemptedMembers_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v1.AuditLogConfig) { + return mergeFrom((com.google.iam.v1.AuditLogConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v1.AuditLogConfig other) { + if (other == com.google.iam.v1.AuditLogConfig.getDefaultInstance()) return this; + if (other.logType_ != 0) { + setLogTypeValue(other.getLogTypeValue()); + } + if (!other.exemptedMembers_.isEmpty()) { + if (exemptedMembers_.isEmpty()) { + exemptedMembers_ = other.exemptedMembers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExemptedMembersIsMutable(); + exemptedMembers_.addAll(other.exemptedMembers_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.iam.v1.AuditLogConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.iam.v1.AuditLogConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int logType_ = 0; + /** + *
+     * The log type that this config enables.
+     * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The enum numeric value on the wire for logType. + */ + @java.lang.Override public int getLogTypeValue() { + return logType_; + } + /** + *
+     * The log type that this config enables.
+     * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @param value The enum numeric value on the wire for logType to set. + * @return This builder for chaining. + */ + public Builder setLogTypeValue(int value) { + + logType_ = value; + onChanged(); + return this; + } + /** + *
+     * The log type that this config enables.
+     * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The logType. + */ + @java.lang.Override + public com.google.iam.v1.AuditLogConfig.LogType getLogType() { + @SuppressWarnings("deprecation") + com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; + } + /** + *
+     * The log type that this config enables.
+     * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @param value The logType to set. + * @return This builder for chaining. + */ + public Builder setLogType(com.google.iam.v1.AuditLogConfig.LogType value) { + if (value == null) { + throw new NullPointerException(); + } + + logType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The log type that this config enables.
+     * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return This builder for chaining. + */ + public Builder clearLogType() { + + logType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptedMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @return A list containing the exemptedMembers. + */ + public com.google.protobuf.ProtocolStringList + getExemptedMembersList() { + return exemptedMembers_.getUnmodifiableView(); + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @return The count of exemptedMembers. + */ + public int getExemptedMembersCount() { + return exemptedMembers_.size(); + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the element to return. + * @return The exemptedMembers at the given index. + */ + public java.lang.String getExemptedMembers(int index) { + return exemptedMembers_.get(index); + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the value to return. + * @return The bytes of the exemptedMembers at the given index. + */ + public com.google.protobuf.ByteString + getExemptedMembersBytes(int index) { + return exemptedMembers_.getByteString(index); + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param index The index to set the value at. + * @param value The exemptedMembers to set. + * @return This builder for chaining. + */ + public Builder setExemptedMembers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExemptedMembersIsMutable(); + exemptedMembers_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param value The exemptedMembers to add. + * @return This builder for chaining. + */ + public Builder addExemptedMembers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExemptedMembersIsMutable(); + exemptedMembers_.add(value); + onChanged(); + return this; + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param values The exemptedMembers to add. + * @return This builder for chaining. + */ + public Builder addAllExemptedMembers( + java.lang.Iterable values) { + ensureExemptedMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exemptedMembers_); + onChanged(); + return this; + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @return This builder for chaining. + */ + public Builder clearExemptedMembers() { + exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Specifies the identities that do not cause logging for this type of
+     * permission.
+     * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+     * 
+ * + * repeated string exempted_members = 2; + * @param value The bytes of the exemptedMembers to add. + * @return This builder for chaining. + */ + public Builder addExemptedMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExemptedMembersIsMutable(); + exemptedMembers_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditLogConfig) + } + + // @@protoc_insertion_point(class_scope:google.iam.v1.AuditLogConfig) + private static final com.google.iam.v1.AuditLogConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.iam.v1.AuditLogConfig(); + } + + public static com.google.iam.v1.AuditLogConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditLogConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditLogConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v1.AuditLogConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java new file mode 100644 index 00000000..cc82e2e8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public interface AuditLogConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditLogConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The log type that this config enables.
+   * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The enum numeric value on the wire for logType. + */ + int getLogTypeValue(); + /** + *
+   * The log type that this config enables.
+   * 
+ * + * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return The logType. + */ + com.google.iam.v1.AuditLogConfig.LogType getLogType(); + + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @return A list containing the exemptedMembers. + */ + java.util.List + getExemptedMembersList(); + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @return The count of exemptedMembers. + */ + int getExemptedMembersCount(); + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the element to return. + * @return The exemptedMembers at the given index. + */ + java.lang.String getExemptedMembers(int index); + /** + *
+   * Specifies the identities that do not cause logging for this type of
+   * permission.
+   * Follows the same format of [Binding.members][google.iam.v1.Binding.members].
+   * 
+ * + * repeated string exempted_members = 2; + * @param index The index of the value to return. + * @return The bytes of the exemptedMembers at the given index. + */ + com.google.protobuf.ByteString + getExemptedMembersBytes(int index); +} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java similarity index 53% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index b85e8407..73fb575b 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
- * Associates `members` with a `role`.
+ * Associates `members`, or principals, with a `role`.
  * 
* * Protobuf type {@code google.iam.v1.Binding} */ -public final class Binding extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.Binding) BindingOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Binding() { role_ = ""; members_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Binding() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Binding(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Binding( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,50 +55,48 @@ private Binding( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - role_ = s; - break; + role_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - members_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - members_.add(s); - break; + members_.add(s); + break; + } + case 26: { + com.google.type.Expr.Builder subBuilder = null; + if (condition_ != null) { + subBuilder = condition_.toBuilder(); } - case 26: - { - 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { members_ = members_.getUnmodifiableView(); @@ -124,8 +105,8 @@ private Binding( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -140,15 +121,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** - * - * *
-   * Role that is assigned to `members`.
+   * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The role. */ @java.lang.Override @@ -157,30 +135,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
-   * Role that is assigned to `members`.
+   * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -191,10 +169,8 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int MEMBERS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList members_; /** - * - * *
-   * Specifies the identities requesting access for a Cloud Platform resource.
+   * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
@@ -206,22 +182,37 @@ public com.google.protobuf.ByteString getRoleBytes() {
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * repeated string members = 2; - * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList getMembersList() { + public com.google.protobuf.ProtocolStringList + getMembersList() { return members_; } /** - * - * *
-   * Specifies the identities requesting access for a Cloud Platform resource.
+   * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
@@ -233,22 +224,36 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * repeated string members = 2; - * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** - * - * *
-   * Specifies the identities requesting access for a Cloud Platform resource.
+   * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
@@ -260,12 +265,28 @@ public int getMembersCount() {
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -273,10 +294,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** - * - * *
-   * Specifies the identities requesting access for a Cloud Platform resource.
+   * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
    * * `allUsers`: A special identifier that represents anyone who is
    *    on the internet; with or without a Google account.
@@ -288,33 +307,52 @@ public java.lang.String getMembers(int index) {
    *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
    * * `group:{emailid}`: An email address that represents a Google group.
    *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
    * * `domain:{domain}`: The G Suite domain (primary) that represents all the
    *    users of that domain. For example, `google.com` or `example.com`.
    * 
* * repeated string members = 2; - * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString getMembersBytes(int index) { + public com.google.protobuf.ByteString + getMembersBytes(int index) { return members_.getByteString(index); } public static final int CONDITION_FIELD_NUMBER = 3; private com.google.type.Expr condition_; /** - * - * *
    * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -322,17 +360,19 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
    * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ @java.lang.Override @@ -340,13 +380,16 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
    * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * .google.type.Expr condition = 3; @@ -357,7 +400,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,7 +411,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -400,7 +443,8 @@ public int getSerializedSize() { size += 1 * getMembersList().size(); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCondition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -410,18 +454,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.Binding)) { return super.equals(obj); } com.google.iam.v1.Binding other = (com.google.iam.v1.Binding) obj; - if (!getRole().equals(other.getRole())) return false; - if (!getMembersList().equals(other.getMembersList())) return false; + if (!getRole() + .equals(other.getRole())) return false; + if (!getMembersList() + .equals(other.getMembersList())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -449,114 +496,109 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.Binding parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.Binding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Binding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.Binding parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Binding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.Binding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Binding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.Binding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.Binding parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.Binding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.Binding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.Binding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.Binding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * Associates `members` with a `role`.
+   * Associates `members`, or principals, with a `role`.
    * 
* * Protobuf type {@code google.iam.v1.Binding} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.Binding) com.google.iam.v1.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -573,15 +615,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(); @@ -599,7 +642,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -640,39 +684,38 @@ public com.google.iam.v1.Binding buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.Binding) { - return mergeFrom((com.google.iam.v1.Binding) other); + return mergeFrom((com.google.iam.v1.Binding)other); } else { super.mergeFrom(other); return this; @@ -726,26 +769,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
-     * Role that is assigned to `members`.
+     * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -754,22 +794,21 @@ public java.lang.String getRole() { } } /** - * - * *
-     * Role that is assigned to `members`.
+     * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -777,83 +816,72 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
-     * Role that is assigned to `members`.
+     * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { + public Builder setRole( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** - * - * *
-     * Role that is assigned to `members`.
+     * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** - * - * *
-     * Role that is assigned to `members`.
+     * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { + 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; } - private com.google.protobuf.LazyStringList members_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { members_ = new com.google.protobuf.LazyStringArrayList(members_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -865,22 +893,37 @@ private void ensureMembersIsMutable() {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList getMembersList() { + public com.google.protobuf.ProtocolStringList + getMembersList() { return members_.getUnmodifiableView(); } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -892,22 +935,36 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -919,12 +976,28 @@ public int getMembersCount() {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param index The index of the element to return. * @return The members at the given index. */ @@ -932,10 +1005,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -947,23 +1018,38 @@ public java.lang.String getMembers(int index) {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString getMembersBytes(int index) { + public com.google.protobuf.ByteString + getMembersBytes(int index) { return members_.getByteString(index); } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -975,30 +1061,45 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param index The index to set the value at. * @param value The members to set. * @return This builder for chaining. */ - public Builder setMembers(int index, java.lang.String value) { + public Builder setMembers( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); + throw new NullPointerException(); + } + ensureMembersIsMutable(); members_.set(index, value); onChanged(); return this; } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -1010,29 +1111,44 @@ public Builder setMembers(int index, java.lang.String value) {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param value The members to add. * @return This builder for chaining. */ - public Builder addMembers(java.lang.String value) { + public Builder addMembers( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); + throw new NullPointerException(); + } + ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -1044,26 +1160,42 @@ public Builder addMembers(java.lang.String value) {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param values The members to add. * @return This builder for chaining. */ - public Builder addAllMembers(java.lang.Iterable values) { + public Builder addAllMembers( + java.lang.Iterable values) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, members_); onChanged(); return this; } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -1075,12 +1207,28 @@ public Builder addAllMembers(java.lang.Iterable values) {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @return This builder for chaining. */ public Builder clearMembers() { @@ -1090,10 +1238,8 @@ public Builder clearMembers() { return this; } /** - * - * *
-     * Specifies the identities requesting access for a Cloud Platform resource.
+     * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
      * * `allUsers`: A special identifier that represents anyone who is
      *    on the internet; with or without a Google account.
@@ -1105,20 +1251,37 @@ public Builder clearMembers() {
      *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
      * * `group:{emailid}`: An email address that represents a Google group.
      *    For example, `admins@example.com`.
+     * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a user that has been recently deleted. For
+     *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+     *    recovered, this value reverts to `user:{emailid}` and the recovered user
+     *    retains the role in the binding.
+     * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+     *    unique identifier) representing a service account that has been recently
+     *    deleted. For example,
+     *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+     *    If the service account is undeleted, this value reverts to
+     *    `serviceAccount:{emailid}` and the undeleted service account retains the
+     *    role in the binding.
+     * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+     *    identifier) representing a Google group that has been recently
+     *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+     *    the group is recovered, this value reverts to `group:{emailid}` and the
+     *    recovered group retains the role in the binding.
      * * `domain:{domain}`: The G Suite domain (primary) that represents all the
      *    users of that domain. For example, `google.com` or `example.com`.
      * 
* * repeated string members = 2; - * * @param value The bytes of the members to add. * @return This builder for chaining. */ - public Builder addMembersBytes(com.google.protobuf.ByteString value) { + public Builder addMembersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMembersIsMutable(); members_.add(value); onChanged(); @@ -1127,37 +1290,40 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) { private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1168,13 +1334,16 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; @@ -1193,18 +1362,22 @@ public Builder setCondition(com.google.type.Expr value) { return this; } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; */ - 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(); @@ -1215,13 +1388,16 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { return this; } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; @@ -1229,7 +1405,8 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { public Builder mergeCondition(com.google.type.Expr value) { if (conditionBuilder_ == null) { if (condition_ != null) { - condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); + condition_ = + com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); } else { condition_ = value; } @@ -1241,13 +1418,16 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; @@ -1264,30 +1444,36 @@ public Builder clearCondition() { return this; } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; */ public com.google.type.Expr.Builder getConditionBuilder() { - + onChanged(); return getConditionFieldBuilder().getBuilder(); } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; @@ -1296,36 +1482,41 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + return condition_ == null ? + com.google.type.Expr.getDefaultInstance() : condition_; } } /** - * - * *
      * The condition that is associated with this binding.
-     * NOTE: An unsatisfied condition will not allow user access via current
-     * binding. Different bindings, including their conditions, are examined
-     * independently.
+     * If the condition evaluates to `true`, then this binding applies to the
+     * current request.
+     * If the condition evaluates to `false`, then this binding does not apply to
+     * the current request. However, a different role binding might grant the same
+     * role to one or more of the principals in this binding.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * .google.type.Expr condition = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getCondition(), getParentForChildren(), isClean()); + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); condition_ = null; } return conditionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1335,12 +1526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.Binding) } // @@protoc_insertion_point(class_scope:google.iam.v1.Binding) private static final com.google.iam.v1.Binding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.Binding(); } @@ -1349,16 +1540,16 @@ public static com.google.iam.v1.Binding getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1373,4 +1564,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.Binding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java similarity index 75% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java index ed69378d..31e2c6b7 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * One delta entry for Binding. Each individual change (only one member in each
  * entry) to a binding will be a separate entry.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.iam.v1.BindingDelta}
  */
-public final class BindingDelta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BindingDelta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.BindingDelta)
     BindingDeltaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BindingDelta.newBuilder() to construct.
   private BindingDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BindingDelta() {
     action_ = 0;
     role_ = "";
@@ -46,15 +28,16 @@ private BindingDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BindingDelta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,86 +56,79 @@ private BindingDelta(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            action_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              role_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            role_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              member_ = s;
-              break;
+            member_ = s;
+            break;
+          }
+          case 34: {
+            com.google.type.Expr.Builder subBuilder = null;
+            if (condition_ != null) {
+              subBuilder = condition_.toBuilder();
             }
-          case 34:
-            {
-              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) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto
-        .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.BindingDelta.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -161,8 +137,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of a Binding.
      * 
@@ -171,8 +145,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of a Binding.
      * 
@@ -184,8 +156,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -194,8 +164,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of a Binding.
      * 
@@ -204,8 +172,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of a Binding.
      * 
@@ -214,6 +180,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -238,49 +205,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return ADD; - case 2: - return REMOVE; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return ADD; + case 2: return REMOVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.iam.v1.BindingDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -300,46 +267,35 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.iam.v1.BindingDelta.Action getAction() { + @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = - com.google.iam.v1.BindingDelta.Action.valueOf(action_); + com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -347,7 +303,6 @@ public com.google.iam.v1.BindingDelta.Action getAction() {
    * 
* * string role = 2; - * * @return The role. */ @java.lang.Override @@ -356,15 +311,14 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -372,15 +326,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 { @@ -391,8 +346,6 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object member_; /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -400,7 +353,6 @@ public com.google.protobuf.ByteString getRoleBytes() {
    * 
* * string member = 3; - * * @return The member. */ @java.lang.Override @@ -409,15 +361,14 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -425,15 +376,16 @@ public java.lang.String getMember() {
    * 
* * string member = 3; - * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -444,14 +396,11 @@ public com.google.protobuf.ByteString getMemberBytes() { public static final int CONDITION_FIELD_NUMBER = 4; private com.google.type.Expr condition_; /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -459,14 +408,11 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ @java.lang.Override @@ -474,8 +420,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
    * The condition that is associated with this binding.
    * 
@@ -488,7 +432,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +443,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -523,7 +467,8 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -532,7 +477,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCondition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -542,7 +488,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.BindingDelta)) { return super.equals(obj); @@ -550,11 +496,14 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.BindingDelta other = (com.google.iam.v1.BindingDelta) obj; if (action_ != other.action_) return false; - if (!getRole().equals(other.getRole())) return false; - if (!getMember().equals(other.getMember())) return false; + if (!getRole() + .equals(other.getRole())) return false; + if (!getMember() + .equals(other.getMember())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -582,103 +531,97 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.BindingDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.BindingDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.BindingDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.BindingDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.BindingDelta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.BindingDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.BindingDelta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.BindingDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.BindingDelta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.BindingDelta parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.BindingDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.BindingDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * One delta entry for Binding. Each individual change (only one member in each
    * entry) to a binding will be a separate entry.
@@ -686,19 +629,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.iam.v1.BindingDelta}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.BindingDelta)
       com.google.iam.v1.BindingDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto
-          .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
     }
@@ -708,15 +651,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();
@@ -736,7 +680,8 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
@@ -773,39 +718,38 @@ public com.google.iam.v1.BindingDelta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.BindingDelta) {
-        return mergeFrom((com.google.iam.v1.BindingDelta) other);
+        return mergeFrom((com.google.iam.v1.BindingDelta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -859,69 +803,55 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = - com.google.iam.v1.BindingDelta.Action.valueOf(action_); + com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -929,25 +859,22 @@ public Builder setAction(com.google.iam.v1.BindingDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -955,8 +882,6 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -964,13 +889,13 @@ public Builder clearAction() {
      * 
* * string role = 2; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -979,8 +904,6 @@ public java.lang.String getRole() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -988,14 +911,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 { @@ -1003,8 +927,6 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -1012,22 +934,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; } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -1035,18 +955,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; } /** - * - * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -1054,16 +971,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; @@ -1071,8 +988,6 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object member_ = ""; /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1080,13 +995,13 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) {
      * 
* * string member = 3; - * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -1095,8 +1010,6 @@ public java.lang.String getMember() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1104,14 +1017,15 @@ public java.lang.String getMember() {
      * 
* * string member = 3; - * * @return The bytes for member. */ - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -1119,8 +1033,6 @@ public com.google.protobuf.ByteString getMemberBytes() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1128,22 +1040,20 @@ public com.google.protobuf.ByteString getMemberBytes() {
      * 
* * string member = 3; - * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember(java.lang.String value) { + public Builder setMember( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + member_ = value; onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1151,18 +1061,15 @@ public Builder setMember(java.lang.String value) {
      * 
* * string member = 3; - * * @return This builder for chaining. */ public Builder clearMember() { - + member_ = getDefaultInstance().getMember(); onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1170,16 +1077,16 @@ public Builder clearMember() {
      * 
* * string member = 3; - * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes(com.google.protobuf.ByteString value) { + public Builder setMemberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + member_ = value; onChanged(); return this; @@ -1187,31 +1094,24 @@ public Builder setMemberBytes(com.google.protobuf.ByteString value) { private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1222,8 +1122,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1244,15 +1142,14 @@ public Builder setCondition(com.google.type.Expr value) { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; */ - public Builder setCondition(com.google.type.Expr.Builder builderForValue) { + public Builder setCondition( + com.google.type.Expr.Builder builderForValue) { if (conditionBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); @@ -1263,8 +1160,6 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1274,7 +1169,8 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { public Builder mergeCondition(com.google.type.Expr value) { if (conditionBuilder_ == null) { if (condition_ != null) { - condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); + condition_ = + com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); } else { condition_ = value; } @@ -1286,8 +1182,6 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1306,8 +1200,6 @@ public Builder clearCondition() { return this; } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1315,13 +1207,11 @@ public Builder clearCondition() { * .google.type.Expr condition = 4; */ public com.google.type.Expr.Builder getConditionBuilder() { - + onChanged(); return getConditionFieldBuilder().getBuilder(); } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1332,12 +1222,11 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; + return condition_ == null ? + com.google.type.Expr.getDefaultInstance() : condition_; } } /** - * - * *
      * The condition that is associated with this binding.
      * 
@@ -1345,20 +1234,21 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * .google.type.Expr condition = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getCondition(), getParentForChildren(), isClean()); + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); condition_ = null; } return conditionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1368,12 +1258,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.BindingDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.BindingDelta) private static final com.google.iam.v1.BindingDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.BindingDelta(); } @@ -1382,16 +1272,16 @@ public static com.google.iam.v1.BindingDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1406,4 +1296,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.BindingDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java similarity index 73% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index a2959294..3d33038c 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingDeltaOrBuilder - extends +public interface BindingDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.BindingDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; - * * @return The action. */ com.google.iam.v1.BindingDelta.Action getAction(); /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -60,13 +36,10 @@ public interface BindingDeltaOrBuilder
    * 
* * string role = 2; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -74,14 +47,12 @@ public interface BindingDeltaOrBuilder
    * 
* * string role = 2; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -89,13 +60,10 @@ public interface BindingDeltaOrBuilder
    * 
* * string member = 3; - * * @return The member. */ java.lang.String getMember(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -103,38 +71,30 @@ public interface BindingDeltaOrBuilder
    * 
* * string member = 3; - * * @return The bytes for member. */ - com.google.protobuf.ByteString getMemberBytes(); + com.google.protobuf.ByteString + getMemberBytes(); /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; - * * @return The condition. */ com.google.type.Expr getCondition(); /** - * - * *
    * The condition that is associated with this binding.
    * 
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java new file mode 100644 index 00000000..7139dde2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -0,0 +1,243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public interface BindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Role that is assigned to the list of `members`, or principals.
+   * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+   * 
+ * + * string role = 1; + * @return The role. + */ + java.lang.String getRole(); + /** + *
+   * Role that is assigned to the list of `members`, or principals.
+   * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+   * 
+ * + * string role = 1; + * @return The bytes for role. + */ + com.google.protobuf.ByteString + getRoleBytes(); + + /** + *
+   * Specifies the principals requesting access for a Cloud Platform resource.
+   * `members` can have the following values:
+   * * `allUsers`: A special identifier that represents anyone who is
+   *    on the internet; with or without a Google account.
+   * * `allAuthenticatedUsers`: A special identifier that represents anyone
+   *    who is authenticated with a Google account or a service account.
+   * * `user:{emailid}`: An email address that represents a specific Google
+   *    account. For example, `alice@example.com` .
+   * * `serviceAccount:{emailid}`: An email address that represents a service
+   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   * * `group:{emailid}`: An email address that represents a Google group.
+   *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
+   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
+   *    users of that domain. For example, `google.com` or `example.com`.
+   * 
+ * + * repeated string members = 2; + * @return A list containing the members. + */ + java.util.List + getMembersList(); + /** + *
+   * Specifies the principals requesting access for a Cloud Platform resource.
+   * `members` can have the following values:
+   * * `allUsers`: A special identifier that represents anyone who is
+   *    on the internet; with or without a Google account.
+   * * `allAuthenticatedUsers`: A special identifier that represents anyone
+   *    who is authenticated with a Google account or a service account.
+   * * `user:{emailid}`: An email address that represents a specific Google
+   *    account. For example, `alice@example.com` .
+   * * `serviceAccount:{emailid}`: An email address that represents a service
+   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   * * `group:{emailid}`: An email address that represents a Google group.
+   *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
+   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
+   *    users of that domain. For example, `google.com` or `example.com`.
+   * 
+ * + * repeated string members = 2; + * @return The count of members. + */ + int getMembersCount(); + /** + *
+   * Specifies the principals requesting access for a Cloud Platform resource.
+   * `members` can have the following values:
+   * * `allUsers`: A special identifier that represents anyone who is
+   *    on the internet; with or without a Google account.
+   * * `allAuthenticatedUsers`: A special identifier that represents anyone
+   *    who is authenticated with a Google account or a service account.
+   * * `user:{emailid}`: An email address that represents a specific Google
+   *    account. For example, `alice@example.com` .
+   * * `serviceAccount:{emailid}`: An email address that represents a service
+   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   * * `group:{emailid}`: An email address that represents a Google group.
+   *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
+   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
+   *    users of that domain. For example, `google.com` or `example.com`.
+   * 
+ * + * repeated string members = 2; + * @param index The index of the element to return. + * @return The members at the given index. + */ + java.lang.String getMembers(int index); + /** + *
+   * Specifies the principals requesting access for a Cloud Platform resource.
+   * `members` can have the following values:
+   * * `allUsers`: A special identifier that represents anyone who is
+   *    on the internet; with or without a Google account.
+   * * `allAuthenticatedUsers`: A special identifier that represents anyone
+   *    who is authenticated with a Google account or a service account.
+   * * `user:{emailid}`: An email address that represents a specific Google
+   *    account. For example, `alice@example.com` .
+   * * `serviceAccount:{emailid}`: An email address that represents a service
+   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
+   * * `group:{emailid}`: An email address that represents a Google group.
+   *    For example, `admins@example.com`.
+   * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a user that has been recently deleted. For
+   *    example, `alice@example.com?uid=123456789012345678901`. If the user is
+   *    recovered, this value reverts to `user:{emailid}` and the recovered user
+   *    retains the role in the binding.
+   * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+   *    unique identifier) representing a service account that has been recently
+   *    deleted. For example,
+   *    `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+   *    If the service account is undeleted, this value reverts to
+   *    `serviceAccount:{emailid}` and the undeleted service account retains the
+   *    role in the binding.
+   * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+   *    identifier) representing a Google group that has been recently
+   *    deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+   *    the group is recovered, this value reverts to `group:{emailid}` and the
+   *    recovered group retains the role in the binding.
+   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
+   *    users of that domain. For example, `google.com` or `example.com`.
+   * 
+ * + * repeated string members = 2; + * @param index The index of the value to return. + * @return The bytes of the members at the given index. + */ + com.google.protobuf.ByteString + getMembersBytes(int index); + + /** + *
+   * The condition that is associated with this binding.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * .google.type.Expr condition = 3; + * @return Whether the condition field is set. + */ + boolean hasCondition(); + /** + *
+   * The condition that is associated with this binding.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * .google.type.Expr condition = 3; + * @return The condition. + */ + com.google.type.Expr getCondition(); + /** + *
+   * The condition that is associated with this binding.
+   * If the condition evaluates to `true`, then this binding applies to the
+   * current request.
+   * If the condition evaluates to `false`, then this binding does not apply to
+   * the current request. However, a different role binding might grant the same
+   * role to one or more of the principals in this binding.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * .google.type.Expr condition = 3; + */ + com.google.type.ExprOrBuilder getConditionOrBuilder(); +} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java similarity index 66% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java index 6f21bb3e..2a13e5f8 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Request message for `GetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ -public final class GetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetIamPolicyRequest) GetIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetIamPolicyRequest.newBuilder() to construct. private GetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,66 @@ private GetIamPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; + resource_ = s; + break; + } + case 18: { + com.google.iam.v1.GetPolicyOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); } - case 18: - { - com.google.iam.v1.GetPolicyOptions.Builder subBuilder = null; - if (options_ != null) { - subBuilder = options_.toBuilder(); - } - options_ = - input.readMessage(com.google.iam.v1.GetPolicyOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - - break; + options_ = input.readMessage(com.google.iam.v1.GetPolicyOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, - com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -148,32 +121,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -184,15 +155,12 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int OPTIONS_FIELD_NUMBER = 2; private com.google.iam.v1.GetPolicyOptions options_; /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ @java.lang.Override @@ -200,15 +168,12 @@ public boolean hasOptions() { return options_ != null; } /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ @java.lang.Override @@ -216,11 +181,9 @@ public com.google.iam.v1.GetPolicyOptions getOptions() { return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; @@ -231,7 +194,6 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -263,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (options_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,17 +237,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.GetIamPolicyRequest)) { return super.equals(obj); } com.google.iam.v1.GetIamPolicyRequest other = (com.google.iam.v1.GetIamPolicyRequest) obj; - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions().equals(other.getOptions())) return false; + if (!getOptions() + .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,126 +273,118 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.GetIamPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.GetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.GetIamPolicyRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.GetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.GetIamPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.GetIamPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.GetIamPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.GetIamPolicyRequest) com.google.iam.v1.GetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, - com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() @@ -434,15 +392,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(); @@ -458,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override @@ -479,8 +438,7 @@ public com.google.iam.v1.GetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.GetIamPolicyRequest buildPartial() { - com.google.iam.v1.GetIamPolicyRequest result = - new com.google.iam.v1.GetIamPolicyRequest(this); + com.google.iam.v1.GetIamPolicyRequest result = new com.google.iam.v1.GetIamPolicyRequest(this); result.resource_ = resource_; if (optionsBuilder_ == null) { result.options_ = options_; @@ -495,39 +453,38 @@ public com.google.iam.v1.GetIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.GetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.GetIamPolicyRequest) other); + return mergeFrom((com.google.iam.v1.GetIamPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -574,23 +531,19 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -599,24 +552,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -624,70 +574,57 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -695,52 +632,39 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private com.google.iam.v1.GetPolicyOptions options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, - com.google.iam.v1.GetPolicyOptions.Builder, - com.google.iam.v1.GetPolicyOptionsOrBuilder> - optionsBuilder_; + com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> optionsBuilder_; /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ public com.google.iam.v1.GetPolicyOptions getOptions() { if (optionsBuilder_ == null) { - return options_ == null - ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() - : options_; + return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; @@ -759,16 +683,15 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) { return this; } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; */ - public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForValue) { + public Builder setOptions( + com.google.iam.v1.GetPolicyOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); @@ -779,11 +702,9 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForV return this; } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; @@ -792,9 +713,7 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = - com.google.iam.v1.GetPolicyOptions.newBuilder(options_) - .mergeFrom(value) - .buildPartial(); + com.google.iam.v1.GetPolicyOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } @@ -806,11 +725,9 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) { return this; } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; @@ -827,26 +744,22 @@ public Builder clearOptions() { return this; } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; */ public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() { - + onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; @@ -855,40 +768,34 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null - ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() - : options_; + return options_ == null ? + com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } } /** - * - * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-     * `GetIamPolicy`. This field is only used by Cloud IAM.
+     * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, - com.google.iam.v1.GetPolicyOptions.Builder, - com.google.iam.v1.GetPolicyOptionsOrBuilder> + com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, - com.google.iam.v1.GetPolicyOptions.Builder, - com.google.iam.v1.GetPolicyOptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); options_ = null; } return optionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.GetIamPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.GetIamPolicyRequest) private static final com.google.iam.v1.GetIamPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.GetIamPolicyRequest(); } @@ -912,16 +819,16 @@ public static com.google.iam.v1.GetIamPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIamPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIamPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIamPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIamPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.GetIamPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java similarity index 54% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java index 443bbb5c..1107e278 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java @@ -1,91 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface GetIamPolicyRequestOrBuilder - extends +public interface GetIamPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.GetIamPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return Whether the options field is set. */ boolean hasOptions(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; - * * @return The options. */ com.google.iam.v1.GetPolicyOptions getOptions(); /** - * - * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
-   * `GetIamPolicy`. This field is only used by Cloud IAM.
+   * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java similarity index 61% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java index 7054040f..dfcb8bd3 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.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/iam/v1/options.proto package com.google.iam.v1; /** - * - * *
  * Encapsulates settings provided to GetIamPolicy.
  * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ -public final class GetPolicyOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPolicyOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetPolicyOptions) GetPolicyOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPolicyOptions.newBuilder() to construct. private GetPolicyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GetPolicyOptions() {} + private GetPolicyOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPolicyOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,60 +52,64 @@ private GetPolicyOptions( case 0: done = true; break; - case 8: - { - requestedPolicyVersion_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + requestedPolicyVersion_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, - com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); } public static final int REQUESTED_POLICY_VERSION_FIELD_NUMBER = 1; private int requestedPolicyVersion_; /** - * - * *
-   * Optional. The policy format version to be returned.
+   * Optional. The maximum policy version that will be used to format the
+   * policy.
    * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
    * rejected.
-   * Requests for policies with any conditional bindings must specify version 3.
-   * Policies without any conditional bindings may specify any valid value or
-   * leave the field unset.
+   * Requests for policies with any conditional role bindings must specify
+   * version 3. Policies with no conditional role bindings may specify any valid
+   * value or leave the field unset.
+   * The policy in the response might use the policy version that you specified,
+   * or it might use a lower policy version. For example, if you specify version
+   * 3, but the policy has no conditional role bindings, the response uses
+   * version 1.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
    * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -130,7 +118,6 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +129,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestedPolicyVersion_ != 0) { output.writeInt32(1, requestedPolicyVersion_); } @@ -156,7 +144,8 @@ public int getSerializedSize() { size = 0; if (requestedPolicyVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, requestedPolicyVersion_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, requestedPolicyVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -166,14 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.GetPolicyOptions)) { return super.equals(obj); } com.google.iam.v1.GetPolicyOptions other = (com.google.iam.v1.GetPolicyOptions) obj; - if (getRequestedPolicyVersion() != other.getRequestedPolicyVersion()) return false; + if (getRequestedPolicyVersion() + != other.getRequestedPolicyVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -192,126 +182,118 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.GetPolicyOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.GetPolicyOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.GetPolicyOptions parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.GetPolicyOptions parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.GetPolicyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.GetPolicyOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.GetPolicyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.GetPolicyOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.GetPolicyOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates settings provided to GetIamPolicy.
    * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.GetPolicyOptions) com.google.iam.v1.GetPolicyOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, - com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); } // Construct using com.google.iam.v1.GetPolicyOptions.newBuilder() @@ -319,15 +301,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(); @@ -337,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.OptionsProto - .internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override @@ -368,39 +351,38 @@ public com.google.iam.v1.GetPolicyOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.GetPolicyOptions) { - return mergeFrom((com.google.iam.v1.GetPolicyOptions) other); + return mergeFrom((com.google.iam.v1.GetPolicyOptions)other); } else { super.mergeFrom(other); return this; @@ -441,21 +423,26 @@ public Builder mergeFrom( return this; } - private int requestedPolicyVersion_; + private int requestedPolicyVersion_ ; /** - * - * *
-     * Optional. The policy format version to be returned.
+     * Optional. The maximum policy version that will be used to format the
+     * policy.
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
-     * Requests for policies with any conditional bindings must specify version 3.
-     * Policies without any conditional bindings may specify any valid value or
-     * leave the field unset.
+     * Requests for policies with any conditional role bindings must specify
+     * version 3. Policies with no conditional role bindings may specify any valid
+     * value or leave the field unset.
+     * The policy in the response might use the policy version that you specified,
+     * or it might use a lower policy version. For example, if you specify version
+     * 3, but the policy has no conditional role bindings, the response uses
+     * version 1.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -463,53 +450,63 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** - * - * *
-     * Optional. The policy format version to be returned.
+     * Optional. The maximum policy version that will be used to format the
+     * policy.
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
-     * Requests for policies with any conditional bindings must specify version 3.
-     * Policies without any conditional bindings may specify any valid value or
-     * leave the field unset.
+     * Requests for policies with any conditional role bindings must specify
+     * version 3. Policies with no conditional role bindings may specify any valid
+     * value or leave the field unset.
+     * The policy in the response might use the policy version that you specified,
+     * or it might use a lower policy version. For example, if you specify version
+     * 3, but the policy has no conditional role bindings, the response uses
+     * version 1.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ public Builder setRequestedPolicyVersion(int value) { - + requestedPolicyVersion_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. The policy format version to be returned.
+     * Optional. The maximum policy version that will be used to format the
+     * policy.
      * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
      * rejected.
-     * Requests for policies with any conditional bindings must specify version 3.
-     * Policies without any conditional bindings may specify any valid value or
-     * leave the field unset.
+     * Requests for policies with any conditional role bindings must specify
+     * version 3. Policies with no conditional role bindings may specify any valid
+     * value or leave the field unset.
+     * The policy in the response might use the policy version that you specified,
+     * or it might use a lower policy version. For example, if you specify version
+     * 3, but the policy has no conditional role bindings, the response uses
+     * version 1.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM
+     * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
      * 
* * int32 requested_policy_version = 1; - * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { - + requestedPolicyVersion_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -519,12 +516,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.GetPolicyOptions) } // @@protoc_insertion_point(class_scope:google.iam.v1.GetPolicyOptions) private static final com.google.iam.v1.GetPolicyOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.GetPolicyOptions(); } @@ -533,16 +530,16 @@ public static com.google.iam.v1.GetPolicyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -557,4 +554,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.GetPolicyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java new file mode 100644 index 00000000..64770ef7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/options.proto + +package com.google.iam.v1; + +public interface GetPolicyOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.GetPolicyOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. The maximum policy version that will be used to format the
+   * policy.
+   * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+   * rejected.
+   * Requests for policies with any conditional role bindings must specify
+   * version 3. Policies with no conditional role bindings may specify any valid
+   * value or leave the field unset.
+   * The policy in the response might use the policy version that you specified,
+   * or it might use a lower policy version. For example, if you specify version
+   * 3, but the policy has no conditional role bindings, the response uses
+   * version 1.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM
+   * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * int32 requested_policy_version = 1; + * @return The requestedPolicyVersion. + */ + int getRequestedPolicyVersion(); +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java new file mode 100644 index 00000000..1636f34c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/iam_policy.proto + +package com.google.iam.v1; + +public final class IamPolicyProto { + private IamPolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036google/iam/v1/iam_policy.proto\022\rgoogle" + + ".iam.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032\033google/iam/v1/options.proto\032\032google/" + + "iam/v1/policy.proto\032 google/protobuf/fie" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" + + "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" + + "gle.golang.org/genproto/googleapis/iam/v" + + "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" + + "Cloud\\Iam\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.OptionsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, + new java.lang.String[] { "Resource", "Policy", "UpdateMask", }); + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, + new java.lang.String[] { "Resource", "Options", }); + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, + new java.lang.String[] { "Resource", "Permissions", }); + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, + new java.lang.String[] { "Permissions", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.OptionsProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java new file mode 100644 index 00000000..6c60c51b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/options.proto + +package com.google.iam.v1; + +public final class OptionsProto { + private OptionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetPolicyOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033google/iam/v1/options.proto\022\rgoogle.ia" + + "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" + + "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" + + "B\014OptionsProtoP\001Z0google.golang.org/genp" + + "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" + + "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_iam_v1_GetPolicyOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetPolicyOptions_descriptor, + new java.lang.String[] { "RequestedPolicyVersion", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java new file mode 100644 index 00000000..98eec1b1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java @@ -0,0 +1,1882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +/** + *
+ * An Identity and Access Management (IAM) policy, which specifies access
+ * controls for Google Cloud resources.
+ * A `Policy` is a collection of `bindings`. A `binding` binds one or more
+ * `members`, or principals, to a single `role`. Principals can be user
+ * accounts, service accounts, Google groups, and domains (such as G Suite). A
+ * `role` is a named list of permissions; each `role` can be an IAM predefined
+ * role or a user-created custom role.
+ * For some types of Google Cloud resources, a `binding` can also specify a
+ * `condition`, which is a logical expression that allows access to a resource
+ * only if the expression evaluates to `true`. A condition can add constraints
+ * based on attributes of the request, the resource, or both. To learn which
+ * resources support conditions in their IAM policies, see the
+ * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ * **JSON example:**
+ *     {
+ *       "bindings": [
+ *         {
+ *           "role": "roles/resourcemanager.organizationAdmin",
+ *           "members": [
+ *             "user:mike@example.com",
+ *             "group:admins@example.com",
+ *             "domain:google.com",
+ *             "serviceAccount:my-project-id@appspot.gserviceaccount.com"
+ *           ]
+ *         },
+ *         {
+ *           "role": "roles/resourcemanager.organizationViewer",
+ *           "members": [
+ *             "user:eve@example.com"
+ *           ],
+ *           "condition": {
+ *             "title": "expirable access",
+ *             "description": "Does not grant access after Sep 2020",
+ *             "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
+ *           }
+ *         }
+ *       ],
+ *       "etag": "BwWWja0YfJA=",
+ *       "version": 3
+ *     }
+ * **YAML example:**
+ *     bindings:
+ *     - members:
+ *       - user:mike@example.com
+ *       - group:admins@example.com
+ *       - domain:google.com
+ *       - serviceAccount:my-project-id@appspot.gserviceaccount.com
+ *       role: roles/resourcemanager.organizationAdmin
+ *     - members:
+ *       - user:eve@example.com
+ *       role: roles/resourcemanager.organizationViewer
+ *       condition:
+ *         title: expirable access
+ *         description: Does not grant access after Sep 2020
+ *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
+ *     etag: BwWWja0YfJA=
+ *     version: 3
+ * For a description of IAM and its features, see the
+ * [IAM documentation](https://cloud.google.com/iam/docs/).
+ * 
+ * + * Protobuf type {@code google.iam.v1.Policy} + */ +public final class Policy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.iam.v1.Policy) + PolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use Policy.newBuilder() to construct. + private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Policy() { + bindings_ = java.util.Collections.emptyList(); + auditConfigs_ = java.util.Collections.emptyList(); + etag_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Policy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Policy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + version_ = input.readInt32(); + break; + } + case 26: { + + etag_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindings_.add( + input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + auditConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + auditConfigs_.add( + input.readMessage(com.google.iam.v1.AuditConfig.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + auditConfigs_ = java.util.Collections.unmodifiableList(auditConfigs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.Policy.class, com.google.iam.v1.Policy.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + /** + *
+   * Specifies the format of the policy.
+   * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+   * are rejected.
+   * Any operation that affects conditional role bindings must specify version
+   * `3`. This requirement applies to the following operations:
+   * * Getting a policy that includes a conditional role binding
+   * * Adding a conditional role binding to a policy
+   * * Changing a conditional role binding in a policy
+   * * Removing any role binding, with or without a condition, from a policy
+   *   that includes conditions
+   * **Important:** If you use IAM Conditions, you must include the `etag` field
+   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+   * you to overwrite a version `3` policy with a version `1` policy, and all of
+   * the conditions in the version `3` policy are lost.
+   * If a policy does not include any conditions, operations on that policy may
+   * specify any valid version or leave the field unset.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * int32 version = 1; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int BINDINGS_FIELD_NUMBER = 4; + private java.util.List bindings_; + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + @java.lang.Override + public java.util.List getBindingsList() { + return bindings_; + } + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + @java.lang.Override + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + @java.lang.Override + public int getBindingsCount() { + return bindings_.size(); + } + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + @java.lang.Override + public com.google.iam.v1.Binding getBindings(int index) { + return bindings_.get(index); + } + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + @java.lang.Override + public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( + int index) { + return bindings_.get(index); + } + + public static final int AUDIT_CONFIGS_FIELD_NUMBER = 6; + private java.util.List auditConfigs_; + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + @java.lang.Override + public java.util.List getAuditConfigsList() { + return auditConfigs_; + } + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + @java.lang.Override + public java.util.List + getAuditConfigsOrBuilderList() { + return auditConfigs_; + } + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + @java.lang.Override + public int getAuditConfigsCount() { + return auditConfigs_.size(); + } + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + @java.lang.Override + public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { + return auditConfigs_.get(index); + } + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + @java.lang.Override + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index) { + return auditConfigs_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString etag_; + /** + *
+   * `etag` is used for optimistic concurrency control as a way to help
+   * prevent simultaneous updates of a policy from overwriting each other.
+   * It is strongly suggested that systems make use of the `etag` in the
+   * read-modify-write cycle to perform policy updates in order to avoid race
+   * conditions: An `etag` is returned in the response to `getIamPolicy`, and
+   * systems are expected to put that etag in the request to `setIamPolicy` to
+   * ensure that their change will be applied to the same version of the policy.
+   * **Important:** If you use IAM Conditions, you must include the `etag` field
+   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+   * you to overwrite a version `3` policy with a version `1` policy, and all of
+   * the conditions in the version `3` policy are lost.
+   * 
+ * + * bytes etag = 3; + * @return The etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtag() { + return etag_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (version_ != 0) { + output.writeInt32(1, version_); + } + if (!etag_.isEmpty()) { + output.writeBytes(3, etag_); + } + for (int i = 0; i < bindings_.size(); i++) { + output.writeMessage(4, bindings_.get(i)); + } + for (int i = 0; i < auditConfigs_.size(); i++) { + output.writeMessage(6, auditConfigs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, version_); + } + if (!etag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, etag_); + } + for (int i = 0; i < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, bindings_.get(i)); + } + for (int i = 0; i < auditConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, auditConfigs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v1.Policy)) { + return super.equals(obj); + } + com.google.iam.v1.Policy other = (com.google.iam.v1.Policy) obj; + + if (getVersion() + != other.getVersion()) return false; + if (!getBindingsList() + .equals(other.getBindingsList())) return false; + if (!getAuditConfigsList() + .equals(other.getAuditConfigsList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + if (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().hashCode(); + } + if (getAuditConfigsCount() > 0) { + hash = (37 * hash) + AUDIT_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAuditConfigsList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v1.Policy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.Policy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.Policy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.iam.v1.Policy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.iam.v1.Policy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.Policy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.iam.v1.Policy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.iam.v1.Policy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.iam.v1.Policy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * An Identity and Access Management (IAM) policy, which specifies access
+   * controls for Google Cloud resources.
+   * A `Policy` is a collection of `bindings`. A `binding` binds one or more
+   * `members`, or principals, to a single `role`. Principals can be user
+   * accounts, service accounts, Google groups, and domains (such as G Suite). A
+   * `role` is a named list of permissions; each `role` can be an IAM predefined
+   * role or a user-created custom role.
+   * For some types of Google Cloud resources, a `binding` can also specify a
+   * `condition`, which is a logical expression that allows access to a resource
+   * only if the expression evaluates to `true`. A condition can add constraints
+   * based on attributes of the request, the resource, or both. To learn which
+   * resources support conditions in their IAM policies, see the
+   * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * **JSON example:**
+   *     {
+   *       "bindings": [
+   *         {
+   *           "role": "roles/resourcemanager.organizationAdmin",
+   *           "members": [
+   *             "user:mike@example.com",
+   *             "group:admins@example.com",
+   *             "domain:google.com",
+   *             "serviceAccount:my-project-id@appspot.gserviceaccount.com"
+   *           ]
+   *         },
+   *         {
+   *           "role": "roles/resourcemanager.organizationViewer",
+   *           "members": [
+   *             "user:eve@example.com"
+   *           ],
+   *           "condition": {
+   *             "title": "expirable access",
+   *             "description": "Does not grant access after Sep 2020",
+   *             "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
+   *           }
+   *         }
+   *       ],
+   *       "etag": "BwWWja0YfJA=",
+   *       "version": 3
+   *     }
+   * **YAML example:**
+   *     bindings:
+   *     - members:
+   *       - user:mike@example.com
+   *       - group:admins@example.com
+   *       - domain:google.com
+   *       - serviceAccount:my-project-id@appspot.gserviceaccount.com
+   *       role: roles/resourcemanager.organizationAdmin
+   *     - members:
+   *       - user:eve@example.com
+   *       role: roles/resourcemanager.organizationViewer
+   *       condition:
+   *         title: expirable access
+   *         description: Does not grant access after Sep 2020
+   *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
+   *     etag: BwWWja0YfJA=
+   *     version: 3
+   * For a description of IAM and its features, see the
+   * [IAM documentation](https://cloud.google.com/iam/docs/).
+   * 
+ * + * Protobuf type {@code google.iam.v1.Policy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy) + com.google.iam.v1.PolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.Policy.class, com.google.iam.v1.Policy.Builder.class); + } + + // Construct using com.google.iam.v1.Policy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBindingsFieldBuilder(); + getAuditConfigsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bindingsBuilder_.clear(); + } + if (auditConfigsBuilder_ == null) { + auditConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + auditConfigsBuilder_.clear(); + } + etag_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; + } + + @java.lang.Override + public com.google.iam.v1.Policy getDefaultInstanceForType() { + return com.google.iam.v1.Policy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v1.Policy build() { + com.google.iam.v1.Policy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v1.Policy buildPartial() { + com.google.iam.v1.Policy result = new com.google.iam.v1.Policy(this); + int from_bitField0_ = bitField0_; + result.version_ = version_; + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.build(); + } + if (auditConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + auditConfigs_ = java.util.Collections.unmodifiableList(auditConfigs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.auditConfigs_ = auditConfigs_; + } else { + result.auditConfigs_ = auditConfigsBuilder_.build(); + } + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v1.Policy) { + return mergeFrom((com.google.iam.v1.Policy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v1.Policy other) { + if (other == com.google.iam.v1.Policy.getDefaultInstance()) return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingsFieldBuilder() : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + if (auditConfigsBuilder_ == null) { + if (!other.auditConfigs_.isEmpty()) { + if (auditConfigs_.isEmpty()) { + auditConfigs_ = other.auditConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAuditConfigsIsMutable(); + auditConfigs_.addAll(other.auditConfigs_); + } + onChanged(); + } + } else { + if (!other.auditConfigs_.isEmpty()) { + if (auditConfigsBuilder_.isEmpty()) { + auditConfigsBuilder_.dispose(); + auditConfigsBuilder_ = null; + auditConfigs_ = other.auditConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); + auditConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuditConfigsFieldBuilder() : null; + } else { + auditConfigsBuilder_.addAllMessages(other.auditConfigs_); + } + } + } + if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { + setEtag(other.getEtag()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.iam.v1.Policy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.iam.v1.Policy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int version_ ; + /** + *
+     * Specifies the format of the policy.
+     * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+     * are rejected.
+     * Any operation that affects conditional role bindings must specify version
+     * `3`. This requirement applies to the following operations:
+     * * Getting a policy that includes a conditional role binding
+     * * Adding a conditional role binding to a policy
+     * * Changing a conditional role binding in a policy
+     * * Removing any role binding, with or without a condition, from a policy
+     *   that includes conditions
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * If a policy does not include any conditions, operations on that policy may
+     * specify any valid version or leave the field unset.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+     * 
+ * + * int32 version = 1; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * Specifies the format of the policy.
+     * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+     * are rejected.
+     * Any operation that affects conditional role bindings must specify version
+     * `3`. This requirement applies to the following operations:
+     * * Getting a policy that includes a conditional role binding
+     * * Adding a conditional role binding to a policy
+     * * Changing a conditional role binding in a policy
+     * * Removing any role binding, with or without a condition, from a policy
+     *   that includes conditions
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * If a policy does not include any conditions, operations on that policy may
+     * specify any valid version or leave the field unset.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+     * 
+ * + * int32 version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies the format of the policy.
+     * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+     * are rejected.
+     * Any operation that affects conditional role bindings must specify version
+     * `3`. This requirement applies to the following operations:
+     * * Getting a policy that includes a conditional role binding
+     * * Adding a conditional role binding to a policy
+     * * Changing a conditional role binding in a policy
+     * * Removing any role binding, with or without a condition, from a policy
+     *   that includes conditions
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * If a policy does not include any conditions, operations on that policy may
+     * specify any valid version or leave the field unset.
+     * To learn which resources support conditions in their IAM policies, see the
+     * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+     * 
+ * + * int32 version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private java.util.List bindings_ = + java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> bindingsBuilder_; + + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public com.google.iam.v1.Binding getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder setBindings( + int index, com.google.iam.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder setBindings( + int index, com.google.iam.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder addBindings(com.google.iam.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder addBindings( + int index, com.google.iam.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder addBindings( + com.google.iam.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder addBindings( + int index, com.google.iam.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public com.google.iam.v1.Binding.Builder getBindingsBuilder( + int index) { + return getBindingsFieldBuilder().getBuilder(index); + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( + int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public com.google.iam.v1.Binding.Builder addBindingsBuilder() { + return getBindingsFieldBuilder().addBuilder( + com.google.iam.v1.Binding.getDefaultInstance()); + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public com.google.iam.v1.Binding.Builder addBindingsBuilder( + int index) { + return getBindingsFieldBuilder().addBuilder( + index, com.google.iam.v1.Binding.getDefaultInstance()); + } + /** + *
+     * Associates a list of `members`, or principals, with a `role`. Optionally,
+     * may specify a `condition` that determines how and when the `bindings` are
+     * applied. Each of the `bindings` must contain at least one principal.
+     * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+     * of these principals can be Google groups. Each occurrence of a principal
+     * counts towards these limits. For example, if the `bindings` grant 50
+     * different roles to `user:alice@example.com`, and not to any other
+     * principal, then you can add another 1,450 principals to the `bindings` in
+     * the `Policy`.
+     * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + public java.util.List + getBindingsBuilderList() { + return getBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> + getBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>( + bindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + + private java.util.List auditConfigs_ = + java.util.Collections.emptyList(); + private void ensureAuditConfigsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + auditConfigs_ = new java.util.ArrayList(auditConfigs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> auditConfigsBuilder_; + + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public java.util.List getAuditConfigsList() { + if (auditConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(auditConfigs_); + } else { + return auditConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public int getAuditConfigsCount() { + if (auditConfigsBuilder_ == null) { + return auditConfigs_.size(); + } else { + return auditConfigsBuilder_.getCount(); + } + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { + if (auditConfigsBuilder_ == null) { + return auditConfigs_.get(index); + } else { + return auditConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder setAuditConfigs( + int index, com.google.iam.v1.AuditConfig value) { + if (auditConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditConfigsIsMutable(); + auditConfigs_.set(index, value); + onChanged(); + } else { + auditConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder setAuditConfigs( + int index, com.google.iam.v1.AuditConfig.Builder builderForValue) { + if (auditConfigsBuilder_ == null) { + ensureAuditConfigsIsMutable(); + auditConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + auditConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder addAuditConfigs(com.google.iam.v1.AuditConfig value) { + if (auditConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditConfigsIsMutable(); + auditConfigs_.add(value); + onChanged(); + } else { + auditConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder addAuditConfigs( + int index, com.google.iam.v1.AuditConfig value) { + if (auditConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuditConfigsIsMutable(); + auditConfigs_.add(index, value); + onChanged(); + } else { + auditConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder addAuditConfigs( + com.google.iam.v1.AuditConfig.Builder builderForValue) { + if (auditConfigsBuilder_ == null) { + ensureAuditConfigsIsMutable(); + auditConfigs_.add(builderForValue.build()); + onChanged(); + } else { + auditConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder addAuditConfigs( + int index, com.google.iam.v1.AuditConfig.Builder builderForValue) { + if (auditConfigsBuilder_ == null) { + ensureAuditConfigsIsMutable(); + auditConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + auditConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder addAllAuditConfigs( + java.lang.Iterable values) { + if (auditConfigsBuilder_ == null) { + ensureAuditConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditConfigs_); + onChanged(); + } else { + auditConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder clearAuditConfigs() { + if (auditConfigsBuilder_ == null) { + auditConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + auditConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public Builder removeAuditConfigs(int index) { + if (auditConfigsBuilder_ == null) { + ensureAuditConfigsIsMutable(); + auditConfigs_.remove(index); + onChanged(); + } else { + auditConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder( + int index) { + return getAuditConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index) { + if (auditConfigsBuilder_ == null) { + return auditConfigs_.get(index); } else { + return auditConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public java.util.List + getAuditConfigsOrBuilderList() { + if (auditConfigsBuilder_ != null) { + return auditConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(auditConfigs_); + } + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder() { + return getAuditConfigsFieldBuilder().addBuilder( + com.google.iam.v1.AuditConfig.getDefaultInstance()); + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( + int index) { + return getAuditConfigsFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditConfig.getDefaultInstance()); + } + /** + *
+     * Specifies cloud audit logging configuration for this policy.
+     * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + public java.util.List + getAuditConfigsBuilderList() { + return getAuditConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> + getAuditConfigsFieldBuilder() { + if (auditConfigsBuilder_ == null) { + auditConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder>( + auditConfigs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + auditConfigs_ = null; + } + return auditConfigsBuilder_; + } + + private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * `etag` is used for optimistic concurrency control as a way to help
+     * prevent simultaneous updates of a policy from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform policy updates in order to avoid race
+     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
+     * systems are expected to put that etag in the request to `setIamPolicy` to
+     * ensure that their change will be applied to the same version of the policy.
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * 
+ * + * bytes etag = 3; + * @return The etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtag() { + return etag_; + } + /** + *
+     * `etag` is used for optimistic concurrency control as a way to help
+     * prevent simultaneous updates of a policy from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform policy updates in order to avoid race
+     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
+     * systems are expected to put that etag in the request to `setIamPolicy` to
+     * ensure that their change will be applied to the same version of the policy.
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * 
+ * + * bytes etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + *
+     * `etag` is used for optimistic concurrency control as a way to help
+     * prevent simultaneous updates of a policy from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform policy updates in order to avoid race
+     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
+     * systems are expected to put that etag in the request to `setIamPolicy` to
+     * ensure that their change will be applied to the same version of the policy.
+     * **Important:** If you use IAM Conditions, you must include the `etag` field
+     * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+     * you to overwrite a version `3` policy with a version `1` policy, and all of
+     * the conditions in the version `3` policy are lost.
+     * 
+ * + * bytes etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) + } + + // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) + private static final com.google.iam.v1.Policy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.iam.v1.Policy(); + } + + public static com.google.iam.v1.Policy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v1.Policy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java similarity index 78% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index c26773e9..7a4e4d75 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** - * - * *
  * The difference delta between two policies.
  * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ -public final class PolicyDelta extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyDelta extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.PolicyDelta) PolicyDeltaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyDelta.newBuilder() to construct. private PolicyDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyDelta() { bindingDeltas_ = java.util.Collections.emptyList(); auditConfigDeltas_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private PolicyDelta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyDelta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyDelta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,40 +55,38 @@ private PolicyDelta( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bindingDeltas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bindingDeltas_.add( - input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bindingDeltas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - auditConfigDeltas_.add( - input.readMessage( - com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry)); - break; + bindingDeltas_.add( + input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + auditConfigDeltas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + auditConfigDeltas_.add( + input.readMessage(com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = java.util.Collections.unmodifiableList(bindingDeltas_); @@ -117,16 +98,15 @@ private PolicyDelta( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto - .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } @@ -134,8 +114,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int BINDING_DELTAS_FIELD_NUMBER = 1; private java.util.List bindingDeltas_; /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -147,8 +125,6 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -156,13 +132,11 @@ public java.util.List getBindingDeltasList() { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBindingDeltasOrBuilderList() { return bindingDeltas_; } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -174,8 +148,6 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -187,8 +159,6 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -196,15 +166,14 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index) { return bindingDeltas_.get(index); } public static final int AUDIT_CONFIG_DELTAS_FIELD_NUMBER = 2; private java.util.List auditConfigDeltas_; /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -216,8 +185,6 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -225,13 +192,11 @@ public java.util.List getAuditConfigDeltasLi * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigDeltasOrBuilderList() { return auditConfigDeltas_; } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -243,8 +208,6 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -256,8 +219,6 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -265,12 +226,12 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index) { return auditConfigDeltas_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < bindingDeltas_.size(); i++) { output.writeMessage(1, bindingDeltas_.get(i)); } @@ -299,11 +261,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bindingDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindingDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindingDeltas_.get(i)); } for (int i = 0; i < auditConfigDeltas_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, auditConfigDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, auditConfigDeltas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -313,15 +276,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.PolicyDelta)) { return super.equals(obj); } com.google.iam.v1.PolicyDelta other = (com.google.iam.v1.PolicyDelta) obj; - if (!getBindingDeltasList().equals(other.getBindingDeltasList())) return false; - if (!getAuditConfigDeltasList().equals(other.getAuditConfigDeltasList())) return false; + if (!getBindingDeltasList() + .equals(other.getBindingDeltasList())) return false; + if (!getAuditConfigDeltasList() + .equals(other.getAuditConfigDeltasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -346,122 +311,116 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.PolicyDelta parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.PolicyDelta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.PolicyDelta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.PolicyDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.PolicyDelta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.PolicyDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.PolicyDelta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.PolicyDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.PolicyDelta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.iam.v1.PolicyDelta parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.PolicyDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.PolicyDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The difference delta between two policies.
    * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.PolicyDelta) com.google.iam.v1.PolicyDeltaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto - .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } @@ -471,18 +430,18 @@ 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) { getBindingDeltasFieldBuilder(); getAuditConfigDeltasFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -502,7 +461,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @@ -550,39 +510,38 @@ public com.google.iam.v1.PolicyDelta buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.PolicyDelta) { - return mergeFrom((com.google.iam.v1.PolicyDelta) other); + return mergeFrom((com.google.iam.v1.PolicyDelta)other); } else { super.mergeFrom(other); return this; @@ -609,10 +568,9 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { bindingDeltasBuilder_ = null; bindingDeltas_ = other.bindingDeltas_; bitField0_ = (bitField0_ & ~0x00000001); - bindingDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBindingDeltasFieldBuilder() - : null; + bindingDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingDeltasFieldBuilder() : null; } else { bindingDeltasBuilder_.addAllMessages(other.bindingDeltas_); } @@ -636,10 +594,9 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { auditConfigDeltasBuilder_ = null; auditConfigDeltas_ = other.auditConfigDeltas_; bitField0_ = (bitField0_ & ~0x00000002); - auditConfigDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAuditConfigDeltasFieldBuilder() - : null; + auditConfigDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAuditConfigDeltasFieldBuilder() : null; } else { auditConfigDeltasBuilder_.addAllMessages(other.auditConfigDeltas_); } @@ -673,28 +630,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List bindingDeltas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBindingDeltasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = new java.util.ArrayList(bindingDeltas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder> - bindingDeltasBuilder_; + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> bindingDeltasBuilder_; /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -709,8 +659,6 @@ public java.util.List getBindingDeltasList() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -725,8 +673,6 @@ public int getBindingDeltasCount() { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -741,15 +687,14 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { + public Builder setBindingDeltas( + int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,8 +708,6 @@ public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -783,8 +726,6 @@ public Builder setBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -805,15 +746,14 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta value) { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { + public Builder addBindingDeltas( + int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,15 +767,14 @@ public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderForValue) { + public Builder addBindingDeltas( + com.google.iam.v1.BindingDelta.Builder builderForValue) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); bindingDeltas_.add(builderForValue.build()); @@ -846,8 +785,6 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderFo return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -866,8 +803,6 @@ public Builder addBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -878,7 +813,8 @@ public Builder addAllBindingDeltas( java.lang.Iterable values) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingDeltas_); onChanged(); } else { bindingDeltasBuilder_.addAllMessages(values); @@ -886,8 +822,6 @@ public Builder addAllBindingDeltas( return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -905,8 +839,6 @@ public Builder clearBindingDeltas() { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -924,44 +856,39 @@ public Builder removeBindingDeltas(int index) { return this; } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder(int index) { + public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder( + int index) { return getBindingDeltasFieldBuilder().getBuilder(index); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index) { if (bindingDeltasBuilder_ == null) { - return bindingDeltas_.get(index); - } else { + return bindingDeltas_.get(index); } else { return bindingDeltasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasOrBuilderList() { + public java.util.List + getBindingDeltasOrBuilderList() { if (bindingDeltasBuilder_ != null) { return bindingDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -969,8 +896,6 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int ind } } /** - * - * *
      * The delta for Bindings between two policies.
      * 
@@ -978,46 +903,38 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int ind * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder() { - return getBindingDeltasFieldBuilder() - .addBuilder(com.google.iam.v1.BindingDelta.getDefaultInstance()); + return getBindingDeltasFieldBuilder().addBuilder( + com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder(int index) { - return getBindingDeltasFieldBuilder() - .addBuilder(index, com.google.iam.v1.BindingDelta.getDefaultInstance()); + public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( + int index) { + return getBindingDeltasFieldBuilder().addBuilder( + index, com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** - * - * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List getBindingDeltasBuilderList() { + public java.util.List + getBindingDeltasBuilderList() { return getBindingDeltasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder> + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> getBindingDeltasFieldBuilder() { if (bindingDeltasBuilder_ == null) { - bindingDeltasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, - com.google.iam.v1.BindingDelta.Builder, - com.google.iam.v1.BindingDeltaOrBuilder>( + bindingDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder>( bindingDeltas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1028,25 +945,18 @@ public java.util.List getBindingDeltasBu } private java.util.List auditConfigDeltas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAuditConfigDeltasIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = - new java.util.ArrayList(auditConfigDeltas_); + auditConfigDeltas_ = new java.util.ArrayList(auditConfigDeltas_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder> - auditConfigDeltasBuilder_; + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> auditConfigDeltasBuilder_; /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1061,8 +971,6 @@ public java.util.List getAuditConfigDeltasLi } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1077,8 +985,6 @@ public int getAuditConfigDeltasCount() { } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1093,15 +999,14 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder setAuditConfigDeltas( + int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1115,8 +1020,6 @@ public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1135,8 +1038,6 @@ public Builder setAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1157,15 +1058,14 @@ public Builder addAuditConfigDeltas(com.google.iam.v1.AuditConfigDelta value) { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder addAuditConfigDeltas( + int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1179,8 +1079,6 @@ public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelt return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1199,8 +1097,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1219,8 +1115,6 @@ public Builder addAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1231,7 +1125,8 @@ public Builder addAllAuditConfigDeltas( java.lang.Iterable values) { if (auditConfigDeltasBuilder_ == null) { ensureAuditConfigDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, auditConfigDeltas_); onChanged(); } else { auditConfigDeltasBuilder_.addAllMessages(values); @@ -1239,8 +1134,6 @@ public Builder addAllAuditConfigDeltas( return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1258,8 +1151,6 @@ public Builder clearAuditConfigDeltas() { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1277,44 +1168,39 @@ public Builder removeAuditConfigDeltas(int index) { return this; } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder(int index) { + public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder( + int index) { return getAuditConfigDeltasFieldBuilder().getBuilder(index); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index) { if (auditConfigDeltasBuilder_ == null) { - return auditConfigDeltas_.get(index); - } else { + return auditConfigDeltas_.get(index); } else { return auditConfigDeltasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasOrBuilderList() { + public java.util.List + getAuditConfigDeltasOrBuilderList() { if (auditConfigDeltasBuilder_ != null) { return auditConfigDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -1322,8 +1208,6 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1331,47 +1215,38 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder() { - return getAuditConfigDeltasFieldBuilder() - .addBuilder(com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + return getAuditConfigDeltasFieldBuilder().addBuilder( + com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(int index) { - return getAuditConfigDeltasFieldBuilder() - .addBuilder(index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( + int index) { + return getAuditConfigDeltasFieldBuilder().addBuilder( + index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** - * - * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasBuilderList() { + public java.util.List + getAuditConfigDeltasBuilderList() { return getAuditConfigDeltasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder> + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> getAuditConfigDeltasFieldBuilder() { if (auditConfigDeltasBuilder_ == null) { - auditConfigDeltasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, - com.google.iam.v1.AuditConfigDelta.Builder, - com.google.iam.v1.AuditConfigDeltaOrBuilder>( + auditConfigDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder>( auditConfigDeltas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1380,9 +1255,9 @@ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(in } return auditConfigDeltasBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1392,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.PolicyDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.PolicyDelta) private static final com.google.iam.v1.PolicyDelta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.PolicyDelta(); } @@ -1406,16 +1281,16 @@ public static com.google.iam.v1.PolicyDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1430,4 +1305,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.PolicyDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java similarity index 71% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index fd3e1c0d..4deb8c1b 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyDeltaOrBuilder - extends +public interface PolicyDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.PolicyDelta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List getBindingDeltasList(); + java.util.List + getBindingDeltasList(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -44,8 +25,6 @@ public interface PolicyDeltaOrBuilder */ com.google.iam.v1.BindingDelta getBindingDeltas(int index); /** - * - * *
    * The delta for Bindings between two policies.
    * 
@@ -54,39 +33,34 @@ public interface PolicyDeltaOrBuilder */ int getBindingDeltasCount(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List getBindingDeltasOrBuilderList(); + java.util.List + getBindingDeltasOrBuilderList(); /** - * - * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index); + com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( + int index); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List getAuditConfigDeltasList(); + java.util.List + getAuditConfigDeltasList(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -95,8 +69,6 @@ public interface PolicyDeltaOrBuilder */ com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -105,24 +77,21 @@ public interface PolicyDeltaOrBuilder */ int getAuditConfigDeltasCount(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List + java.util.List getAuditConfigDeltasOrBuilderList(); /** - * - * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index); + com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( + int index); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java new file mode 100644 index 00000000..70e913de --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java @@ -0,0 +1,184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public interface PolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.Policy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies the format of the policy.
+   * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+   * are rejected.
+   * Any operation that affects conditional role bindings must specify version
+   * `3`. This requirement applies to the following operations:
+   * * Getting a policy that includes a conditional role binding
+   * * Adding a conditional role binding to a policy
+   * * Changing a conditional role binding in a policy
+   * * Removing any role binding, with or without a condition, from a policy
+   *   that includes conditions
+   * **Important:** If you use IAM Conditions, you must include the `etag` field
+   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+   * you to overwrite a version `3` policy with a version `1` policy, and all of
+   * the conditions in the version `3` policy are lost.
+   * If a policy does not include any conditions, operations on that policy may
+   * specify any valid version or leave the field unset.
+   * To learn which resources support conditions in their IAM policies, see the
+   * [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+   * 
+ * + * int32 version = 1; + * @return The version. + */ + int getVersion(); + + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + java.util.List + getBindingsList(); + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + com.google.iam.v1.Binding getBindings(int index); + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + int getBindingsCount(); + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + java.util.List + getBindingsOrBuilderList(); + /** + *
+   * Associates a list of `members`, or principals, with a `role`. Optionally,
+   * may specify a `condition` that determines how and when the `bindings` are
+   * applied. Each of the `bindings` must contain at least one principal.
+   * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
+   * of these principals can be Google groups. Each occurrence of a principal
+   * counts towards these limits. For example, if the `bindings` grant 50
+   * different roles to `user:alice@example.com`, and not to any other
+   * principal, then you can add another 1,450 principals to the `bindings` in
+   * the `Policy`.
+   * 
+ * + * repeated .google.iam.v1.Binding bindings = 4; + */ + com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( + int index); + + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + java.util.List + getAuditConfigsList(); + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + com.google.iam.v1.AuditConfig getAuditConfigs(int index); + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + int getAuditConfigsCount(); + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + java.util.List + getAuditConfigsOrBuilderList(); + /** + *
+   * Specifies cloud audit logging configuration for this policy.
+   * 
+ * + * repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( + int index); + + /** + *
+   * `etag` is used for optimistic concurrency control as a way to help
+   * prevent simultaneous updates of a policy from overwriting each other.
+   * It is strongly suggested that systems make use of the `etag` in the
+   * read-modify-write cycle to perform policy updates in order to avoid race
+   * conditions: An `etag` is returned in the response to `getIamPolicy`, and
+   * systems are expected to put that etag in the request to `setIamPolicy` to
+   * ensure that their change will be applied to the same version of the policy.
+   * **Important:** If you use IAM Conditions, you must include the `etag` field
+   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+   * you to overwrite a version `3` policy with a version `1` policy, and all of
+   * the conditions in the version `3` policy are lost.
+   * 
+ * + * bytes etag = 3; + * @return The etag. + */ + com.google.protobuf.ByteString getEtag(); +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java new file mode 100644 index 00000000..37ca956d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public final class PolicyProto { + private PolicyProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Policy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Binding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Binding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditLogConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_PolicyDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_BindingDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfigDelta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032google/iam/v1/policy.proto\022\rgoogle.iam" + + ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" + + "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" + + "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" + + "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" + + "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" + + " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" + + "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" + + "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" + + "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" + + "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" + + ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" + + "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" + + "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" + + "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" + + ".google.iam.v1.BindingDelta\022<\n\023audit_con" + + "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" + + "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" + + "(\0162\".google.iam.v1.BindingDelta.Action\022\014" + + "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" + + "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" + + "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" + + "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" + + ".google.iam.v1.AuditConfigDelta.Action\022\017" + + "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" + + "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" + + "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" + + "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" + + "olang.org/genproto/googleapis/iam/v1;iam" + + "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" + + "\\Iam\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v1_Policy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_Policy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Policy_descriptor, + new java.lang.String[] { "Version", "Bindings", "AuditConfigs", "Etag", }); + internal_static_google_iam_v1_Binding_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Binding_descriptor, + new java.lang.String[] { "Role", "Members", "Condition", }); + internal_static_google_iam_v1_AuditConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfig_descriptor, + new java.lang.String[] { "Service", "AuditLogConfigs", }); + internal_static_google_iam_v1_AuditLogConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditLogConfig_descriptor, + new java.lang.String[] { "LogType", "ExemptedMembers", }); + internal_static_google_iam_v1_PolicyDelta_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_PolicyDelta_descriptor, + new java.lang.String[] { "BindingDeltas", "AuditConfigDeltas", }); + internal_static_google_iam_v1_BindingDelta_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_BindingDelta_descriptor, + new java.lang.String[] { "Action", "Role", "Member", "Condition", }); + internal_static_google_iam_v1_AuditConfigDelta_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfigDelta_descriptor, + new java.lang.String[] { "Action", "Service", "ExemptedMember", "LogType", }); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java similarity index 56% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 91de98ad..0dc41a6f 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Request message for `SetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ -public final class SetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.SetIamPolicyRequest) SetIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetIamPolicyRequest.newBuilder() to construct. private SetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SetIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,79 @@ private SetIamPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; + resource_ = s; + break; + } + case 18: { + 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(); } - case 18: - { - 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; + + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, - com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -147,32 +134,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -183,8 +168,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -193,7 +176,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -201,8 +183,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -211,7 +191,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ @java.lang.Override @@ -219,8 +198,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -235,8 +212,54 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     return getPolicy();
   }
 
-  private byte memoizedIsInitialized = -1;
+  public static final int UPDATE_MASK_FIELD_NUMBER = 3;
+  private com.google.protobuf.FieldMask updateMask_;
+  /**
+   * 
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,13 +271,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } if (policy_ != null) { output.writeMessage(2, getPolicy()); } + if (updateMask_ != null) { + output.writeMessage(3, getUpdateMask()); + } unknownFields.writeTo(output); } @@ -268,7 +295,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,17 +310,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.SetIamPolicyRequest)) { return super.equals(obj); } com.google.iam.v1.SetIamPolicyRequest other = (com.google.iam.v1.SetIamPolicyRequest) obj; - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -307,131 +346,127 @@ public int hashCode() { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.SetIamPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.iam.v1.SetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.iam.v1.SetIamPolicyRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.SetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.SetIamPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.SetIamPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.SetIamPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `SetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.SetIamPolicyRequest) com.google.iam.v1.SetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, - com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() @@ -439,15 +474,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(); @@ -459,13 +495,19 @@ public Builder clear() { policy_ = null; policyBuilder_ = null; } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override @@ -484,14 +526,18 @@ public com.google.iam.v1.SetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.SetIamPolicyRequest buildPartial() { - com.google.iam.v1.SetIamPolicyRequest result = - new com.google.iam.v1.SetIamPolicyRequest(this); + com.google.iam.v1.SetIamPolicyRequest result = new com.google.iam.v1.SetIamPolicyRequest(this); result.resource_ = resource_; if (policyBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = policyBuilder_.build(); } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } onBuilt(); return result; } @@ -500,39 +546,38 @@ public com.google.iam.v1.SetIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.SetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.SetIamPolicyRequest) other); + return mergeFrom((com.google.iam.v1.SetIamPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -548,6 +593,9 @@ public Builder mergeFrom(com.google.iam.v1.SetIamPolicyRequest other) { if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -579,23 +627,19 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -604,24 +648,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -629,70 +670,57 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -700,13 +728,8 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -715,15 +738,12 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -732,7 +752,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -743,8 +762,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -768,8 +785,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -779,7 +794,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(
+        com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
         onChanged();
@@ -790,8 +806,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -804,7 +818,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;
         }
@@ -816,8 +831,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -839,8 +852,6 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -851,13 +862,11 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -871,12 +880,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ?
+            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
-     *
-     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -887,23 +895,203 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy,
-            com.google.iam.v1.Policy.Builder,
-            com.google.iam.v1.PolicyOrBuilder>
+        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.iam.v1.Policy,
-                com.google.iam.v1.Policy.Builder,
-                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
+        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
+                getPolicy(),
+                getParentForChildren(),
+                isClean());
         policy_ = null;
       }
       return policyBuilder_;
     }
 
+    private com.google.protobuf.FieldMask updateMask_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+    /**
+     * 
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+     * the fields in the mask will be modified. If no mask is provided, the
+     * following default mask is used:
+     * `paths: "bindings, etag"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.SetIamPolicyRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.SetIamPolicyRequest) private static final com.google.iam.v1.SetIamPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.SetIamPolicyRequest(); } @@ -927,16 +1115,16 @@ public static com.google.iam.v1.SetIamPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetIamPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetIamPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetIamPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetIamPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +1139,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.SetIamPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java similarity index 57% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java index 135cf6dc..e13b8ea2 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface SetIamPolicyRequestOrBuilder - extends +public interface SetIamPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.SetIamPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -65,13 +38,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -80,13 +50,10 @@ public interface SetIamPolicyRequestOrBuilder
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -97,4 +64,40 @@ public interface SetIamPolicyRequestOrBuilder
    * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
    */
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
+
+  /**
+   * 
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
+   * the fields in the mask will be modified. If no mask is provided, the
+   * following default mask is used:
+   * `paths: "bindings, etag"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java similarity index 72% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java index 5fdcc731..2df2bd3d 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Request message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ -public final class TestIamPermissionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TestIamPermissionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsRequest) TestIamPermissionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TestIamPermissionsRequest.newBuilder() to construct. private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TestIamPermissionsRequest() { resource_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private TestIamPermissionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TestIamPermissionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private TestIamPermissionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(s); - break; + resource_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + permissions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + permissions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -110,36 +92,28 @@ private TestIamPermissionsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, - com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int PERMISSIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList permissions_; /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -194,15 +164,13 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -211,15 +179,12 @@ public com.google.protobuf.ProtocolStringList getPermissionsList() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -228,7 +193,6 @@ public int getPermissionsCount() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -236,8 +200,6 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -246,16 +208,15 @@ public java.lang.String getPermissions(int index) {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -302,16 +264,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.TestIamPermissionsRequest)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsRequest other = - (com.google.iam.v1.TestIamPermissionsRequest) obj; + com.google.iam.v1.TestIamPermissionsRequest other = (com.google.iam.v1.TestIamPermissionsRequest) obj; - if (!getResource().equals(other.getResource())) return false; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,127 +297,118 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.TestIamPermissionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.TestIamPermissionsRequest) com.google.iam.v1.TestIamPermissionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, - com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsRequest.newBuilder() @@ -462,15 +416,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override @@ -503,8 +458,7 @@ public com.google.iam.v1.TestIamPermissionsRequest build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { - com.google.iam.v1.TestIamPermissionsRequest result = - new com.google.iam.v1.TestIamPermissionsRequest(this); + com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); int from_bitField0_ = bitField0_; result.resource_ = resource_; if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +474,38 @@ public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.TestIamPermissionsRequest) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest) other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest)other); } else { super.mergeFrom(other); return this; @@ -603,28 +556,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -633,24 +581,21 @@ public java.lang.String getResource() { } } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -658,87 +603,70 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -747,15 +675,13 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -764,15 +690,12 @@ public com.google.protobuf.ProtocolStringList getPermissionsList() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -781,7 +704,6 @@ public int getPermissionsCount() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -789,8 +711,6 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -799,16 +719,14 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -817,23 +735,21 @@ public com.google.protobuf.ByteString getPermissionsBytes(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { + public Builder setPermissions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -842,22 +758,20 @@ public Builder setPermissions(int index, java.lang.String value) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { + public Builder addPermissions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -866,19 +780,18 @@ public Builder addPermissions(java.lang.String value) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -887,7 +800,6 @@ public Builder addAllPermissions(java.lang.Iterable values) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -897,8 +809,6 @@ public Builder clearPermissions() { return this; } /** - * - * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -907,23 +817,23 @@ public Builder clearPermissions() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,12 +843,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsRequest) private static final com.google.iam.v1.TestIamPermissionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsRequest(); } @@ -947,16 +857,16 @@ public static com.google.iam.v1.TestIamPermissionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TestIamPermissionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestIamPermissionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -971,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java similarity index 68% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 53b56f27..262da448 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsRequestOrBuilder - extends +public interface TestIamPermissionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -65,13 +38,11 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -80,13 +51,10 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -95,14 +63,11 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -111,9 +76,9 @@ public interface TestIamPermissionsRequestOrBuilder
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java similarity index 71% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index 50400d50..f80a14c3 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** - * - * *
  * Response message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ -public final class TestIamPermissionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TestIamPermissionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsResponse) TestIamPermissionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TestIamPermissionsResponse.newBuilder() to construct. private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TestIamPermissionsResponse() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TestIamPermissionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private TestIamPermissionsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + permissions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + permissions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -102,64 +85,53 @@ private TestIamPermissionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, - com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -167,24 +139,21 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +165,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -225,15 +195,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.TestIamPermissionsResponse)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsResponse other = - (com.google.iam.v1.TestIamPermissionsResponse) obj; + com.google.iam.v1.TestIamPermissionsResponse other = (com.google.iam.v1.TestIamPermissionsResponse) obj; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -254,127 +224,118 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.v1.TestIamPermissionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.iam.v1.TestIamPermissionsResponse) com.google.iam.v1.TestIamPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, - com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsResponse.newBuilder() @@ -382,15 +343,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(); @@ -400,9 +362,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto - .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override @@ -421,8 +383,7 @@ public com.google.iam.v1.TestIamPermissionsResponse build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { - com.google.iam.v1.TestIamPermissionsResponse result = - new com.google.iam.v1.TestIamPermissionsResponse(this); + com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -437,39 +398,38 @@ public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.TestIamPermissionsResponse) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse) other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse)other); } else { super.mergeFrom(other); return this; @@ -516,58 +476,47 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -575,95 +524,85 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { + public Builder setPermissions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { + public Builder addPermissions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -673,31 +612,29 @@ public Builder clearPermissions() { return this; } /** - * - * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,12 +644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsResponse) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsResponse) private static final com.google.iam.v1.TestIamPermissionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsResponse(); } @@ -721,16 +658,16 @@ public static com.google.iam.v1.TestIamPermissionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TestIamPermissionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestIamPermissionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -745,4 +682,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java similarity index 61% rename from proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index da677cbe..ace164f5 100644 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -1,80 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsResponseOrBuilder - extends +public interface TestIamPermissionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java deleted file mode 100644 index f51272f7..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/policy.proto - -package com.google.iam.v1; - -public interface BindingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.iam.v1.Binding) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Role that is assigned to `members`.
-   * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
-   * 
- * - * string role = 1; - * - * @return The role. - */ - java.lang.String getRole(); - /** - * - * - *
-   * Role that is assigned to `members`.
-   * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
-   * 
- * - * string role = 1; - * - * @return The bytes for role. - */ - com.google.protobuf.ByteString getRoleBytes(); - - /** - * - * - *
-   * Specifies the identities requesting access for a Cloud Platform resource.
-   * `members` can have the following values:
-   * * `allUsers`: A special identifier that represents anyone who is
-   *    on the internet; with or without a Google account.
-   * * `allAuthenticatedUsers`: A special identifier that represents anyone
-   *    who is authenticated with a Google account or a service account.
-   * * `user:{emailid}`: An email address that represents a specific Google
-   *    account. For example, `alice@example.com` .
-   * * `serviceAccount:{emailid}`: An email address that represents a service
-   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
-   * * `group:{emailid}`: An email address that represents a Google group.
-   *    For example, `admins@example.com`.
-   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
-   *    users of that domain. For example, `google.com` or `example.com`.
-   * 
- * - * repeated string members = 2; - * - * @return A list containing the members. - */ - java.util.List getMembersList(); - /** - * - * - *
-   * Specifies the identities requesting access for a Cloud Platform resource.
-   * `members` can have the following values:
-   * * `allUsers`: A special identifier that represents anyone who is
-   *    on the internet; with or without a Google account.
-   * * `allAuthenticatedUsers`: A special identifier that represents anyone
-   *    who is authenticated with a Google account or a service account.
-   * * `user:{emailid}`: An email address that represents a specific Google
-   *    account. For example, `alice@example.com` .
-   * * `serviceAccount:{emailid}`: An email address that represents a service
-   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
-   * * `group:{emailid}`: An email address that represents a Google group.
-   *    For example, `admins@example.com`.
-   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
-   *    users of that domain. For example, `google.com` or `example.com`.
-   * 
- * - * repeated string members = 2; - * - * @return The count of members. - */ - int getMembersCount(); - /** - * - * - *
-   * Specifies the identities requesting access for a Cloud Platform resource.
-   * `members` can have the following values:
-   * * `allUsers`: A special identifier that represents anyone who is
-   *    on the internet; with or without a Google account.
-   * * `allAuthenticatedUsers`: A special identifier that represents anyone
-   *    who is authenticated with a Google account or a service account.
-   * * `user:{emailid}`: An email address that represents a specific Google
-   *    account. For example, `alice@example.com` .
-   * * `serviceAccount:{emailid}`: An email address that represents a service
-   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
-   * * `group:{emailid}`: An email address that represents a Google group.
-   *    For example, `admins@example.com`.
-   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
-   *    users of that domain. For example, `google.com` or `example.com`.
-   * 
- * - * repeated string members = 2; - * - * @param index The index of the element to return. - * @return The members at the given index. - */ - java.lang.String getMembers(int index); - /** - * - * - *
-   * Specifies the identities requesting access for a Cloud Platform resource.
-   * `members` can have the following values:
-   * * `allUsers`: A special identifier that represents anyone who is
-   *    on the internet; with or without a Google account.
-   * * `allAuthenticatedUsers`: A special identifier that represents anyone
-   *    who is authenticated with a Google account or a service account.
-   * * `user:{emailid}`: An email address that represents a specific Google
-   *    account. For example, `alice@example.com` .
-   * * `serviceAccount:{emailid}`: An email address that represents a service
-   *    account. For example, `my-other-app@appspot.gserviceaccount.com`.
-   * * `group:{emailid}`: An email address that represents a Google group.
-   *    For example, `admins@example.com`.
-   * * `domain:{domain}`: The G Suite domain (primary) that represents all the
-   *    users of that domain. For example, `google.com` or `example.com`.
-   * 
- * - * repeated string members = 2; - * - * @param index The index of the value to return. - * @return The bytes of the members at the given index. - */ - com.google.protobuf.ByteString getMembersBytes(int index); - - /** - * - * - *
-   * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
-   * 
- * - * .google.type.Expr condition = 3; - * - * @return Whether the condition field is set. - */ - boolean hasCondition(); - /** - * - * - *
-   * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
-   * 
- * - * .google.type.Expr condition = 3; - * - * @return The condition. - */ - com.google.type.Expr getCondition(); - /** - * - * - *
-   * The condition that is associated with this binding.
-   * NOTE: An unsatisfied condition will not allow user access via current
-   * binding. Different bindings, including their conditions, are examined
-   * independently.
-   * 
- * - * .google.type.Expr condition = 3; - */ - com.google.type.ExprOrBuilder getConditionOrBuilder(); -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java deleted file mode 100644 index ea37a837..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/options.proto - -package com.google.iam.v1; - -public interface GetPolicyOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.iam.v1.GetPolicyOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The policy format version to be returned.
-   * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-   * rejected.
-   * Requests for policies with any conditional bindings must specify version 3.
-   * Policies without any conditional bindings may specify any valid value or
-   * leave the field unset.
-   * 
- * - * int32 requested_policy_version = 1; - * - * @return The requestedPolicyVersion. - */ - int getRequestedPolicyVersion(); -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java deleted file mode 100644 index 088dcca0..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/iam_policy.proto - -package com.google.iam.v1; - -public final class IamPolicyProto { - private IamPolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\036google/iam/v1/iam_policy.proto\022\rgoogle" - + ".iam.v1\032\033google/iam/v1/options.proto\032\032go" - + "ogle/iam/v1/policy.proto\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\"^\n\023SetIamPolicyReque" - + "st\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006polic" - + "y\030\002 \001(\0132\025.google.iam.v1.PolicyB\003\340A\002\"d\n\023G" - + "etIamPolicyRequest\022\033\n\010resource\030\001 \001(\tB\t\340A" - + "\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.iam.v1" - + ".GetPolicyOptions\"R\n\031TestIamPermissionsR" - + "equest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022\030\n\013p" - + "ermissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPermissi" - + "onsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n\tIAM" - + "Policy\022t\n\014SetIamPolicy\022\".google.iam.v1.S" - + "etIamPolicyRequest\032\025.google.iam.v1.Polic" - + "y\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamPolic" - + "y:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1.Get" - + "IamPolicyRequest\032\025.google.iam.v1.Policy\"" - + ")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPolicy:" - + "\001*\022\232\001\n\022TestIamPermissions\022(.google.iam.v" - + "1.TestIamPermissionsRequest\032).google.iam" - + ".v1.TestIamPermissionsResponse\"/\202\323\344\223\002)\"$" - + "/v1/{resource=**}:testIamPermissions:\001*\032" - + "\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021com." - + "google.iam.v1B\016IamPolicyProtoP\001Z0google." - + "golang.org/genproto/googleapis/iam/v1;ia" - + "m\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clou" - + "d\\Iam\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.iam.v1.OptionsProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, - new java.lang.String[] { - "Resource", "Policy", - }); - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, - new java.lang.String[] { - "Resource", "Options", - }); - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, - new java.lang.String[] { - "Resource", "Permissions", - }); - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, - new java.lang.String[] { - "Permissions", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.iam.v1.OptionsProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java deleted file mode 100644 index 02274d0d..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/options.proto - -package com.google.iam.v1; - -public final class OptionsProto { - private OptionsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_GetPolicyOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\033google/iam/v1/options.proto\022\rgoogle.ia" - + "m.v1\032\034google/api/annotations.proto\"4\n\020Ge" - + "tPolicyOptions\022 \n\030requested_policy_versi" - + "on\030\001 \001(\005B\204\001\n\021com.google.iam.v1B\014OptionsP" - + "rotoP\001Z0google.golang.org/genproto/googl" - + "eapis/iam/v1;iam\370\001\001\252\002\023Google.Cloud.Iam.V" - + "1\312\002\023Google\\Cloud\\Iam\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_iam_v1_GetPolicyOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_GetPolicyOptions_descriptor, - new java.lang.String[] { - "RequestedPolicyVersion", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java deleted file mode 100644 index 3cda12f1..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ /dev/null @@ -1,1336 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/policy.proto - -package com.google.iam.v1; - -/** - * - * - *
- * Defines an Identity and Access Management (IAM) policy. It is used to
- * specify access control policies for Cloud Platform resources.
- * A `Policy` is a collection of `bindings`. A `binding` binds one or more
- * `members` to a single `role`. Members can be user accounts, service accounts,
- * Google groups, and domains (such as G Suite). A `role` is a named list of
- * permissions (defined by IAM or configured by users). A `binding` can
- * optionally specify a `condition`, which is a logic expression that further
- * constrains the role binding based on attributes about the request and/or
- * target resource.
- * **JSON Example**
- *     {
- *       "bindings": [
- *         {
- *           "role": "roles/resourcemanager.organizationAdmin",
- *           "members": [
- *             "user:mike@example.com",
- *             "group:admins@example.com",
- *             "domain:google.com",
- *             "serviceAccount:my-project-id@appspot.gserviceaccount.com"
- *           ]
- *         },
- *         {
- *           "role": "roles/resourcemanager.organizationViewer",
- *           "members": ["user:eve@example.com"],
- *           "condition": {
- *             "title": "expirable access",
- *             "description": "Does not grant access after Sep 2020",
- *             "expression": "request.time <
- *             timestamp('2020-10-01T00:00:00.000Z')",
- *           }
- *         }
- *       ]
- *     }
- * **YAML Example**
- *     bindings:
- *     - members:
- *       - user:mike@example.com
- *       - group:admins@example.com
- *       - domain:google.com
- *       - serviceAccount:my-project-id@appspot.gserviceaccount.com
- *       role: roles/resourcemanager.organizationAdmin
- *     - members:
- *       - user:eve@example.com
- *       role: roles/resourcemanager.organizationViewer
- *       condition:
- *         title: expirable access
- *         description: Does not grant access after Sep 2020
- *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
- * For a description of IAM and its features, see the
- * [IAM developer's guide](https://cloud.google.com/iam/docs).
- * 
- * - * Protobuf type {@code google.iam.v1.Policy} - */ -public final class Policy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.iam.v1.Policy) - PolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use Policy.newBuilder() to construct. - private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Policy() { - bindings_ = java.util.Collections.emptyList(); - etag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Policy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Policy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - version_ = input.readInt32(); - break; - } - case 26: - { - etag_ = input.readBytes(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bindings_.add( - input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.v1.Policy.class, com.google.iam.v1.Policy.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - * - * - *
-   * Specifies the format of the policy.
-   * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-   * rejected.
-   * Operations affecting conditional bindings must specify version 3. This can
-   * be either setting a conditional policy, modifying a conditional binding,
-   * or removing a binding (conditional or unconditional) from the stored
-   * conditional policy.
-   * Operations on non-conditional policies may specify any valid value or
-   * leave the field unset.
-   * If no etag is provided in the call to `setIamPolicy`, version compliance
-   * checks against the stored policy is skipped.
-   * 
- * - * int32 version = 1; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int BINDINGS_FIELD_NUMBER = 4; - private java.util.List bindings_; - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - @java.lang.Override - public java.util.List getBindingsList() { - return bindings_; - } - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - @java.lang.Override - public java.util.List getBindingsOrBuilderList() { - return bindings_; - } - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - @java.lang.Override - public int getBindingsCount() { - return bindings_.size(); - } - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - @java.lang.Override - public com.google.iam.v1.Binding getBindings(int index) { - return bindings_.get(index); - } - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - @java.lang.Override - public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) { - return bindings_.get(index); - } - - public static final int ETAG_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString etag_; - /** - * - * - *
-   * `etag` is used for optimistic concurrency control as a way to help
-   * prevent simultaneous updates of a policy from overwriting each other.
-   * It is strongly suggested that systems make use of the `etag` in the
-   * read-modify-write cycle to perform policy updates in order to avoid race
-   * conditions: An `etag` is returned in the response to `getIamPolicy`, and
-   * systems are expected to put that etag in the request to `setIamPolicy` to
-   * ensure that their change will be applied to the same version of the policy.
-   * If no `etag` is provided in the call to `setIamPolicy`, then the existing
-   * policy is overwritten. Due to blind-set semantics of an etag-less policy,
-   * 'setIamPolicy' will not fail even if the incoming policy version does not
-   * meet the requirements for modifying the stored policy.
-   * 
- * - * bytes etag = 3; - * - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (version_ != 0) { - output.writeInt32(1, version_); - } - if (!etag_.isEmpty()) { - output.writeBytes(3, etag_); - } - for (int i = 0; i < bindings_.size(); i++) { - output.writeMessage(4, bindings_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); - } - if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, etag_); - } - for (int i = 0; i < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, bindings_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.v1.Policy)) { - return super.equals(obj); - } - com.google.iam.v1.Policy other = (com.google.iam.v1.Policy) obj; - - if (getVersion() != other.getVersion()) return false; - if (!getBindingsList().equals(other.getBindingsList())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (getBindingsCount() > 0) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getBindingsList().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.v1.Policy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.iam.v1.Policy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.iam.v1.Policy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.iam.v1.Policy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.iam.v1.Policy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.iam.v1.Policy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.iam.v1.Policy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Defines an Identity and Access Management (IAM) policy. It is used to
-   * specify access control policies for Cloud Platform resources.
-   * A `Policy` is a collection of `bindings`. A `binding` binds one or more
-   * `members` to a single `role`. Members can be user accounts, service accounts,
-   * Google groups, and domains (such as G Suite). A `role` is a named list of
-   * permissions (defined by IAM or configured by users). A `binding` can
-   * optionally specify a `condition`, which is a logic expression that further
-   * constrains the role binding based on attributes about the request and/or
-   * target resource.
-   * **JSON Example**
-   *     {
-   *       "bindings": [
-   *         {
-   *           "role": "roles/resourcemanager.organizationAdmin",
-   *           "members": [
-   *             "user:mike@example.com",
-   *             "group:admins@example.com",
-   *             "domain:google.com",
-   *             "serviceAccount:my-project-id@appspot.gserviceaccount.com"
-   *           ]
-   *         },
-   *         {
-   *           "role": "roles/resourcemanager.organizationViewer",
-   *           "members": ["user:eve@example.com"],
-   *           "condition": {
-   *             "title": "expirable access",
-   *             "description": "Does not grant access after Sep 2020",
-   *             "expression": "request.time <
-   *             timestamp('2020-10-01T00:00:00.000Z')",
-   *           }
-   *         }
-   *       ]
-   *     }
-   * **YAML Example**
-   *     bindings:
-   *     - members:
-   *       - user:mike@example.com
-   *       - group:admins@example.com
-   *       - domain:google.com
-   *       - serviceAccount:my-project-id@appspot.gserviceaccount.com
-   *       role: roles/resourcemanager.organizationAdmin
-   *     - members:
-   *       - user:eve@example.com
-   *       role: roles/resourcemanager.organizationViewer
-   *       condition:
-   *         title: expirable access
-   *         description: Does not grant access after Sep 2020
-   *         expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
-   * For a description of IAM and its features, see the
-   * [IAM developer's guide](https://cloud.google.com/iam/docs).
-   * 
- * - * Protobuf type {@code google.iam.v1.Policy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy) - com.google.iam.v1.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.v1.Policy.class, com.google.iam.v1.Policy.Builder.class); - } - - // Construct using com.google.iam.v1.Policy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBindingsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - bindingsBuilder_.clear(); - } - etag_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor; - } - - @java.lang.Override - public com.google.iam.v1.Policy getDefaultInstanceForType() { - return com.google.iam.v1.Policy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.v1.Policy build() { - com.google.iam.v1.Policy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.v1.Policy buildPartial() { - com.google.iam.v1.Policy result = new com.google.iam.v1.Policy(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - if (bindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bindings_ = bindings_; - } else { - result.bindings_ = bindingsBuilder_.build(); - } - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.v1.Policy) { - return mergeFrom((com.google.iam.v1.Policy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.v1.Policy other) { - if (other == com.google.iam.v1.Policy.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (bindingsBuilder_ == null) { - if (!other.bindings_.isEmpty()) { - if (bindings_.isEmpty()) { - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBindingsIsMutable(); - bindings_.addAll(other.bindings_); - } - onChanged(); - } - } else { - if (!other.bindings_.isEmpty()) { - if (bindingsBuilder_.isEmpty()) { - bindingsBuilder_.dispose(); - bindingsBuilder_ = null; - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - bindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBindingsFieldBuilder() - : null; - } else { - bindingsBuilder_.addAllMessages(other.bindings_); - } - } - } - if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { - setEtag(other.getEtag()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.v1.Policy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.v1.Policy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int version_; - /** - * - * - *
-     * Specifies the format of the policy.
-     * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-     * rejected.
-     * Operations affecting conditional bindings must specify version 3. This can
-     * be either setting a conditional policy, modifying a conditional binding,
-     * or removing a binding (conditional or unconditional) from the stored
-     * conditional policy.
-     * Operations on non-conditional policies may specify any valid value or
-     * leave the field unset.
-     * If no etag is provided in the call to `setIamPolicy`, version compliance
-     * checks against the stored policy is skipped.
-     * 
- * - * int32 version = 1; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Specifies the format of the policy.
-     * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-     * rejected.
-     * Operations affecting conditional bindings must specify version 3. This can
-     * be either setting a conditional policy, modifying a conditional binding,
-     * or removing a binding (conditional or unconditional) from the stored
-     * conditional policy.
-     * Operations on non-conditional policies may specify any valid value or
-     * leave the field unset.
-     * If no etag is provided in the call to `setIamPolicy`, version compliance
-     * checks against the stored policy is skipped.
-     * 
- * - * int32 version = 1; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the format of the policy.
-     * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-     * rejected.
-     * Operations affecting conditional bindings must specify version 3. This can
-     * be either setting a conditional policy, modifying a conditional binding,
-     * or removing a binding (conditional or unconditional) from the stored
-     * conditional policy.
-     * Operations on non-conditional policies may specify any valid value or
-     * leave the field unset.
-     * If no etag is provided in the call to `setIamPolicy`, version compliance
-     * checks against the stored policy is skipped.
-     * 
- * - * int32 version = 1; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.util.List bindings_ = java.util.Collections.emptyList(); - - private void ensureBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(bindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder> - bindingsBuilder_; - - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public java.util.List getBindingsList() { - if (bindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(bindings_); - } else { - return bindingsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public int getBindingsCount() { - if (bindingsBuilder_ == null) { - return bindings_.size(); - } else { - return bindingsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public com.google.iam.v1.Binding getBindings(int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); - } else { - return bindingsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder setBindings(int index, com.google.iam.v1.Binding value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.set(index, value); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.set(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder addBindings(com.google.iam.v1.Binding value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(value); - onChanged(); - } else { - bindingsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder addBindings(int index, com.google.iam.v1.Binding value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(index, value); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder addAllBindings(java.lang.Iterable values) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_); - onChanged(); - } else { - bindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder clearBindings() { - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - bindingsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public Builder removeBindings(int index) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.remove(index); - onChanged(); - } else { - bindingsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) { - return getBindingsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); - } else { - return bindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public java.util.List getBindingsOrBuilderList() { - if (bindingsBuilder_ != null) { - return bindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bindings_); - } - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public com.google.iam.v1.Binding.Builder addBindingsBuilder() { - return getBindingsFieldBuilder().addBuilder(com.google.iam.v1.Binding.getDefaultInstance()); - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) { - return getBindingsFieldBuilder() - .addBuilder(index, com.google.iam.v1.Binding.getDefaultInstance()); - } - /** - * - * - *
-     * Associates a list of `members` to a `role`. Optionally may specify a
-     * `condition` that determines when binding is in effect.
-     * `bindings` with no members will result in an error.
-     * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - public java.util.List getBindingsBuilderList() { - return getBindingsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder> - getBindingsFieldBuilder() { - if (bindingsBuilder_ == null) { - bindingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder>( - bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - bindings_ = null; - } - return bindingsBuilder_; - } - - private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * `etag` is used for optimistic concurrency control as a way to help
-     * prevent simultaneous updates of a policy from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform policy updates in order to avoid race
-     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
-     * systems are expected to put that etag in the request to `setIamPolicy` to
-     * ensure that their change will be applied to the same version of the policy.
-     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
-     * policy is overwritten. Due to blind-set semantics of an etag-less policy,
-     * 'setIamPolicy' will not fail even if the incoming policy version does not
-     * meet the requirements for modifying the stored policy.
-     * 
- * - * bytes etag = 3; - * - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - /** - * - * - *
-     * `etag` is used for optimistic concurrency control as a way to help
-     * prevent simultaneous updates of a policy from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform policy updates in order to avoid race
-     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
-     * systems are expected to put that etag in the request to `setIamPolicy` to
-     * ensure that their change will be applied to the same version of the policy.
-     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
-     * policy is overwritten. Due to blind-set semantics of an etag-less policy,
-     * 'setIamPolicy' will not fail even if the incoming policy version does not
-     * meet the requirements for modifying the stored policy.
-     * 
- * - * bytes etag = 3; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `etag` is used for optimistic concurrency control as a way to help
-     * prevent simultaneous updates of a policy from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform policy updates in order to avoid race
-     * conditions: An `etag` is returned in the response to `getIamPolicy`, and
-     * systems are expected to put that etag in the request to `setIamPolicy` to
-     * ensure that their change will be applied to the same version of the policy.
-     * If no `etag` is provided in the call to `setIamPolicy`, then the existing
-     * policy is overwritten. Due to blind-set semantics of an etag-less policy,
-     * 'setIamPolicy' will not fail even if the incoming policy version does not
-     * meet the requirements for modifying the stored policy.
-     * 
- * - * bytes etag = 3; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) - } - - // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) - private static final com.google.iam.v1.Policy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.iam.v1.Policy(); - } - - public static com.google.iam.v1.Policy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.v1.Policy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java deleted file mode 100644 index 6be361f3..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/policy.proto - -package com.google.iam.v1; - -public interface PolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.iam.v1.Policy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the format of the policy.
-   * Valid values are 0, 1, and 3. Requests specifying an invalid value will be
-   * rejected.
-   * Operations affecting conditional bindings must specify version 3. This can
-   * be either setting a conditional policy, modifying a conditional binding,
-   * or removing a binding (conditional or unconditional) from the stored
-   * conditional policy.
-   * Operations on non-conditional policies may specify any valid value or
-   * leave the field unset.
-   * If no etag is provided in the call to `setIamPolicy`, version compliance
-   * checks against the stored policy is skipped.
-   * 
- * - * int32 version = 1; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - java.util.List getBindingsList(); - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - com.google.iam.v1.Binding getBindings(int index); - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - int getBindingsCount(); - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - java.util.List getBindingsOrBuilderList(); - /** - * - * - *
-   * Associates a list of `members` to a `role`. Optionally may specify a
-   * `condition` that determines when binding is in effect.
-   * `bindings` with no members will result in an error.
-   * 
- * - * repeated .google.iam.v1.Binding bindings = 4; - */ - com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index); - - /** - * - * - *
-   * `etag` is used for optimistic concurrency control as a way to help
-   * prevent simultaneous updates of a policy from overwriting each other.
-   * It is strongly suggested that systems make use of the `etag` in the
-   * read-modify-write cycle to perform policy updates in order to avoid race
-   * conditions: An `etag` is returned in the response to `getIamPolicy`, and
-   * systems are expected to put that etag in the request to `setIamPolicy` to
-   * ensure that their change will be applied to the same version of the policy.
-   * If no `etag` is provided in the call to `setIamPolicy`, then the existing
-   * policy is overwritten. Due to blind-set semantics of an etag-less policy,
-   * 'setIamPolicy' will not fail even if the incoming policy version does not
-   * meet the requirements for modifying the stored policy.
-   * 
- * - * bytes etag = 3; - * - * @return The etag. - */ - com.google.protobuf.ByteString getEtag(); -} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java deleted file mode 100644 index 2eee39d0..00000000 --- a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/v1/policy.proto - -package com.google.iam.v1; - -public final class PolicyProto { - private PolicyProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_Policy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_Binding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_Binding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_PolicyDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_BindingDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_v1_AuditConfigDelta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\032google/iam/v1/policy.proto\022\rgoogle.iam" - + ".v1\032\026google/type/expr.proto\032\034google/api/" - + "annotations.proto\"Q\n\006Policy\022\017\n\007version\030\001" - + " \001(\005\022(\n\010bindings\030\004 \003(\0132\026.google.iam.v1.B" - + "inding\022\014\n\004etag\030\003 \001(\014\"N\n\007Binding\022\014\n\004role\030" - + "\001 \001(\t\022\017\n\007members\030\002 \003(\t\022$\n\tcondition\030\003 \001(" - + "\0132\021.google.type.Expr\"\200\001\n\013PolicyDelta\0223\n\016" - + "binding_deltas\030\001 \003(\0132\033.google.iam.v1.Bin" - + "dingDelta\022<\n\023audit_config_deltas\030\002 \003(\0132\037" - + ".google.iam.v1.AuditConfigDelta\"\275\001\n\014Bind" - + "ingDelta\0222\n\006action\030\001 \001(\0162\".google.iam.v1" - + ".BindingDelta.Action\022\014\n\004role\030\002 \001(\t\022\016\n\006me" - + "mber\030\003 \001(\t\022$\n\tcondition\030\004 \001(\0132\021.google.t" - + "ype.Expr\"5\n\006Action\022\026\n\022ACTION_UNSPECIFIED" - + "\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\"\275\001\n\020AuditConfigD" - + "elta\0226\n\006action\030\001 \001(\0162&.google.iam.v1.Aud" - + "itConfigDelta.Action\022\017\n\007service\030\002 \001(\t\022\027\n" - + "\017exempted_member\030\003 \001(\t\022\020\n\010log_type\030\004 \001(\t" - + "\"5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000\022\007\n\003AD" - + "D\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021com.google.iam.v1B\013P" - + "olicyProtoP\001Z0google.golang.org/genproto" - + "/googleapis/iam/v1;iam\370\001\001\252\002\023Google.Cloud" - + ".Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.ExprProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_iam_v1_Policy_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_v1_Policy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_Policy_descriptor, - new java.lang.String[] { - "Version", "Bindings", "Etag", - }); - internal_static_google_iam_v1_Binding_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_v1_Binding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_Binding_descriptor, - new java.lang.String[] { - "Role", "Members", "Condition", - }); - internal_static_google_iam_v1_PolicyDelta_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_PolicyDelta_descriptor, - new java.lang.String[] { - "BindingDeltas", "AuditConfigDeltas", - }); - internal_static_google_iam_v1_BindingDelta_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_BindingDelta_descriptor, - new java.lang.String[] { - "Action", "Role", "Member", "Condition", - }); - internal_static_google_iam_v1_AuditConfigDelta_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_v1_AuditConfigDelta_descriptor, - new java.lang.String[] { - "Action", "Service", "ExemptedMember", "LogType", - }); - com.google.type.ExprProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From ca7d589e4468e7516142abf38eb000b1009433c9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 4 Apr 2022 20:19:38 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../java/com/google/iam/v1/IAMPolicyGrpc.java | 385 +++++++----- .../com/google/iam/v1/IamPolicyProto.java | 131 ---- .../java/com/google/iam/v1/OptionsProto.java | 52 -- .../java/com/google/iam/v1/PolicyProto.java | 144 ----- .../java/com/google/iam/v1/AuditConfig.java | 425 +++++++------ .../com/google/iam/v1/AuditConfigDelta.java | 569 +++++++++++------- .../iam/v1/AuditConfigDeltaOrBuilder.java | 51 +- .../google/iam/v1/AuditConfigOrBuilder.java | 45 +- .../com/google/iam/v1/AuditLogConfig.java | 441 ++++++++------ .../iam/v1/AuditLogConfigOrBuilder.java | 42 +- .../main/java/com/google/iam/v1/Binding.java | 466 ++++++++------ .../java/com/google/iam/v1/BindingDelta.java | 560 ++++++++++------- .../google/iam/v1/BindingDeltaOrBuilder.java | 50 +- .../com/google/iam/v1/BindingOrBuilder.java | 53 +- .../google/iam/v1/GetIamPolicyRequest.java | 421 ++++++++----- .../iam/v1/GetIamPolicyRequestOrBuilder.java | 43 +- .../com/google/iam/v1/GetPolicyOptions.java | 249 ++++---- .../iam/v1/GetPolicyOptionsOrBuilder.java | 21 +- .../com/google/iam/v1/IamPolicyProto.java | 149 +++++ .../java/com/google/iam/v1/OptionsProto.java | 65 ++ .../main/java/com/google/iam/v1/Policy.java | 567 ++++++++++------- .../java/com/google/iam/v1/PolicyDelta.java | 487 +++++++++------ .../google/iam/v1/PolicyDeltaOrBuilder.java | 55 +- .../com/google/iam/v1/PolicyOrBuilder.java | 62 +- .../java/com/google/iam/v1/PolicyProto.java | 161 +++++ .../google/iam/v1/SetIamPolicyRequest.java | 506 ++++++++++------ .../iam/v1/SetIamPolicyRequestOrBuilder.java | 51 +- .../iam/v1/TestIamPermissionsRequest.java | 440 ++++++++------ .../TestIamPermissionsRequestOrBuilder.java | 53 +- .../iam/v1/TestIamPermissionsResponse.java | 333 +++++----- .../TestIamPermissionsResponseOrBuilder.java | 36 +- 31 files changed, 4384 insertions(+), 2729 deletions(-) rename {owl-bot-staging/v1/grpc-google-iam-v1 => grpc-google-iam-v1}/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java (61%) delete mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java delete mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfig.java (78%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfigDelta.java (74%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditLogConfig.java (76%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/Binding.java (87%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/BindingDelta.java (75%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/BindingOrBuilder.java (92%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java (68%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetPolicyOptions.java (74%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java (64%) create mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java create mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/Policy.java (85%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/PolicyDelta.java (78%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/PolicyOrBuilder.java (86%) create mode 100644 proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java (73%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java (71%) rename {owl-bot-staging/v1/proto-google-iam-v1 => proto-google-iam-v1}/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java (61%) diff --git a/owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java b/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java similarity index 61% rename from owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java rename to grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java index 52377210..dc9f5653 100644 --- a/owl-bot-staging/v1/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java +++ b/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.iam.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * API Overview
  * Manages Identity and Access Management (IAM) policies.
@@ -35,144 +52,168 @@ private IAMPolicyGrpc() {}
   public static final String SERVICE_NAME = "google.iam.v1.IAMPolicy";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      getSetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
       requestType = com.google.iam.v1.SetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      getSetIamPolicyMethod() {
+    io.grpc.MethodDescriptor
+        getSetIamPolicyMethod;
     if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getSetIamPolicyMethod = IAMPolicyGrpc.getSetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.Policy.getDefaultInstance()))
-              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
-              .build();
+          IAMPolicyGrpc.getSetIamPolicyMethod =
+              getSetIamPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.Policy.getDefaultInstance()))
+                      .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("SetIamPolicy"))
+                      .build();
         }
       }
     }
     return getSetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      getGetIamPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
       requestType = com.google.iam.v1.GetIamPolicyRequest.class,
       responseType = com.google.iam.v1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      getGetIamPolicyMethod() {
+    io.grpc.MethodDescriptor
+        getGetIamPolicyMethod;
     if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getGetIamPolicyMethod = IAMPolicyGrpc.getGetIamPolicyMethod) == null) {
-          IAMPolicyGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.Policy.getDefaultInstance()))
-              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
-              .build();
+          IAMPolicyGrpc.getGetIamPolicyMethod =
+              getGetIamPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.Policy.getDefaultInstance()))
+                      .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("GetIamPolicy"))
+                      .build();
         }
       }
     }
     return getGetIamPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
+      getTestIamPermissionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
       requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
       responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
+      getTestIamPermissionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.iam.v1.TestIamPermissionsRequest,
+            com.google.iam.v1.TestIamPermissionsResponse>
+        getTestIamPermissionsMethod;
     if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
       synchronized (IAMPolicyGrpc.class) {
         if ((getTestIamPermissionsMethod = IAMPolicyGrpc.getTestIamPermissionsMethod) == null) {
-          IAMPolicyGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
-              .build();
+          IAMPolicyGrpc.getTestIamPermissionsMethod =
+              getTestIamPermissionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new IAMPolicyMethodDescriptorSupplier("TestIamPermissions"))
+                      .build();
         }
       }
     }
     return getTestIamPermissionsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static IAMPolicyStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyStub(channel, callOptions);
+          }
+        };
     return IAMPolicyStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static IAMPolicyBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static IAMPolicyBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyBlockingStub(channel, callOptions);
+          }
+        };
     return IAMPolicyBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static IAMPolicyFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static IAMPolicyFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new IAMPolicyFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public IAMPolicyFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new IAMPolicyFutureStub(channel, callOptions);
+          }
+        };
     return IAMPolicyFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -194,33 +235,43 @@ public IAMPolicyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
    * attached.
    * 
*/ - public static abstract class IAMPolicyImplBase implements io.grpc.BindableService { + public abstract static class IAMPolicyImplBase implements io.grpc.BindableService { /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** + * + * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** + * + * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -230,39 +281,43 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -285,44 +340,54 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque
    * 
*/ public static final class IAMPolicyStub extends io.grpc.stub.AbstractAsyncStub { - private IAMPolicyStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private IAMPolicyStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyStub(channel, callOptions); } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -332,14 +397,20 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * may "fail open" without warning.
      * 
*/ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -361,9 +432,9 @@ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest reque
    * attached.
    * 
*/ - public static final class IAMPolicyBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private IAMPolicyBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -374,6 +445,8 @@ protected IAMPolicyBlockingStub build( } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
@@ -386,6 +459,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
@@ -398,6 +473,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -407,13 +484,16 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
      * may "fail open" without warning.
      * 
*/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** + * + * *
    * API Overview
    * Manages Identity and Access Management (IAM) policies.
@@ -435,45 +515,50 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.googl
    * attached.
    * 
*/ - public static final class IAMPolicyFutureStub extends io.grpc.stub.AbstractFutureStub { - private IAMPolicyFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IAMPolicyFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IAMPolicyFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IAMPolicyFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IAMPolicyFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyFutureStub(channel, callOptions); } /** + * + * *
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
      * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the access control policy for a resource.
      * Returns an empty policy if the resource exists and does not have a policy
      * set.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
@@ -483,8 +568,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture testIamPermissions(
-        com.google.iam.v1.TestIamPermissionsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.iam.v1.TestIamPermissionsResponse>
+        testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);
     }
@@ -494,11 +580,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final IAMPolicyImplBase serviceImpl;
     private final int methodId;
 
@@ -512,16 +598,20 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_SET_IAM_POLICY:
-          serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request,
+          serviceImpl.setIamPolicy(
+              (com.google.iam.v1.SetIamPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_IAM_POLICY:
-          serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request,
+          serviceImpl.getIamPolicy(
+              (com.google.iam.v1.GetIamPolicyRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_TEST_IAM_PERMISSIONS:
-          serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.testIamPermissions(
+              (com.google.iam.v1.TestIamPermissionsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -539,8 +629,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class IAMPolicyBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class IAMPolicyBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     IAMPolicyBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -582,12 +673,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (IAMPolicyGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier())
-              .addMethod(getSetIamPolicyMethod())
-              .addMethod(getGetIamPolicyMethod())
-              .addMethod(getTestIamPermissionsMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new IAMPolicyFileDescriptorSupplier())
+                      .addMethod(getSetIamPolicyMethod())
+                      .addMethod(getGetIamPolicyMethod())
+                      .addMethod(getTestIamPermissionsMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
deleted file mode 100644
index 1636f34c..00000000
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
+++ /dev/null
@@ -1,131 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/iam_policy.proto
-
-package com.google.iam.v1;
-
-public final class IamPolicyProto {
-  private IamPolicyProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
-
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_SetIamPolicyRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_GetIamPolicyRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
-    return descriptor;
-  }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
-  static {
-    java.lang.String[] descriptorData = {
-      "\n\036google/iam/v1/iam_policy.proto\022\rgoogle" +
-      ".iam.v1\032\034google/api/annotations.proto\032\027g" +
-      "oogle/api/client.proto\032\037google/api/field" +
-      "_behavior.proto\032\031google/api/resource.pro" +
-      "to\032\033google/iam/v1/options.proto\032\032google/" +
-      "iam/v1/policy.proto\032 google/protobuf/fie" +
-      "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" +
-      "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" +
-      "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" +
-      "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" +
-      "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" +
-      "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" +
-      "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" +
-      "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" +
-      "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" +
-      "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" +
-      "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." +
-      "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" +
-      "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" +
-      "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" +
-      ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" +
-      "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" +
-      "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" +
-      "am.v1.TestIamPermissionsRequest\032).google" +
-      ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" +
-      "\002)\"$/v1/{resource=**}:testIamPermissions" +
-      ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" +
-      "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" +
-      "gle.golang.org/genproto/googleapis/iam/v" +
-      "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" +
-      "Cloud\\Iam\\V1b\006proto3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.api.ClientProto.getDescriptor(),
-          com.google.api.FieldBehaviorProto.getDescriptor(),
-          com.google.api.ResourceProto.getDescriptor(),
-          com.google.iam.v1.OptionsProto.getDescriptor(),
-          com.google.iam.v1.PolicyProto.getDescriptor(),
-          com.google.protobuf.FieldMaskProto.getDescriptor(),
-        });
-    internal_static_google_iam_v1_SetIamPolicyRequest_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_SetIamPolicyRequest_descriptor,
-        new java.lang.String[] { "Resource", "Policy", "UpdateMask", });
-    internal_static_google_iam_v1_GetIamPolicyRequest_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_GetIamPolicyRequest_descriptor,
-        new java.lang.String[] { "Resource", "Options", });
-    internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor,
-        new java.lang.String[] { "Resource", "Permissions", });
-    internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor,
-        new java.lang.String[] { "Permissions", });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ClientProto.defaultHost);
-    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    registry.add(com.google.api.AnnotationsProto.http);
-    registry.add(com.google.api.ResourceProto.resourceReference);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.api.ClientProto.getDescriptor();
-    com.google.api.FieldBehaviorProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.iam.v1.OptionsProto.getDescriptor();
-    com.google.iam.v1.PolicyProto.getDescriptor();
-    com.google.protobuf.FieldMaskProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
deleted file mode 100644
index 6c60c51b..00000000
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/options.proto
-
-package com.google.iam.v1;
-
-public final class OptionsProto {
-  private OptionsProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
-
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_GetPolicyOptions_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
-    return descriptor;
-  }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
-  static {
-    java.lang.String[] descriptorData = {
-      "\n\033google/iam/v1/options.proto\022\rgoogle.ia" +
-      "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" +
-      "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" +
-      "B\014OptionsProtoP\001Z0google.golang.org/genp" +
-      "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" +
-      "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" +
-      "3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-        });
-    internal_static_google_iam_v1_GetPolicyOptions_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_GetPolicyOptions_descriptor,
-        new java.lang.String[] { "RequestedPolicyVersion", });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
deleted file mode 100644
index 37ca956d..00000000
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java
+++ /dev/null
@@ -1,144 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/iam/v1/policy.proto
-
-package com.google.iam.v1;
-
-public final class PolicyProto {
-  private PolicyProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
-
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_Policy_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_Policy_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_Binding_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_Binding_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditConfig_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditLogConfig_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_PolicyDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_BindingDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_BindingDelta_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_iam_v1_AuditConfigDelta_descriptor;
-  static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
-    return descriptor;
-  }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
-  static {
-    java.lang.String[] descriptorData = {
-      "\n\032google/iam/v1/policy.proto\022\rgoogle.iam" +
-      ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" +
-      "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" +
-      "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" +
-      "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" +
-      "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" +
-      " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" +
-      "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" +
-      "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" +
-      "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" +
-      "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" +
-      ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" +
-      "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" +
-      "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" +
-      "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" +
-      ".google.iam.v1.BindingDelta\022<\n\023audit_con" +
-      "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" +
-      "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" +
-      "(\0162\".google.iam.v1.BindingDelta.Action\022\014" +
-      "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" +
-      "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" +
-      "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" +
-      "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" +
-      ".google.iam.v1.AuditConfigDelta.Action\022\017" +
-      "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" +
-      "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" +
-      "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" +
-      "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" +
-      "olang.org/genproto/googleapis/iam/v1;iam" +
-      "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" +
-      "\\Iam\\V1b\006proto3"
-    };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.type.ExprProto.getDescriptor(),
-        });
-    internal_static_google_iam_v1_Policy_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_iam_v1_Policy_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_Policy_descriptor,
-        new java.lang.String[] { "Version", "Bindings", "AuditConfigs", "Etag", });
-    internal_static_google_iam_v1_Binding_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_iam_v1_Binding_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_Binding_descriptor,
-        new java.lang.String[] { "Role", "Members", "Condition", });
-    internal_static_google_iam_v1_AuditConfig_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditConfig_descriptor,
-        new java.lang.String[] { "Service", "AuditLogConfigs", });
-    internal_static_google_iam_v1_AuditLogConfig_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditLogConfig_descriptor,
-        new java.lang.String[] { "LogType", "ExemptedMembers", });
-    internal_static_google_iam_v1_PolicyDelta_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_PolicyDelta_descriptor,
-        new java.lang.String[] { "BindingDeltas", "AuditConfigDeltas", });
-    internal_static_google_iam_v1_BindingDelta_descriptor =
-      getDescriptor().getMessageTypes().get(5);
-    internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_BindingDelta_descriptor,
-        new java.lang.String[] { "Action", "Role", "Member", "Condition", });
-    internal_static_google_iam_v1_AuditConfigDelta_descriptor =
-      getDescriptor().getMessageTypes().get(6);
-    internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_iam_v1_AuditConfigDelta_descriptor,
-        new java.lang.String[] { "Action", "Service", "ExemptedMember", "LogType", });
-    com.google.type.ExprProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
index ff2646ed..eb28aad0 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Specifies the audit configuration for a service.
  * The configuration determines which permission types are logged, and what
@@ -56,15 +73,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfig}
  */
-public final class AuditConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfig)
     AuditConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditConfig.newBuilder() to construct.
   private AuditConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditConfig() {
     service_ = "";
     auditLogConfigs_ = java.util.Collections.emptyList();
@@ -72,16 +90,15 @@ private AuditConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuditConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -101,35 +118,36 @@ private AuditConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            service_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              auditLogConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              service_ = s;
+              break;
             }
-            auditLogConfigs_.add(
-                input.readMessage(com.google.iam.v1.AuditLogConfig.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                auditLogConfigs_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              auditLogConfigs_.add(
+                  input.readMessage(com.google.iam.v1.AuditLogConfig.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         auditLogConfigs_ = java.util.Collections.unmodifiableList(auditLogConfigs_);
@@ -138,15 +156,16 @@ private AuditConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
   }
@@ -154,6 +173,8 @@ private AuditConfig(
   public static final int SERVICE_FIELD_NUMBER = 1;
   private volatile java.lang.Object service_;
   /**
+   *
+   *
    * 
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -161,6 +182,7 @@ private AuditConfig(
    * 
* * string service = 1; + * * @return The service. */ @java.lang.Override @@ -169,14 +191,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -184,16 +207,15 @@ public java.lang.String getService() {
    * 
* * string service = 1; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -204,6 +226,8 @@ public java.lang.String getService() { public static final int AUDIT_LOG_CONFIGS_FIELD_NUMBER = 3; private java.util.List auditLogConfigs_; /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -215,6 +239,8 @@ public java.util.List getAuditLogConfigsList() return auditLogConfigs_; } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -222,11 +248,13 @@ public java.util.List getAuditLogConfigsList() * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public java.util.List + public java.util.List getAuditLogConfigsOrBuilderList() { return auditLogConfigs_; } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -238,6 +266,8 @@ public int getAuditLogConfigsCount() { return auditLogConfigs_.size(); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -249,6 +279,8 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { return auditLogConfigs_.get(index); } /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -256,12 +288,12 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ @java.lang.Override - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { return auditLogConfigs_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -294,8 +325,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } for (int i = 0; i < auditLogConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, auditLogConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, auditLogConfigs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,17 +335,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.AuditConfig)) { return super.equals(obj); } com.google.iam.v1.AuditConfig other = (com.google.iam.v1.AuditConfig) obj; - if (!getService() - .equals(other.getService())) return false; - if (!getAuditLogConfigsList() - .equals(other.getAuditLogConfigsList())) return false; + if (!getService().equals(other.getService())) return false; + if (!getAuditLogConfigsList().equals(other.getAuditLogConfigsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,97 +366,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.AuditConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.AuditConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.AuditConfig parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.AuditConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.AuditConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies the audit configuration for a service.
    * The configuration determines which permission types are logged, and what
@@ -481,19 +515,19 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditConfig)
       com.google.iam.v1.AuditConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.AuditConfig.class, com.google.iam.v1.AuditConfig.Builder.class);
     }
@@ -503,17 +537,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAuditLogConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -529,8 +563,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
     }
 
@@ -570,38 +603,39 @@ public com.google.iam.v1.AuditConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.AuditConfig) {
-        return mergeFrom((com.google.iam.v1.AuditConfig)other);
+        return mergeFrom((com.google.iam.v1.AuditConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -632,9 +666,10 @@ public Builder mergeFrom(com.google.iam.v1.AuditConfig other) {
             auditLogConfigsBuilder_ = null;
             auditLogConfigs_ = other.auditLogConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            auditLogConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAuditLogConfigsFieldBuilder() : null;
+            auditLogConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAuditLogConfigsFieldBuilder()
+                    : null;
           } else {
             auditLogConfigsBuilder_.addAllMessages(other.auditLogConfigs_);
           }
@@ -668,10 +703,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object service_ = "";
     /**
+     *
+     *
      * 
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -679,13 +717,13 @@ public Builder mergeFrom(
      * 
* * string service = 1; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -694,6 +732,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -701,15 +741,14 @@ public java.lang.String getService() {
      * 
* * string service = 1; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -717,6 +756,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -724,20 +765,22 @@ public java.lang.String getService() {
      * 
* * string service = 1; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -745,15 +788,18 @@ public Builder setService(
      * 
* * string service = 1; + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
      * Specifies a service that will be enabled for audit logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -761,34 +807,41 @@ public Builder clearService() {
      * 
* * string service = 1; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } private java.util.List auditLogConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuditLogConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - auditLogConfigs_ = new java.util.ArrayList(auditLogConfigs_); + auditLogConfigs_ = + new java.util.ArrayList(auditLogConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> auditLogConfigsBuilder_; + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder> + auditLogConfigsBuilder_; /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -803,6 +856,8 @@ public java.util.List getAuditLogConfigsList() } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -817,6 +872,8 @@ public int getAuditLogConfigsCount() { } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -831,14 +888,15 @@ public com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index) { } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder setAuditLogConfigs( - int index, com.google.iam.v1.AuditLogConfig value) { + public Builder setAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -852,6 +910,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -870,6 +930,8 @@ public Builder setAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -890,14 +952,15 @@ public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig value) { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs( - int index, com.google.iam.v1.AuditLogConfig value) { + public Builder addAuditLogConfigs(int index, com.google.iam.v1.AuditLogConfig value) { if (auditLogConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -911,14 +974,15 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public Builder addAuditLogConfigs( - com.google.iam.v1.AuditLogConfig.Builder builderForValue) { + public Builder addAuditLogConfigs(com.google.iam.v1.AuditLogConfig.Builder builderForValue) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); auditLogConfigs_.add(builderForValue.build()); @@ -929,6 +993,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -947,6 +1013,8 @@ public Builder addAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -957,8 +1025,7 @@ public Builder addAllAuditLogConfigs( java.lang.Iterable values) { if (auditLogConfigsBuilder_ == null) { ensureAuditLogConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditLogConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditLogConfigs_); onChanged(); } else { auditLogConfigsBuilder_.addAllMessages(values); @@ -966,6 +1033,8 @@ public Builder addAllAuditLogConfigs( return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -983,6 +1052,8 @@ public Builder clearAuditLogConfigs() { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -1000,39 +1071,44 @@ public Builder removeAuditLogConfigs(int index) { return this; } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder( - int index) { + public com.google.iam.v1.AuditLogConfig.Builder getAuditLogConfigsBuilder(int index) { return getAuditLogConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index) { if (auditLogConfigsBuilder_ == null) { - return auditLogConfigs_.get(index); } else { + return auditLogConfigs_.get(index); + } else { return auditLogConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsOrBuilderList() { + public java.util.List + getAuditLogConfigsOrBuilderList() { if (auditLogConfigsBuilder_ != null) { return auditLogConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1040,6 +1116,8 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( } } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
@@ -1047,38 +1125,47 @@ public com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder() { - return getAuditLogConfigsFieldBuilder().addBuilder( - com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + return getAuditLogConfigsFieldBuilder() + .addBuilder(com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( - int index) { - return getAuditLogConfigsFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); + public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder(int index) { + return getAuditLogConfigsFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditLogConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for logging of each type of permission.
      * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - public java.util.List - getAuditLogConfigsBuilderList() { + public java.util.List + getAuditLogConfigsBuilderList() { return getAuditLogConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder> + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder> getAuditLogConfigsFieldBuilder() { if (auditLogConfigsBuilder_ == null) { - auditLogConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditLogConfig, com.google.iam.v1.AuditLogConfig.Builder, com.google.iam.v1.AuditLogConfigOrBuilder>( + auditLogConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditLogConfig, + com.google.iam.v1.AuditLogConfig.Builder, + com.google.iam.v1.AuditLogConfigOrBuilder>( auditLogConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1087,9 +1174,9 @@ public com.google.iam.v1.AuditLogConfig.Builder addAuditLogConfigsBuilder( } return auditLogConfigsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1099,12 +1186,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfig) private static final com.google.iam.v1.AuditConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfig(); } @@ -1113,16 +1200,16 @@ public static com.google.iam.v1.AuditConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1137,6 +1224,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java similarity index 74% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index e5e2d404..b1f2b2dc 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * One delta entry for AuditConfig. Each individual change (only one
  * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditConfigDelta}
  */
-public final class AuditConfigDelta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditConfigDelta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditConfigDelta)
     AuditConfigDeltaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditConfigDelta.newBuilder() to construct.
   private AuditConfigDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditConfigDelta() {
     action_ = 0;
     service_ = "";
@@ -29,16 +47,15 @@ private AuditConfigDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditConfigDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuditConfigDelta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,72 +74,80 @@ private AuditConfigDelta(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            action_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              action_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            service_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              service_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            exemptedMember_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              exemptedMember_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            logType_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              logType_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
+            com.google.iam.v1.AuditConfigDelta.class,
+            com.google.iam.v1.AuditConfigDelta.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of action performed on an audit configuration in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.AuditConfigDelta.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -131,6 +156,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -139,6 +166,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -150,6 +179,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -158,6 +189,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of an audit configuration.
      * 
@@ -166,6 +199,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of an audit configuration.
      * 
@@ -174,7 +209,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -199,49 +233,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return ADD; - case 2: return REMOVE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.iam.v1.AuditConfigDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -261,35 +295,46 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ - @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { + @java.lang.Override + public com.google.iam.v1.AuditConfigDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + com.google.iam.v1.AuditConfigDelta.Action result = + com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } public static final int SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -298,6 +343,7 @@ private Action(int value) {
    * 
* * string service = 2; + * * @return The service. */ @java.lang.Override @@ -306,14 +352,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -322,16 +369,15 @@ public java.lang.String getService() {
    * 
* * string service = 2; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -342,6 +388,8 @@ public java.lang.String getService() { public static final int EXEMPTED_MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object exemptedMember_; /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -349,6 +397,7 @@ public java.lang.String getService() {
    * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ @java.lang.Override @@ -357,14 +406,15 @@ public java.lang.String getExemptedMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; } } /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -372,16 +422,15 @@ public java.lang.String getExemptedMember() {
    * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ @java.lang.Override - public com.google.protobuf.ByteString - getExemptedMemberBytes() { + public com.google.protobuf.ByteString getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -392,6 +441,8 @@ public java.lang.String getExemptedMember() { public static final int LOG_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object logType_; /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -399,6 +450,7 @@ public java.lang.String getExemptedMember() {
    * 
* * string log_type = 4; + * * @return The logType. */ @java.lang.Override @@ -407,14 +459,15 @@ public java.lang.String getLogType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; } } /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -422,16 +475,15 @@ public java.lang.String getLogType() {
    * 
* * string log_type = 4; + * * @return The bytes for logType. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogTypeBytes() { + public com.google.protobuf.ByteString getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logType_ = b; return b; } else { @@ -440,6 +492,7 @@ public java.lang.String getLogType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,8 +504,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -475,8 +527,7 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); @@ -495,7 +546,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.AuditConfigDelta)) { return super.equals(obj); @@ -503,12 +554,9 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditConfigDelta other = (com.google.iam.v1.AuditConfigDelta) obj; if (action_ != other.action_) return false; - if (!getService() - .equals(other.getService())) return false; - if (!getExemptedMember() - .equals(other.getExemptedMember())) return false; - if (!getLogType() - .equals(other.getLogType())) return false; + if (!getService().equals(other.getService())) return false; + if (!getExemptedMember().equals(other.getExemptedMember())) return false; + if (!getLogType().equals(other.getLogType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -533,97 +581,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditConfigDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.AuditConfigDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditConfigDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditConfigDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditConfigDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.AuditConfigDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfigDelta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditConfigDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.AuditConfigDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * One delta entry for AuditConfig. Each individual change (only one
    * exempted_member in each entry) to a AuditConfig will be a separate entry.
@@ -631,21 +685,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditConfigDelta}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditConfigDelta)
       com.google.iam.v1.AuditConfigDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditConfigDelta.class, com.google.iam.v1.AuditConfigDelta.Builder.class);
+              com.google.iam.v1.AuditConfigDelta.class,
+              com.google.iam.v1.AuditConfigDelta.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditConfigDelta.newBuilder()
@@ -653,16 +709,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();
@@ -678,9 +733,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditConfigDelta_descriptor;
     }
 
     @java.lang.Override
@@ -712,38 +767,39 @@ public com.google.iam.v1.AuditConfigDelta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.AuditConfigDelta) {
-        return mergeFrom((com.google.iam.v1.AuditConfigDelta)other);
+        return mergeFrom((com.google.iam.v1.AuditConfigDelta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -798,55 +854,69 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
+     *
+     *
      * 
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.iam.v1.AuditConfigDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditConfigDelta.Action result = com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); + com.google.iam.v1.AuditConfigDelta.Action result = + com.google.iam.v1.AuditConfigDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.AuditConfigDelta.Action.UNRECOGNIZED : result; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @param value The action to set. * @return This builder for chaining. */ @@ -854,22 +924,25 @@ public Builder setAction(com.google.iam.v1.AuditConfigDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The action that was performed on an audit configuration in a policy.
      * Required
      * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -877,6 +950,8 @@ public Builder clearAction() { private java.lang.Object service_ = ""; /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -885,13 +960,13 @@ public Builder clearAction() {
      * 
* * string service = 2; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -900,6 +975,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -908,15 +985,14 @@ public java.lang.String getService() {
      * 
* * string service = 2; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -924,6 +1000,8 @@ public java.lang.String getService() { } } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -932,20 +1010,22 @@ public java.lang.String getService() {
      * 
* * string service = 2; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -954,15 +1034,18 @@ public Builder setService(
      * 
* * string service = 2; + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
      * Specifies a service that was configured for Cloud Audit Logging.
      * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -971,16 +1054,16 @@ public Builder clearService() {
      * 
* * string service = 2; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; @@ -988,6 +1071,8 @@ public Builder setServiceBytes( private java.lang.Object exemptedMember_ = ""; /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -995,13 +1080,13 @@ public Builder setServiceBytes(
      * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ public java.lang.String getExemptedMember() { java.lang.Object ref = exemptedMember_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exemptedMember_ = s; return s; @@ -1010,6 +1095,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1017,15 +1104,14 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ - public com.google.protobuf.ByteString - getExemptedMemberBytes() { + public com.google.protobuf.ByteString getExemptedMemberBytes() { java.lang.Object ref = exemptedMember_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exemptedMember_ = b; return b; } else { @@ -1033,6 +1119,8 @@ public java.lang.String getExemptedMember() { } } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1040,20 +1128,22 @@ public java.lang.String getExemptedMember() {
      * 
* * string exempted_member = 3; + * * @param value The exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMember( - java.lang.String value) { + public Builder setExemptedMember(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + exemptedMember_ = value; onChanged(); return this; } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1061,15 +1151,18 @@ public Builder setExemptedMember(
      * 
* * string exempted_member = 3; + * * @return This builder for chaining. */ public Builder clearExemptedMember() { - + exemptedMember_ = getDefaultInstance().getExemptedMember(); onChanged(); return this; } /** + * + * *
      * A single identity that is exempted from "data access" audit
      * logging for the `service` specified above.
@@ -1077,16 +1170,16 @@ public Builder clearExemptedMember() {
      * 
* * string exempted_member = 3; + * * @param value The bytes for exemptedMember to set. * @return This builder for chaining. */ - public Builder setExemptedMemberBytes( - com.google.protobuf.ByteString value) { + public Builder setExemptedMemberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exemptedMember_ = value; onChanged(); return this; @@ -1094,6 +1187,8 @@ public Builder setExemptedMemberBytes( private java.lang.Object logType_ = ""; /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1101,13 +1196,13 @@ public Builder setExemptedMemberBytes(
      * 
* * string log_type = 4; + * * @return The logType. */ public java.lang.String getLogType() { java.lang.Object ref = logType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logType_ = s; return s; @@ -1116,6 +1211,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1123,15 +1220,14 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; + * * @return The bytes for logType. */ - public com.google.protobuf.ByteString - getLogTypeBytes() { + public com.google.protobuf.ByteString getLogTypeBytes() { java.lang.Object ref = logType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logType_ = b; return b; } else { @@ -1139,6 +1235,8 @@ public java.lang.String getLogType() { } } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1146,20 +1244,22 @@ public java.lang.String getLogType() {
      * 
* * string log_type = 4; + * * @param value The logType to set. * @return This builder for chaining. */ - public Builder setLogType( - java.lang.String value) { + public Builder setLogType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1167,15 +1267,18 @@ public Builder setLogType(
      * 
* * string log_type = 4; + * * @return This builder for chaining. */ public Builder clearLogType() { - + logType_ = getDefaultInstance().getLogType(); onChanged(); return this; } /** + * + * *
      * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
      * enabled, and cannot be configured.
@@ -1183,23 +1286,23 @@ public Builder clearLogType() {
      * 
* * string log_type = 4; + * * @param value The bytes for logType to set. * @return This builder for chaining. */ - public Builder setLogTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setLogTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1209,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditConfigDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditConfigDelta) private static final com.google.iam.v1.AuditConfigDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditConfigDelta(); } @@ -1223,16 +1326,16 @@ public static com.google.iam.v1.AuditConfigDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditConfigDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditConfigDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditConfigDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditConfigDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditConfigDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e16f3aa5..e1bea6c2 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -1,34 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigDeltaOrBuilder extends +public interface AuditConfigDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfigDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that was performed on an audit configuration in a policy.
    * Required
    * 
* * .google.iam.v1.AuditConfigDelta.Action action = 1; + * * @return The action. */ com.google.iam.v1.AuditConfigDelta.Action getAction(); /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -37,10 +61,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string service = 2; + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Specifies a service that was configured for Cloud Audit Logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -49,12 +76,14 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string service = 2; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -62,10 +91,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string exempted_member = 3; + * * @return The exemptedMember. */ java.lang.String getExemptedMember(); /** + * + * *
    * A single identity that is exempted from "data access" audit
    * logging for the `service` specified above.
@@ -73,12 +105,14 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string exempted_member = 3; + * * @return The bytes for exemptedMember. */ - com.google.protobuf.ByteString - getExemptedMemberBytes(); + com.google.protobuf.ByteString getExemptedMemberBytes(); /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -86,10 +120,13 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string log_type = 4; + * * @return The logType. */ java.lang.String getLogType(); /** + * + * *
    * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
    * enabled, and cannot be configured.
@@ -97,8 +134,8 @@ public interface AuditConfigDeltaOrBuilder extends
    * 
* * string log_type = 4; + * * @return The bytes for logType. */ - com.google.protobuf.ByteString - getLogTypeBytes(); + com.google.protobuf.ByteString getLogTypeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java index 05b40d39..06911aaf 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditConfigOrBuilder extends +public interface AuditConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -15,10 +33,13 @@ public interface AuditConfigOrBuilder extends
    * 
* * string service = 1; + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Specifies a service that will be enabled for audit logging.
    * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
@@ -26,21 +47,24 @@ public interface AuditConfigOrBuilder extends
    * 
* * string service = 1; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List - getAuditLogConfigsList(); + java.util.List getAuditLogConfigsList(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -49,6 +73,8 @@ public interface AuditConfigOrBuilder extends */ com.google.iam.v1.AuditLogConfig getAuditLogConfigs(int index); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
@@ -57,21 +83,24 @@ public interface AuditConfigOrBuilder extends */ int getAuditLogConfigsCount(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - java.util.List + java.util.List getAuditLogConfigsOrBuilderList(); /** + * + * *
    * The configuration for logging of each type of permission.
    * 
* * repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ - com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder( - int index); + com.google.iam.v1.AuditLogConfigOrBuilder getAuditLogConfigsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java similarity index 76% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index f4dad628..a6f3a720 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * Provides the configuration for logging a type of permissions.
  * Example:
@@ -26,15 +43,16 @@
  *
  * Protobuf type {@code google.iam.v1.AuditLogConfig}
  */
-public final class AuditLogConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AuditLogConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.AuditLogConfig)
     AuditLogConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AuditLogConfig.newBuilder() to construct.
   private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AuditLogConfig() {
     logType_ = 0;
     exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -42,16 +60,15 @@ private AuditLogConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AuditLogConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AuditLogConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,35 +88,36 @@ private AuditLogConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            logType_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              exemptedMembers_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              logType_ = rawValue;
+              break;
             }
-            exemptedMembers_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                exemptedMembers_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              exemptedMembers_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         exemptedMembers_ = exemptedMembers_.getUnmodifiableView();
@@ -108,20 +126,23 @@ private AuditLogConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The list of valid permission types for which logging can be configured.
    * Admin writes are always logged, and are not configurable.
@@ -129,9 +150,10 @@ private AuditLogConfig(
    *
    * Protobuf enum {@code google.iam.v1.AuditLogConfig.LogType}
    */
-  public enum LogType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum LogType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default case. Should never be this.
      * 
@@ -140,6 +162,8 @@ public enum LogType */ LOG_TYPE_UNSPECIFIED(0), /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -148,6 +172,8 @@ public enum LogType */ ADMIN_READ(1), /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -156,6 +182,8 @@ public enum LogType */ DATA_WRITE(2), /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -167,6 +195,8 @@ public enum LogType ; /** + * + * *
      * Default case. Should never be this.
      * 
@@ -175,6 +205,8 @@ public enum LogType */ public static final int LOG_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Admin reads. Example: CloudIAM getIamPolicy
      * 
@@ -183,6 +215,8 @@ public enum LogType */ public static final int ADMIN_READ_VALUE = 1; /** + * + * *
      * Data writes. Example: CloudSQL Users create
      * 
@@ -191,6 +225,8 @@ public enum LogType */ public static final int DATA_WRITE_VALUE = 2; /** + * + * *
      * Data reads. Example: CloudSQL Users list
      * 
@@ -199,7 +235,6 @@ public enum LogType */ public static final int DATA_READ_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -224,50 +259,51 @@ public static LogType valueOf(int value) { */ public static LogType forNumber(int value) { switch (value) { - case 0: return LOG_TYPE_UNSPECIFIED; - case 1: return ADMIN_READ; - case 2: return DATA_WRITE; - case 3: return DATA_READ; - default: return null; + case 0: + return LOG_TYPE_UNSPECIFIED; + case 1: + return ADMIN_READ; + case 2: + return DATA_WRITE; + case 3: + return DATA_READ; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogType findValueByNumber(int number) { - return LogType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogType findValueByNumber(int number) { + return LogType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.iam.v1.AuditLogConfig.getDescriptor().getEnumTypes().get(0); } private static final LogType[] VALUES = values(); - public static LogType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -287,33 +323,44 @@ private LogType(int value) { public static final int LOG_TYPE_FIELD_NUMBER = 1; private int logType_; /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override public int getLogTypeValue() { + @java.lang.Override + public int getLogTypeValue() { return logType_; } /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ - @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { + @java.lang.Override + public com.google.iam.v1.AuditLogConfig.LogType getLogType() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + com.google.iam.v1.AuditLogConfig.LogType result = + com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList exemptedMembers_; /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -321,13 +368,15 @@ private LogType(int value) {
    * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList - getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList getExemptedMembersList() { return exemptedMembers_; } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -335,12 +384,15 @@ private LogType(int value) {
    * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -348,6 +400,7 @@ public int getExemptedMembersCount() {
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -355,6 +408,8 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -362,15 +417,16 @@ public java.lang.String getExemptedMembers(int index) {
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString - getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,8 +438,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, logType_); } @@ -400,8 +455,7 @@ public int getSerializedSize() { size = 0; if (logType_ != com.google.iam.v1.AuditLogConfig.LogType.LOG_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, logType_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, logType_); } { int dataSize = 0; @@ -419,7 +473,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.AuditLogConfig)) { return super.equals(obj); @@ -427,8 +481,7 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.AuditLogConfig other = (com.google.iam.v1.AuditLogConfig) obj; if (logType_ != other.logType_) return false; - if (!getExemptedMembersList() - .equals(other.getExemptedMembersList())) return false; + if (!getExemptedMembersList().equals(other.getExemptedMembersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,97 +504,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.AuditLogConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.AuditLogConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.AuditLogConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.AuditLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.AuditLogConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.AuditLogConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditLogConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.AuditLogConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditLogConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.AuditLogConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.AuditLogConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.AuditLogConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides the configuration for logging a type of permissions.
    * Example:
@@ -564,21 +623,22 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.AuditLogConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.AuditLogConfig)
       com.google.iam.v1.AuditLogConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.iam.v1.AuditLogConfig.class, com.google.iam.v1.AuditLogConfig.Builder.class);
+              com.google.iam.v1.AuditLogConfig.class,
+              com.google.iam.v1.AuditLogConfig.Builder.class);
     }
 
     // Construct using com.google.iam.v1.AuditLogConfig.newBuilder()
@@ -586,16 +646,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();
@@ -607,8 +666,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
     }
 
@@ -644,38 +702,39 @@ public com.google.iam.v1.AuditLogConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.AuditLogConfig) {
-        return mergeFrom((com.google.iam.v1.AuditLogConfig)other);
+        return mergeFrom((com.google.iam.v1.AuditLogConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -725,55 +784,70 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int logType_ = 0;
     /**
+     *
+     *
      * 
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ - @java.lang.Override public int getLogTypeValue() { + @java.lang.Override + public int getLogTypeValue() { return logType_; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @param value The enum numeric value on the wire for logType to set. * @return This builder for chaining. */ public Builder setLogTypeValue(int value) { - + logType_ = value; onChanged(); return this; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ @java.lang.Override public com.google.iam.v1.AuditLogConfig.LogType getLogType() { @SuppressWarnings("deprecation") - com.google.iam.v1.AuditLogConfig.LogType result = com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); + com.google.iam.v1.AuditLogConfig.LogType result = + com.google.iam.v1.AuditLogConfig.LogType.valueOf(logType_); return result == null ? com.google.iam.v1.AuditLogConfig.LogType.UNRECOGNIZED : result; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @param value The logType to set. * @return This builder for chaining. */ @@ -781,34 +855,41 @@ public Builder setLogType(com.google.iam.v1.AuditLogConfig.LogType value) { if (value == null) { throw new NullPointerException(); } - + logType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The log type that this config enables.
      * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return This builder for chaining. */ public Builder clearLogType() { - + logType_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exemptedMembers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptedMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -816,13 +897,15 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - public com.google.protobuf.ProtocolStringList - getExemptedMembersList() { + public com.google.protobuf.ProtocolStringList getExemptedMembersList() { return exemptedMembers_.getUnmodifiableView(); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -830,12 +913,15 @@ private void ensureExemptedMembersIsMutable() {
      * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ public int getExemptedMembersCount() { return exemptedMembers_.size(); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -843,6 +929,7 @@ public int getExemptedMembersCount() {
      * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ @@ -850,6 +937,8 @@ public java.lang.String getExemptedMembers(int index) { return exemptedMembers_.get(index); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -857,14 +946,16 @@ public java.lang.String getExemptedMembers(int index) {
      * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - public com.google.protobuf.ByteString - getExemptedMembersBytes(int index) { + public com.google.protobuf.ByteString getExemptedMembersBytes(int index) { return exemptedMembers_.getByteString(index); } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -872,21 +963,23 @@ public java.lang.String getExemptedMembers(int index) {
      * 
* * repeated string exempted_members = 2; + * * @param index The index to set the value at. * @param value The exemptedMembers to set. * @return This builder for chaining. */ - public Builder setExemptedMembers( - int index, java.lang.String value) { + public Builder setExemptedMembers(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptedMembersIsMutable(); + throw new NullPointerException(); + } + ensureExemptedMembersIsMutable(); exemptedMembers_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -894,20 +987,22 @@ public Builder setExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @param value The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembers( - java.lang.String value) { + public Builder addExemptedMembers(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptedMembersIsMutable(); + throw new NullPointerException(); + } + ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -915,18 +1010,19 @@ public Builder addExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @param values The exemptedMembers to add. * @return This builder for chaining. */ - public Builder addAllExemptedMembers( - java.lang.Iterable values) { + public Builder addAllExemptedMembers(java.lang.Iterable values) { ensureExemptedMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemptedMembers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptedMembers_); onChanged(); return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -934,6 +1030,7 @@ public Builder addAllExemptedMembers(
      * 
* * repeated string exempted_members = 2; + * * @return This builder for chaining. */ public Builder clearExemptedMembers() { @@ -943,6 +1040,8 @@ public Builder clearExemptedMembers() { return this; } /** + * + * *
      * Specifies the identities that do not cause logging for this type of
      * permission.
@@ -950,23 +1049,23 @@ public Builder clearExemptedMembers() {
      * 
* * repeated string exempted_members = 2; + * * @param value The bytes of the exemptedMembers to add. * @return This builder for chaining. */ - public Builder addExemptedMembersBytes( - com.google.protobuf.ByteString value) { + public Builder addExemptedMembersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptedMembersIsMutable(); exemptedMembers_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.AuditLogConfig) } // @@protoc_insertion_point(class_scope:google.iam.v1.AuditLogConfig) private static final com.google.iam.v1.AuditLogConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.AuditLogConfig(); } @@ -990,16 +1089,16 @@ public static com.google.iam.v1.AuditLogConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditLogConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditLogConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditLogConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditLogConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1014,6 +1113,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.AuditLogConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java index cc82e2e8..c6371c5c 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface AuditLogConfigOrBuilder extends +public interface AuditLogConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.AuditLogConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The enum numeric value on the wire for logType. */ int getLogTypeValue(); /** + * + * *
    * The log type that this config enables.
    * 
* * .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * * @return The logType. */ com.google.iam.v1.AuditLogConfig.LogType getLogType(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -34,11 +58,13 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @return A list containing the exemptedMembers. */ - java.util.List - getExemptedMembersList(); + java.util.List getExemptedMembersList(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -46,10 +72,13 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @return The count of exemptedMembers. */ int getExemptedMembersCount(); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -57,11 +86,14 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the element to return. * @return The exemptedMembers at the given index. */ java.lang.String getExemptedMembers(int index); /** + * + * *
    * Specifies the identities that do not cause logging for this type of
    * permission.
@@ -69,9 +101,9 @@ public interface AuditLogConfigOrBuilder extends
    * 
* * repeated string exempted_members = 2; + * * @param index The index of the value to return. * @return The bytes of the exemptedMembers at the given index. */ - com.google.protobuf.ByteString - getExemptedMembersBytes(int index); + com.google.protobuf.ByteString getExemptedMembersBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java similarity index 87% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index 73fb575b..219872a2 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * Associates `members`, or principals, with a `role`.
  * 
* * Protobuf type {@code google.iam.v1.Binding} */ -public final class Binding extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Binding extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.Binding) BindingOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Binding() { role_ = ""; members_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private Binding() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Binding(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Binding( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,48 +72,50 @@ private Binding( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - role_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - members_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - members_.add(s); - break; - } - case 26: { - com.google.type.Expr.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); + role_ = s; + break; } - condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + members_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + members_.add(s); + break; } + case 26: + { + 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { members_ = members_.getUnmodifiableView(); @@ -105,8 +124,8 @@ private Binding( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -121,12 +140,15 @@ private Binding( public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The role. */ @java.lang.Override @@ -135,30 +157,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -169,6 +191,8 @@ public java.lang.String getRole() { public static final int MEMBERS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList members_; /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -204,13 +228,15 @@ public java.lang.String getRole() {
    * 
* * repeated string members = 2; + * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList - getMembersList() { + public com.google.protobuf.ProtocolStringList getMembersList() { return members_; } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -246,12 +272,15 @@ public java.lang.String getRole() {
    * 
* * repeated string members = 2; + * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -287,6 +316,7 @@ public int getMembersCount() {
    * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -294,6 +324,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -329,17 +361,19 @@ public java.lang.String getMembers(int index) {
    * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { + public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } public static final int CONDITION_FIELD_NUMBER = 3; private com.google.type.Expr condition_; /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -353,6 +387,7 @@ public java.lang.String getMembers(int index) {
    * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -360,6 +395,8 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -373,6 +410,7 @@ public boolean hasCondition() {
    * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ @java.lang.Override @@ -380,6 +418,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -400,6 +440,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -411,8 +452,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
     }
@@ -443,8 +483,7 @@ public int getSerializedSize() {
       size += 1 * getMembersList().size();
     }
     if (condition_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getCondition());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -454,21 +493,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v1.Binding)) {
       return super.equals(obj);
     }
     com.google.iam.v1.Binding other = (com.google.iam.v1.Binding) obj;
 
-    if (!getRole()
-        .equals(other.getRole())) return false;
-    if (!getMembersList()
-        .equals(other.getMembersList())) return false;
+    if (!getRole().equals(other.getRole())) return false;
+    if (!getMembersList().equals(other.getMembersList())) return false;
     if (hasCondition() != other.hasCondition()) return false;
     if (hasCondition()) {
-      if (!getCondition()
-          .equals(other.getCondition())) return false;
+      if (!getCondition().equals(other.getCondition())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -496,109 +532,114 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.Binding parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.Binding parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.iam.v1.Binding parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.Binding parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.Binding parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.Binding parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.Binding parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v1.Binding parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.Binding parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.iam.v1.Binding parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.iam.v1.Binding parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.Binding parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v1.Binding prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Associates `members`, or principals, with a `role`.
    * 
* * Protobuf type {@code google.iam.v1.Binding} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.Binding) com.google.iam.v1.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -615,16 +656,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(); @@ -642,8 +682,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor; } @@ -684,38 +723,39 @@ public com.google.iam.v1.Binding buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.Binding) { - return mergeFrom((com.google.iam.v1.Binding)other); + return mergeFrom((com.google.iam.v1.Binding) other); } else { super.mergeFrom(other); return this; @@ -769,23 +809,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -794,21 +837,22 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return The bytes for role. */ - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -816,70 +860,81 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole( - java.lang.String value) { + public Builder setRole(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** + * + * *
      * Role that is assigned to the list of `members`, or principals.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
      * 
* * string role = 1; + * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { + 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; } - private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList members_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { members_ = new com.google.protobuf.LazyStringArrayList(members_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -915,13 +970,15 @@ private void ensureMembersIsMutable() {
      * 
* * repeated string members = 2; + * * @return A list containing the members. */ - public com.google.protobuf.ProtocolStringList - getMembersList() { + public com.google.protobuf.ProtocolStringList getMembersList() { return members_.getUnmodifiableView(); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -957,12 +1014,15 @@ private void ensureMembersIsMutable() {
      * 
* * repeated string members = 2; + * * @return The count of members. */ public int getMembersCount() { return members_.size(); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -998,6 +1058,7 @@ public int getMembersCount() {
      * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ @@ -1005,6 +1066,8 @@ public java.lang.String getMembers(int index) { return members_.get(index); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1040,14 +1103,16 @@ public java.lang.String getMembers(int index) {
      * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { + public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1083,21 +1148,23 @@ public java.lang.String getMembers(int index) {
      * 
* * repeated string members = 2; + * * @param index The index to set the value at. * @param value The members to set. * @return This builder for chaining. */ - public Builder setMembers( - int index, java.lang.String value) { + public Builder setMembers(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); + throw new NullPointerException(); + } + ensureMembersIsMutable(); members_.set(index, value); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1133,20 +1200,22 @@ public Builder setMembers(
      * 
* * repeated string members = 2; + * * @param value The members to add. * @return This builder for chaining. */ - public Builder addMembers( - java.lang.String value) { + public Builder addMembers(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); + throw new NullPointerException(); + } + ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1182,18 +1251,19 @@ public Builder addMembers(
      * 
* * repeated string members = 2; + * * @param values The members to add. * @return This builder for chaining. */ - public Builder addAllMembers( - java.lang.Iterable values) { + public Builder addAllMembers(java.lang.Iterable values) { ensureMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, members_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); onChanged(); return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1229,6 +1299,7 @@ public Builder addAllMembers(
      * 
* * repeated string members = 2; + * * @return This builder for chaining. */ public Builder clearMembers() { @@ -1238,6 +1309,8 @@ public Builder clearMembers() { return this; } /** + * + * *
      * Specifies the principals requesting access for a Cloud Platform resource.
      * `members` can have the following values:
@@ -1273,15 +1346,15 @@ public Builder clearMembers() {
      * 
* * repeated string members = 2; + * * @param value The bytes of the members to add. * @return This builder for chaining. */ - public Builder addMembersBytes( - com.google.protobuf.ByteString value) { + public Builder addMembersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMembersIsMutable(); members_.add(value); onChanged(); @@ -1290,8 +1363,11 @@ public Builder addMembersBytes( private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1305,12 +1381,15 @@ public Builder addMembersBytes(
      * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1324,6 +1403,7 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1334,6 +1414,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1362,6 +1444,8 @@ public Builder setCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1376,8 +1460,7 @@ public Builder setCondition(com.google.type.Expr value) {
      *
      * .google.type.Expr condition = 3;
      */
-    public Builder setCondition(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
       if (conditionBuilder_ == null) {
         condition_ = builderForValue.build();
         onChanged();
@@ -1388,6 +1471,8 @@ public Builder setCondition(
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1405,8 +1490,7 @@ public Builder setCondition(
     public Builder mergeCondition(com.google.type.Expr value) {
       if (conditionBuilder_ == null) {
         if (condition_ != null) {
-          condition_ =
-            com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
+          condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
         } else {
           condition_ = value;
         }
@@ -1418,6 +1502,8 @@ public Builder mergeCondition(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1444,6 +1530,8 @@ public Builder clearCondition() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1459,11 +1547,13 @@ public Builder clearCondition() {
      * .google.type.Expr condition = 3;
      */
     public com.google.type.Expr.Builder getConditionBuilder() {
-      
+
       onChanged();
       return getConditionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1482,11 +1572,12 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
       if (conditionBuilder_ != null) {
         return conditionBuilder_.getMessageOrBuilder();
       } else {
-        return condition_ == null ?
-            com.google.type.Expr.getDefaultInstance() : condition_;
+        return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
       }
     }
     /**
+     *
+     *
      * 
      * The condition that is associated with this binding.
      * If the condition evaluates to `true`, then this binding applies to the
@@ -1502,21 +1593,20 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
      * .google.type.Expr condition = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getConditionFieldBuilder() {
       if (conditionBuilder_ == null) {
-        conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getCondition(),
-                getParentForChildren(),
-                isClean());
+        conditionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getCondition(), getParentForChildren(), isClean());
         condition_ = null;
       }
       return conditionBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1526,12 +1616,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.Binding)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.Binding)
   private static final com.google.iam.v1.Binding DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.Binding();
   }
@@ -1540,16 +1630,16 @@ public static com.google.iam.v1.Binding getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Binding parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Binding(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Binding parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Binding(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1564,6 +1654,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.Binding getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
index 31e2c6b7..ed69378d 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * One delta entry for Binding. Each individual change (only one member in each
  * entry) to a binding will be a separate entry.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.iam.v1.BindingDelta}
  */
-public final class BindingDelta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BindingDelta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.BindingDelta)
     BindingDeltaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BindingDelta.newBuilder() to construct.
   private BindingDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BindingDelta() {
     action_ = 0;
     role_ = "";
@@ -28,16 +46,15 @@ private BindingDelta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BindingDelta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BindingDelta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,79 +73,86 @@ private BindingDelta(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            action_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              action_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            role_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              role_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            member_ = s;
-            break;
-          }
-          case 34: {
-            com.google.type.Expr.Builder subBuilder = null;
-            if (condition_ != null) {
-              subBuilder = condition_.toBuilder();
+              member_ = s;
+              break;
             }
-            condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(condition_);
-              condition_ = subBuilder.buildPartial();
+          case 34:
+            {
+              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;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+    return com.google.iam.v1.PolicyProto
+        .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.iam.v1.BindingDelta.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -137,6 +161,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of a Binding.
      * 
@@ -145,6 +171,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of a Binding.
      * 
@@ -156,6 +184,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -164,6 +194,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of a Binding.
      * 
@@ -172,6 +204,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of a Binding.
      * 
@@ -180,7 +214,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -205,49 +238,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return ADD; - case 2: return REMOVE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.iam.v1.BindingDelta.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -267,35 +300,46 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ - @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { + @java.lang.Override + public com.google.iam.v1.BindingDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.valueOf(action_); + com.google.iam.v1.BindingDelta.Action result = + com.google.iam.v1.BindingDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -303,6 +347,7 @@ private Action(int value) {
    * 
* * string role = 2; + * * @return The role. */ @java.lang.Override @@ -311,14 +356,15 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -326,16 +372,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 { @@ -346,6 +391,8 @@ public java.lang.String getRole() { public static final int MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object member_; /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -353,6 +400,7 @@ public java.lang.String getRole() {
    * 
* * string member = 3; + * * @return The member. */ @java.lang.Override @@ -361,14 +409,15 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -376,16 +425,15 @@ public java.lang.String getMember() {
    * 
* * string member = 3; + * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -396,11 +444,14 @@ public java.lang.String getMember() { public static final int CONDITION_FIELD_NUMBER = 4; private com.google.type.Expr condition_; /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -408,11 +459,14 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ @java.lang.Override @@ -420,6 +474,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
    * The condition that is associated with this binding.
    * 
@@ -432,6 +488,7 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } @@ -467,8 +523,7 @@ public int getSerializedSize() { size = 0; if (action_ != com.google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, action_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -477,8 +532,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -488,7 +542,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.BindingDelta)) { return super.equals(obj); @@ -496,14 +550,11 @@ public boolean equals(final java.lang.Object obj) { com.google.iam.v1.BindingDelta other = (com.google.iam.v1.BindingDelta) obj; if (action_ != other.action_) return false; - if (!getRole() - .equals(other.getRole())) return false; - if (!getMember() - .equals(other.getMember())) return false; + if (!getRole().equals(other.getRole())) return false; + if (!getMember().equals(other.getMember())) return false; if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; + if (!getCondition().equals(other.getCondition())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -531,97 +582,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.BindingDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.BindingDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.BindingDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.BindingDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.BindingDelta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.BindingDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.BindingDelta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.BindingDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.BindingDelta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.BindingDelta parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.BindingDelta parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.BindingDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.BindingDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * One delta entry for Binding. Each individual change (only one member in each
    * entry) to a binding will be a separate entry.
@@ -629,19 +686,19 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.BindingDelta}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.BindingDelta)
       com.google.iam.v1.BindingDeltaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
+      return com.google.iam.v1.PolicyProto
+          .internal_static_google_iam_v1_BindingDelta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.iam.v1.BindingDelta.class, com.google.iam.v1.BindingDelta.Builder.class);
     }
@@ -651,16 +708,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();
@@ -680,8 +736,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
     }
 
@@ -718,38 +773,39 @@ public com.google.iam.v1.BindingDelta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.BindingDelta) {
-        return mergeFrom((com.google.iam.v1.BindingDelta)other);
+        return mergeFrom((com.google.iam.v1.BindingDelta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -803,55 +859,69 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
+     *
+     *
      * 
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.iam.v1.BindingDelta.Action getAction() { @SuppressWarnings("deprecation") - com.google.iam.v1.BindingDelta.Action result = com.google.iam.v1.BindingDelta.Action.valueOf(action_); + com.google.iam.v1.BindingDelta.Action result = + com.google.iam.v1.BindingDelta.Action.valueOf(action_); return result == null ? com.google.iam.v1.BindingDelta.Action.UNRECOGNIZED : result; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @param value The action to set. * @return This builder for chaining. */ @@ -859,22 +929,25 @@ public Builder setAction(com.google.iam.v1.BindingDelta.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The action that was performed on a Binding.
      * Required
      * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -882,6 +955,8 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -889,13 +964,13 @@ public Builder clearAction() {
      * 
* * string role = 2; + * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -904,6 +979,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -911,15 +988,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 { @@ -927,6 +1003,8 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -934,20 +1012,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; } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -955,15 +1035,18 @@ public Builder setRole(
      * 
* * string role = 2; + * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** + * + * *
      * Role that is assigned to `members`.
      * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -971,16 +1054,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; @@ -988,6 +1071,8 @@ public Builder setRoleBytes( private java.lang.Object member_ = ""; /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -995,13 +1080,13 @@ public Builder setRoleBytes(
      * 
* * string member = 3; + * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -1010,6 +1095,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1017,15 +1104,14 @@ public java.lang.String getMember() {
      * 
* * string member = 3; + * * @return The bytes for member. */ - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -1033,6 +1119,8 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1040,20 +1128,22 @@ public java.lang.String getMember() {
      * 
* * string member = 3; + * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember( - java.lang.String value) { + public Builder setMember(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + member_ = value; onChanged(); return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1061,15 +1151,18 @@ public Builder setMember(
      * 
* * string member = 3; + * * @return This builder for chaining. */ public Builder clearMember() { - + member_ = getDefaultInstance().getMember(); onChanged(); return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource.
      * Follows the same format of Binding.members.
@@ -1077,16 +1170,16 @@ public Builder clearMember() {
      * 
* * string member = 3; + * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes( - com.google.protobuf.ByteString value) { + public Builder setMemberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + member_ = value; onChanged(); return this; @@ -1094,24 +1187,31 @@ public Builder setMemberBytes( private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1122,6 +1222,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1142,14 +1244,15 @@ public Builder setCondition(com.google.type.Expr value) { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
* * .google.type.Expr condition = 4; */ - public Builder setCondition( - com.google.type.Expr.Builder builderForValue) { + public Builder setCondition(com.google.type.Expr.Builder builderForValue) { if (conditionBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); @@ -1160,6 +1263,8 @@ public Builder setCondition( return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1169,8 +1274,7 @@ public Builder setCondition( public Builder mergeCondition(com.google.type.Expr value) { if (conditionBuilder_ == null) { if (condition_ != null) { - condition_ = - com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); + condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial(); } else { condition_ = value; } @@ -1182,6 +1286,8 @@ public Builder mergeCondition(com.google.type.Expr value) { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1200,6 +1306,8 @@ public Builder clearCondition() { return this; } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1207,11 +1315,13 @@ public Builder clearCondition() { * .google.type.Expr condition = 4; */ public com.google.type.Expr.Builder getConditionBuilder() { - + onChanged(); return getConditionFieldBuilder().getBuilder(); } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1222,11 +1332,12 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null ? - com.google.type.Expr.getDefaultInstance() : condition_; + return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } } /** + * + * *
      * The condition that is associated with this binding.
      * 
@@ -1234,21 +1345,20 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * .google.type.Expr condition = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); + conditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getCondition(), getParentForChildren(), isClean()); condition_ = null; } return conditionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1258,12 +1368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.BindingDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.BindingDelta) private static final com.google.iam.v1.BindingDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.BindingDelta(); } @@ -1272,16 +1382,16 @@ public static com.google.iam.v1.BindingDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1296,6 +1406,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.BindingDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index 3d33038c..a2959294 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -1,34 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingDeltaOrBuilder extends +public interface BindingDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.BindingDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that was performed on a Binding.
    * Required
    * 
* * .google.iam.v1.BindingDelta.Action action = 1; + * * @return The action. */ com.google.iam.v1.BindingDelta.Action getAction(); /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -36,10 +60,13 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string role = 2; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
    * Role that is assigned to `members`.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
@@ -47,12 +74,14 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string role = 2; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -60,10 +89,13 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string member = 3; + * * @return The member. */ java.lang.String getMember(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource.
    * Follows the same format of Binding.members.
@@ -71,30 +103,38 @@ public interface BindingDeltaOrBuilder extends
    * 
* * string member = 3; + * * @return The bytes for member. */ - com.google.protobuf.ByteString - getMemberBytes(); + com.google.protobuf.ByteString getMemberBytes(); /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * 
* * .google.type.Expr condition = 4; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * 
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java similarity index 92% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java index 7139dde2..b5e660fa 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface BindingOrBuilder extends +public interface BindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Binding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
    * Role that is assigned to the list of `members`, or principals.
    * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    * 
* * string role = 1; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -65,11 +88,13 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @return A list containing the members. */ - java.util.List - getMembersList(); + java.util.List getMembersList(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -105,10 +130,13 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @return The count of members. */ int getMembersCount(); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -144,11 +172,14 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @param index The index of the element to return. * @return The members at the given index. */ java.lang.String getMembers(int index); /** + * + * *
    * Specifies the principals requesting access for a Cloud Platform resource.
    * `members` can have the following values:
@@ -184,13 +215,15 @@ public interface BindingOrBuilder extends
    * 
* * repeated string members = 2; + * * @param index The index of the value to return. * @return The bytes of the members at the given index. */ - com.google.protobuf.ByteString - getMembersBytes(int index); + com.google.protobuf.ByteString getMembersBytes(int index); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -204,10 +237,13 @@ public interface BindingOrBuilder extends
    * 
* * .google.type.Expr condition = 3; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
@@ -221,10 +257,13 @@ public interface BindingOrBuilder extends
    * 
* * .google.type.Expr condition = 3; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
    * The condition that is associated with this binding.
    * If the condition evaluates to `true`, then this binding applies to the
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
similarity index 68%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
index 2a13e5f8..7944fffc 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `GetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ -public final class GetIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetIamPolicyRequest) GetIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetIamPolicyRequest.newBuilder() to construct. private GetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,76 @@ private GetIamPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 18: { - com.google.iam.v1.GetPolicyOptions.Builder subBuilder = null; - if (options_ != null) { - subBuilder = options_.toBuilder(); + resource_ = s; + break; } - options_ = input.readMessage(com.google.iam.v1.GetPolicyOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); + case 18: + { + com.google.iam.v1.GetPolicyOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = + input.readMessage(com.google.iam.v1.GetPolicyOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, + com.google.iam.v1.GetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -121,30 +148,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -155,12 +184,15 @@ public java.lang.String getResource() { public static final int OPTIONS_FIELD_NUMBER = 2; private com.google.iam.v1.GetPolicyOptions options_; /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ @java.lang.Override @@ -168,12 +200,15 @@ public boolean hasOptions() { return options_ != null; } /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ @java.lang.Override @@ -181,6 +216,8 @@ public com.google.iam.v1.GetPolicyOptions getOptions() { return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; } /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
@@ -194,6 +231,7 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -205,8 +243,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -226,8 +263,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (options_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getOptions());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -237,19 +273,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v1.GetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.GetIamPolicyRequest other = (com.google.iam.v1.GetIamPolicyRequest) obj;
 
-    if (!getResource()
-        .equals(other.getResource())) return false;
+    if (!getResource().equals(other.getResource())) return false;
     if (hasOptions() != other.hasOptions()) return false;
     if (hasOptions()) {
-      if (!getOptions()
-          .equals(other.getOptions())) return false;
+      if (!getOptions().equals(other.getOptions())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -273,118 +307,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.GetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.GetIamPolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v1.GetIamPolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `GetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.GetIamPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.GetIamPolicyRequest) com.google.iam.v1.GetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetIamPolicyRequest.class, com.google.iam.v1.GetIamPolicyRequest.Builder.class); + com.google.iam.v1.GetIamPolicyRequest.class, + com.google.iam.v1.GetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() @@ -392,16 +434,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(); @@ -417,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; } @java.lang.Override @@ -438,7 +479,8 @@ public com.google.iam.v1.GetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.GetIamPolicyRequest buildPartial() { - com.google.iam.v1.GetIamPolicyRequest result = new com.google.iam.v1.GetIamPolicyRequest(this); + com.google.iam.v1.GetIamPolicyRequest result = + new com.google.iam.v1.GetIamPolicyRequest(this); result.resource_ = resource_; if (optionsBuilder_ == null) { result.options_ = options_; @@ -453,38 +495,39 @@ public com.google.iam.v1.GetIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.GetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.GetIamPolicyRequest)other); + return mergeFrom((com.google.iam.v1.GetIamPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -531,19 +574,23 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -552,21 +599,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -574,57 +624,70 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -632,36 +695,49 @@ public Builder setResourceBytes( private com.google.iam.v1.GetPolicyOptions options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> optionsBuilder_; + com.google.iam.v1.GetPolicyOptions, + com.google.iam.v1.GetPolicyOptions.Builder, + com.google.iam.v1.GetPolicyOptionsOrBuilder> + optionsBuilder_; /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
      * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ public com.google.iam.v1.GetPolicyOptions getOptions() { if (optionsBuilder_ == null) { - return options_ == null ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_; + return options_ == null + ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance() + : options_; } else { return optionsBuilder_.getMessage(); } } /** + * + * *
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -683,6 +759,8 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -690,8 +768,7 @@ public Builder setOptions(com.google.iam.v1.GetPolicyOptions value) {
      *
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
-    public Builder setOptions(
-        com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
+    public Builder setOptions(com.google.iam.v1.GetPolicyOptions.Builder builderForValue) {
       if (optionsBuilder_ == null) {
         options_ = builderForValue.build();
         onChanged();
@@ -702,6 +779,8 @@ public Builder setOptions(
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -713,7 +792,9 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       if (optionsBuilder_ == null) {
         if (options_ != null) {
           options_ =
-            com.google.iam.v1.GetPolicyOptions.newBuilder(options_).mergeFrom(value).buildPartial();
+              com.google.iam.v1.GetPolicyOptions.newBuilder(options_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           options_ = value;
         }
@@ -725,6 +806,8 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -744,6 +827,8 @@ public Builder clearOptions() {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -752,11 +837,13 @@ public Builder clearOptions() {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     public com.google.iam.v1.GetPolicyOptions.Builder getOptionsBuilder() {
-      
+
       onChanged();
       return getOptionsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -768,11 +855,14 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
       if (optionsBuilder_ != null) {
         return optionsBuilder_.getMessageOrBuilder();
       } else {
-        return options_ == null ?
-            com.google.iam.v1.GetPolicyOptions.getDefaultInstance() : options_;
+        return options_ == null
+            ? com.google.iam.v1.GetPolicyOptions.getDefaultInstance()
+            : options_;
       }
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A `GetPolicyOptions` object for specifying options to
      * `GetIamPolicy`.
@@ -781,21 +871,24 @@ public com.google.iam.v1.GetPolicyOptionsOrBuilder getOptionsOrBuilder() {
      * .google.iam.v1.GetPolicyOptions options = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder> 
+            com.google.iam.v1.GetPolicyOptions,
+            com.google.iam.v1.GetPolicyOptions.Builder,
+            com.google.iam.v1.GetPolicyOptionsOrBuilder>
         getOptionsFieldBuilder() {
       if (optionsBuilder_ == null) {
-        optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.GetPolicyOptions, com.google.iam.v1.GetPolicyOptions.Builder, com.google.iam.v1.GetPolicyOptionsOrBuilder>(
-                getOptions(),
-                getParentForChildren(),
-                isClean());
+        optionsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.GetPolicyOptions,
+                com.google.iam.v1.GetPolicyOptions.Builder,
+                com.google.iam.v1.GetPolicyOptionsOrBuilder>(
+                getOptions(), getParentForChildren(), isClean());
         options_ = null;
       }
       return optionsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -805,12 +898,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.GetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.GetIamPolicyRequest)
   private static final com.google.iam.v1.GetIamPolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.GetIamPolicyRequest();
   }
@@ -819,16 +912,16 @@ public static com.google.iam.v1.GetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GetIamPolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GetIamPolicyRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GetIamPolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GetIamPolicyRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -843,6 +936,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.GetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
similarity index 59%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
index 1107e278..5f90592d 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java
@@ -1,55 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface GetIamPolicyRequestOrBuilder extends
+public interface GetIamPolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.GetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return Whether the options field is set. */ boolean hasOptions(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
    * 
* * .google.iam.v1.GetPolicyOptions options = 2; + * * @return The options. */ com.google.iam.v1.GetPolicyOptions getOptions(); /** + * + * *
    * OPTIONAL: A `GetPolicyOptions` object for specifying options to
    * `GetIamPolicy`.
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
index dfcb8bd3..253fa547 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.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/iam/v1/options.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Encapsulates settings provided to GetIamPolicy.
  * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ -public final class GetPolicyOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.GetPolicyOptions) GetPolicyOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyOptions.newBuilder() to construct. private GetPolicyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyOptions() { - } + + private GetPolicyOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPolicyOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,46 +68,49 @@ private GetPolicyOptions( case 0: done = true; break; - case 8: { - - requestedPolicyVersion_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + requestedPolicyVersion_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, + com.google.iam.v1.GetPolicyOptions.Builder.class); } public static final int REQUESTED_POLICY_VERSION_FIELD_NUMBER = 1; private int requestedPolicyVersion_; /** + * + * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -110,6 +129,7 @@ private GetPolicyOptions(
    * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -118,6 +138,7 @@ public int getRequestedPolicyVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requestedPolicyVersion_ != 0) { output.writeInt32(1, requestedPolicyVersion_); } @@ -144,8 +164,7 @@ public int getSerializedSize() { size = 0; if (requestedPolicyVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, requestedPolicyVersion_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, requestedPolicyVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -155,15 +174,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.GetPolicyOptions)) { return super.equals(obj); } com.google.iam.v1.GetPolicyOptions other = (com.google.iam.v1.GetPolicyOptions) obj; - if (getRequestedPolicyVersion() - != other.getRequestedPolicyVersion()) return false; + if (getRequestedPolicyVersion() != other.getRequestedPolicyVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -182,118 +200,126 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.GetPolicyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.GetPolicyOptions parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.GetPolicyOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.GetPolicyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.GetPolicyOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.GetPolicyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.GetPolicyOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.GetPolicyOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.GetPolicyOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates settings provided to GetIamPolicy.
    * 
* * Protobuf type {@code google.iam.v1.GetPolicyOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.GetPolicyOptions) com.google.iam.v1.GetPolicyOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.GetPolicyOptions.class, com.google.iam.v1.GetPolicyOptions.Builder.class); + com.google.iam.v1.GetPolicyOptions.class, + com.google.iam.v1.GetPolicyOptions.Builder.class); } // Construct using com.google.iam.v1.GetPolicyOptions.newBuilder() @@ -301,16 +327,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(); @@ -320,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.OptionsProto + .internal_static_google_iam_v1_GetPolicyOptions_descriptor; } @java.lang.Override @@ -351,38 +376,39 @@ public com.google.iam.v1.GetPolicyOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.GetPolicyOptions) { - return mergeFrom((com.google.iam.v1.GetPolicyOptions)other); + return mergeFrom((com.google.iam.v1.GetPolicyOptions) other); } else { super.mergeFrom(other); return this; @@ -423,8 +449,10 @@ public Builder mergeFrom( return this; } - private int requestedPolicyVersion_ ; + private int requestedPolicyVersion_; /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -443,6 +471,7 @@ public Builder mergeFrom(
      * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ @java.lang.Override @@ -450,6 +479,8 @@ public int getRequestedPolicyVersion() { return requestedPolicyVersion_; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -468,16 +499,19 @@ public int getRequestedPolicyVersion() {
      * 
* * int32 requested_policy_version = 1; + * * @param value The requestedPolicyVersion to set. * @return This builder for chaining. */ public Builder setRequestedPolicyVersion(int value) { - + requestedPolicyVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum policy version that will be used to format the
      * policy.
@@ -496,17 +530,18 @@ public Builder setRequestedPolicyVersion(int value) {
      * 
* * int32 requested_policy_version = 1; + * * @return This builder for chaining. */ public Builder clearRequestedPolicyVersion() { - + requestedPolicyVersion_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -516,12 +551,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.GetPolicyOptions) } // @@protoc_insertion_point(class_scope:google.iam.v1.GetPolicyOptions) private static final com.google.iam.v1.GetPolicyOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.GetPolicyOptions(); } @@ -530,16 +565,16 @@ public static com.google.iam.v1.GetPolicyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -554,6 +589,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.GetPolicyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java index 64770ef7..1cd51a99 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto package com.google.iam.v1; -public interface GetPolicyOptionsOrBuilder extends +public interface GetPolicyOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.GetPolicyOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The maximum policy version that will be used to format the
    * policy.
@@ -26,6 +44,7 @@ public interface GetPolicyOptionsOrBuilder extends
    * 
* * int32 requested_policy_version = 1; + * * @return The requestedPolicyVersion. */ int getRequestedPolicyVersion(); diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java new file mode 100644 index 00000000..57652c10 --- /dev/null +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/iam_policy.proto + +package com.google.iam.v1; + +public final class IamPolicyProto { + private IamPolicyProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\036google/iam/v1/iam_policy.proto\022\rgoogle" + + ".iam.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032\033google/iam/v1/options.proto\032\032google/" + + "iam/v1/policy.proto\032 google/protobuf/fie" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\206\001\n\021" + + "com.google.iam.v1B\016IamPolicyProtoP\001Z0goo" + + "gle.golang.org/genproto/googleapis/iam/v" + + "1;iam\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\" + + "Cloud\\Iam\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.OptionsProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_SetIamPolicyRequest_descriptor, + new java.lang.String[] { + "Resource", "Policy", "UpdateMask", + }); + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_GetIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetIamPolicyRequest_descriptor, + new java.lang.String[] { + "Resource", "Options", + }); + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor, + new java.lang.String[] { + "Resource", "Permissions", + }); + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor, + new java.lang.String[] { + "Permissions", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.OptionsProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java new file mode 100644 index 00000000..9c13280b --- /dev/null +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/options.proto + +package com.google.iam.v1; + +public final class OptionsProto { + private OptionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_GetPolicyOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\033google/iam/v1/options.proto\022\rgoogle.ia" + + "m.v1\"4\n\020GetPolicyOptions\022 \n\030requested_po" + + "licy_version\030\001 \001(\005B\204\001\n\021com.google.iam.v1" + + "B\014OptionsProtoP\001Z0google.golang.org/genp" + + "roto/googleapis/iam/v1;iam\370\001\001\252\002\023Google.C" + + "loud.Iam.V1\312\002\023Google\\Cloud\\Iam\\V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_iam_v1_GetPolicyOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_GetPolicyOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_GetPolicyOptions_descriptor, + new java.lang.String[] { + "RequestedPolicyVersion", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java similarity index 85% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java index 98eec1b1..ac67ceeb 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * An Identity and Access Management (IAM) policy, which specifies access
  * controls for Google Cloud resources.
@@ -68,15 +85,16 @@
  *
  * Protobuf type {@code google.iam.v1.Policy}
  */
-public final class Policy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Policy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.iam.v1.Policy)
     PolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Policy.newBuilder() to construct.
   private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Policy() {
     bindings_ = java.util.Collections.emptyList();
     auditConfigs_ = java.util.Collections.emptyList();
@@ -85,16 +103,15 @@ private Policy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Policy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Policy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -114,48 +131,49 @@ private Policy(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            version_ = input.readInt32();
-            break;
-          }
-          case 26: {
-
-            etag_ = input.readBytes();
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              bindings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 8:
+            {
+              version_ = input.readInt32();
+              break;
             }
-            bindings_.add(
-                input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              auditConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              etag_ = input.readBytes();
+              break;
             }
-            auditConfigs_.add(
-                input.readMessage(com.google.iam.v1.AuditConfig.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                bindings_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              bindings_.add(
+                  input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry));
+              break;
+            }
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                auditConfigs_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              auditConfigs_.add(
+                  input.readMessage(com.google.iam.v1.AuditConfig.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         bindings_ = java.util.Collections.unmodifiableList(bindings_);
@@ -167,8 +185,8 @@ private Policy(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
   }
 
@@ -183,6 +201,8 @@ private Policy(
   public static final int VERSION_FIELD_NUMBER = 1;
   private int version_;
   /**
+   *
+   *
    * 
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -205,6 +225,7 @@ private Policy(
    * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -215,6 +236,8 @@ public int getVersion() { public static final int BINDINGS_FIELD_NUMBER = 4; private java.util.List bindings_; /** + * + * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -234,6 +257,8 @@ public java.util.List getBindingsList() {
     return bindings_;
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -249,11 +274,12 @@ public java.util.List getBindingsList() {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public java.util.List 
-      getBindingsOrBuilderList() {
+  public java.util.List getBindingsOrBuilderList() {
     return bindings_;
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -273,6 +299,8 @@ public int getBindingsCount() {
     return bindings_.size();
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -292,6 +320,8 @@ public com.google.iam.v1.Binding getBindings(int index) {
     return bindings_.get(index);
   }
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -307,14 +337,15 @@ public com.google.iam.v1.Binding getBindings(int index) {
    * repeated .google.iam.v1.Binding bindings = 4;
    */
   @java.lang.Override
-  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-      int index) {
+  public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
     return bindings_.get(index);
   }
 
   public static final int AUDIT_CONFIGS_FIELD_NUMBER = 6;
   private java.util.List auditConfigs_;
   /**
+   *
+   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -326,6 +357,8 @@ public java.util.List getAuditConfigsList() { return auditConfigs_; } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -333,11 +366,13 @@ public java.util.List getAuditConfigsList() { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigsOrBuilderList() { return auditConfigs_; } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -349,6 +384,8 @@ public int getAuditConfigsCount() { return auditConfigs_.size(); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -360,6 +397,8 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { return auditConfigs_.get(index); } /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -367,14 +406,15 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ @java.lang.Override - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { return auditConfigs_.get(index); } public static final int ETAG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString etag_; /** + * + * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -390,6 +430,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(
    * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -398,6 +439,7 @@ public com.google.protobuf.ByteString getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -409,8 +451,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0) { output.writeInt32(1, version_); } @@ -433,20 +474,16 @@ public int getSerializedSize() { size = 0; if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); } if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, etag_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, etag_); } for (int i = 0; i < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, bindings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, bindings_.get(i)); } for (int i = 0; i < auditConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, auditConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, auditConfigs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -456,21 +493,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.Policy)) { return super.equals(obj); } com.google.iam.v1.Policy other = (com.google.iam.v1.Policy) obj; - if (getVersion() - != other.getVersion()) return false; - if (!getBindingsList() - .equals(other.getBindingsList())) return false; - if (!getAuditConfigsList() - .equals(other.getAuditConfigsList())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (getVersion() != other.getVersion()) return false; + if (!getBindingsList().equals(other.getBindingsList())) return false; + if (!getAuditConfigsList().equals(other.getAuditConfigsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -499,97 +532,103 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.Policy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.Policy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.Policy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.Policy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.Policy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.Policy parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.Policy parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An Identity and Access Management (IAM) policy, which specifies access
    * controls for Google Cloud resources.
@@ -654,12 +693,11 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.iam.v1.Policy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.iam.v1.Policy)
       com.google.iam.v1.PolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -676,18 +714,18 @@ 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) {
         getBindingsFieldBuilder();
         getAuditConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -711,8 +749,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
     }
 
@@ -762,38 +799,39 @@ public com.google.iam.v1.Policy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.iam.v1.Policy) {
-        return mergeFrom((com.google.iam.v1.Policy)other);
+        return mergeFrom((com.google.iam.v1.Policy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -823,9 +861,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             bindingsBuilder_ = null;
             bindings_ = other.bindings_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            bindingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBindingsFieldBuilder() : null;
+            bindingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBindingsFieldBuilder()
+                    : null;
           } else {
             bindingsBuilder_.addAllMessages(other.bindings_);
           }
@@ -849,9 +888,10 @@ public Builder mergeFrom(com.google.iam.v1.Policy other) {
             auditConfigsBuilder_ = null;
             auditConfigs_ = other.auditConfigs_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            auditConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAuditConfigsFieldBuilder() : null;
+            auditConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAuditConfigsFieldBuilder()
+                    : null;
           } else {
             auditConfigsBuilder_.addAllMessages(other.auditConfigs_);
           }
@@ -888,10 +928,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private int version_ ;
+    private int version_;
     /**
+     *
+     *
      * 
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -914,6 +957,7 @@ public Builder mergeFrom(
      * 
* * int32 version = 1; + * * @return The version. */ @java.lang.Override @@ -921,6 +965,8 @@ public int getVersion() { return version_; } /** + * + * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -943,16 +989,19 @@ public int getVersion() {
      * 
* * int32 version = 1; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the format of the policy.
      * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -975,28 +1024,34 @@ public Builder setVersion(int value) {
      * 
* * int32 version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0; onChanged(); return this; } - private java.util.List bindings_ = - java.util.Collections.emptyList(); + private java.util.List bindings_ = java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindings_ = new java.util.ArrayList(bindings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> bindingsBuilder_; + com.google.iam.v1.Binding, + com.google.iam.v1.Binding.Builder, + com.google.iam.v1.BindingOrBuilder> + bindingsBuilder_; /** + * + * *
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1019,6 +1074,8 @@ public java.util.List getBindingsList() {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1041,6 +1098,8 @@ public int getBindingsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1063,6 +1122,8 @@ public com.google.iam.v1.Binding getBindings(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1077,8 +1138,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(
-        int index, com.google.iam.v1.Binding value) {
+    public Builder setBindings(int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1092,6 +1152,8 @@ public Builder setBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1106,8 +1168,7 @@ public Builder setBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder setBindings(
-        int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.set(index, builderForValue.build());
@@ -1118,6 +1179,8 @@ public Builder setBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1146,6 +1209,8 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1160,8 +1225,7 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        int index, com.google.iam.v1.Binding value) {
+    public Builder addBindings(int index, com.google.iam.v1.Binding value) {
       if (bindingsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1175,6 +1239,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1189,8 +1255,7 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(builderForValue.build());
@@ -1201,6 +1266,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1215,8 +1282,7 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addBindings(
-        int index, com.google.iam.v1.Binding.Builder builderForValue) {
+    public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderForValue) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
         bindings_.add(index, builderForValue.build());
@@ -1227,6 +1293,8 @@ public Builder addBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1241,12 +1309,10 @@ public Builder addBindings(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public Builder addAllBindings(
-        java.lang.Iterable values) {
+    public Builder addAllBindings(java.lang.Iterable values) {
       if (bindingsBuilder_ == null) {
         ensureBindingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, bindings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_);
         onChanged();
       } else {
         bindingsBuilder_.addAllMessages(values);
@@ -1254,6 +1320,8 @@ public Builder addAllBindings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1279,6 +1347,8 @@ public Builder clearBindings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1304,6 +1374,8 @@ public Builder removeBindings(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1318,11 +1390,12 @@ public Builder removeBindings(int index) {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder getBindingsBuilder(
-        int index) {
+    public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) {
       return getBindingsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1337,14 +1410,16 @@ public com.google.iam.v1.Binding.Builder getBindingsBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-        int index) {
+    public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
       if (bindingsBuilder_ == null) {
-        return bindings_.get(index);  } else {
+        return bindings_.get(index);
+      } else {
         return bindingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1359,8 +1434,7 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List 
-         getBindingsOrBuilderList() {
+    public java.util.List getBindingsOrBuilderList() {
       if (bindingsBuilder_ != null) {
         return bindingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1368,6 +1442,8 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1383,10 +1459,11 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
      * repeated .google.iam.v1.Binding bindings = 4;
      */
     public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
-      return getBindingsFieldBuilder().addBuilder(
-          com.google.iam.v1.Binding.getDefaultInstance());
+      return getBindingsFieldBuilder().addBuilder(com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1401,12 +1478,13 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public com.google.iam.v1.Binding.Builder addBindingsBuilder(
-        int index) {
-      return getBindingsFieldBuilder().addBuilder(
-          index, com.google.iam.v1.Binding.getDefaultInstance());
+    public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
+      return getBindingsFieldBuilder()
+          .addBuilder(index, com.google.iam.v1.Binding.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Associates a list of `members`, or principals, with a `role`. Optionally,
      * may specify a `condition` that determines how and when the `bindings` are
@@ -1421,38 +1499,46 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder(
      *
      * repeated .google.iam.v1.Binding bindings = 4;
      */
-    public java.util.List 
-         getBindingsBuilderList() {
+    public java.util.List getBindingsBuilderList() {
       return getBindingsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> 
+            com.google.iam.v1.Binding,
+            com.google.iam.v1.Binding.Builder,
+            com.google.iam.v1.BindingOrBuilder>
         getBindingsFieldBuilder() {
       if (bindingsBuilder_ == null) {
-        bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>(
-                bindings_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        bindingsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.iam.v1.Binding,
+                com.google.iam.v1.Binding.Builder,
+                com.google.iam.v1.BindingOrBuilder>(
+                bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         bindings_ = null;
       }
       return bindingsBuilder_;
     }
 
     private java.util.List auditConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAuditConfigsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         auditConfigs_ = new java.util.ArrayList(auditConfigs_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> auditConfigsBuilder_;
+            com.google.iam.v1.AuditConfig,
+            com.google.iam.v1.AuditConfig.Builder,
+            com.google.iam.v1.AuditConfigOrBuilder>
+        auditConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1467,6 +1553,8 @@ public java.util.List getAuditConfigsList() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1481,6 +1569,8 @@ public int getAuditConfigsCount() { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1495,14 +1585,15 @@ public com.google.iam.v1.AuditConfig getAuditConfigs(int index) { } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder setAuditConfigs( - int index, com.google.iam.v1.AuditConfig value) { + public Builder setAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1516,6 +1607,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1534,6 +1627,8 @@ public Builder setAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1554,14 +1649,15 @@ public Builder addAuditConfigs(com.google.iam.v1.AuditConfig value) { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs( - int index, com.google.iam.v1.AuditConfig value) { + public Builder addAuditConfigs(int index, com.google.iam.v1.AuditConfig value) { if (auditConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1575,14 +1671,15 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public Builder addAuditConfigs( - com.google.iam.v1.AuditConfig.Builder builderForValue) { + public Builder addAuditConfigs(com.google.iam.v1.AuditConfig.Builder builderForValue) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); auditConfigs_.add(builderForValue.build()); @@ -1593,6 +1690,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1611,6 +1710,8 @@ public Builder addAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1621,8 +1722,7 @@ public Builder addAllAuditConfigs( java.lang.Iterable values) { if (auditConfigsBuilder_ == null) { ensureAuditConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigs_); onChanged(); } else { auditConfigsBuilder_.addAllMessages(values); @@ -1630,6 +1730,8 @@ public Builder addAllAuditConfigs( return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1647,6 +1749,8 @@ public Builder clearAuditConfigs() { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1664,39 +1768,44 @@ public Builder removeAuditConfigs(int index) { return this; } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder( - int index) { + public com.google.iam.v1.AuditConfig.Builder getAuditConfigsBuilder(int index) { return getAuditConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index) { if (auditConfigsBuilder_ == null) { - return auditConfigs_.get(index); } else { + return auditConfigs_.get(index); + } else { return auditConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List - getAuditConfigsOrBuilderList() { + public java.util.List + getAuditConfigsOrBuilderList() { if (auditConfigsBuilder_ != null) { return auditConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1704,6 +1813,8 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( } } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
@@ -1711,42 +1822,47 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder() { - return getAuditConfigsFieldBuilder().addBuilder( - com.google.iam.v1.AuditConfig.getDefaultInstance()); + return getAuditConfigsFieldBuilder() + .addBuilder(com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( - int index) { - return getAuditConfigsFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditConfig.getDefaultInstance()); + public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(int index) { + return getAuditConfigsFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditConfig.getDefaultInstance()); } /** + * + * *
      * Specifies cloud audit logging configuration for this policy.
      * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - public java.util.List - getAuditConfigsBuilderList() { + public java.util.List getAuditConfigsBuilderList() { return getAuditConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder> + com.google.iam.v1.AuditConfig, + com.google.iam.v1.AuditConfig.Builder, + com.google.iam.v1.AuditConfigOrBuilder> getAuditConfigsFieldBuilder() { if (auditConfigsBuilder_ == null) { - auditConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfig, com.google.iam.v1.AuditConfig.Builder, com.google.iam.v1.AuditConfigOrBuilder>( - auditConfigs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + auditConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfig, + com.google.iam.v1.AuditConfig.Builder, + com.google.iam.v1.AuditConfigOrBuilder>( + auditConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); auditConfigs_ = null; } return auditConfigsBuilder_; @@ -1754,6 +1870,8 @@ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder( private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1769,6 +1887,7 @@ public com.google.iam.v1.AuditConfig.Builder addAuditConfigsBuilder(
      * 
* * bytes etag = 3; + * * @return The etag. */ @java.lang.Override @@ -1776,6 +1895,8 @@ public com.google.protobuf.ByteString getEtag() { return etag_; } /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1791,19 +1912,22 @@ public com.google.protobuf.ByteString getEtag() {
      * 
* * bytes etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * `etag` is used for optimistic concurrency control as a way to help
      * prevent simultaneous updates of a policy from overwriting each other.
@@ -1819,17 +1943,18 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
      * 
* * bytes etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1839,12 +1964,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.Policy) } // @@protoc_insertion_point(class_scope:google.iam.v1.Policy) private static final com.google.iam.v1.Policy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.Policy(); } @@ -1853,16 +1978,16 @@ public static com.google.iam.v1.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1877,6 +2002,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java similarity index 78% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index 7a4e4d75..c26773e9 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; /** + * + * *
  * The difference delta between two policies.
  * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ -public final class PolicyDelta extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyDelta extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.PolicyDelta) PolicyDeltaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyDelta.newBuilder() to construct. private PolicyDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyDelta() { bindingDeltas_ = java.util.Collections.emptyList(); auditConfigDeltas_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private PolicyDelta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyDelta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyDelta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,38 +72,40 @@ private PolicyDelta( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bindingDeltas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bindingDeltas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindingDeltas_.add( + input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry)); + break; } - bindingDeltas_.add( - input.readMessage(com.google.iam.v1.BindingDelta.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + auditConfigDeltas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + auditConfigDeltas_.add( + input.readMessage( + com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry)); + break; } - auditConfigDeltas_.add( - input.readMessage(com.google.iam.v1.AuditConfigDelta.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = java.util.Collections.unmodifiableList(bindingDeltas_); @@ -98,15 +117,16 @@ private PolicyDelta( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto + .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } @@ -114,6 +134,8 @@ private PolicyDelta( public static final int BINDING_DELTAS_FIELD_NUMBER = 1; private java.util.List bindingDeltas_; /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -125,6 +147,8 @@ public java.util.List getBindingDeltasList() { return bindingDeltas_; } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -132,11 +156,13 @@ public java.util.List getBindingDeltasList() { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBindingDeltasOrBuilderList() { return bindingDeltas_; } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -148,6 +174,8 @@ public int getBindingDeltasCount() { return bindingDeltas_.size(); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -159,6 +187,8 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { return bindingDeltas_.get(index); } /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -166,14 +196,15 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ @java.lang.Override - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { return bindingDeltas_.get(index); } public static final int AUDIT_CONFIG_DELTAS_FIELD_NUMBER = 2; private java.util.List auditConfigDeltas_; /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -185,6 +216,8 @@ public java.util.List getAuditConfigDeltasLi return auditConfigDeltas_; } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -192,11 +225,13 @@ public java.util.List getAuditConfigDeltasLi * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAuditConfigDeltasOrBuilderList() { return auditConfigDeltas_; } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -208,6 +243,8 @@ public int getAuditConfigDeltasCount() { return auditConfigDeltas_.size(); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -219,6 +256,8 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { return auditConfigDeltas_.get(index); } /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -226,12 +265,12 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ @java.lang.Override - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { return auditConfigDeltas_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < bindingDeltas_.size(); i++) { output.writeMessage(1, bindingDeltas_.get(i)); } @@ -261,12 +299,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bindingDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindingDeltas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindingDeltas_.get(i)); } for (int i = 0; i < auditConfigDeltas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, auditConfigDeltas_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, auditConfigDeltas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,17 +313,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.PolicyDelta)) { return super.equals(obj); } com.google.iam.v1.PolicyDelta other = (com.google.iam.v1.PolicyDelta) obj; - if (!getBindingDeltasList() - .equals(other.getBindingDeltasList())) return false; - if (!getAuditConfigDeltasList() - .equals(other.getAuditConfigDeltasList())) return false; + if (!getBindingDeltasList().equals(other.getBindingDeltasList())) return false; + if (!getAuditConfigDeltasList().equals(other.getAuditConfigDeltasList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,116 +346,122 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.PolicyDelta parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.PolicyDelta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.v1.PolicyDelta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.PolicyDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.PolicyDelta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.PolicyDelta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.PolicyDelta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.PolicyDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.PolicyDelta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.PolicyDelta parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.iam.v1.PolicyDelta parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.PolicyDelta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.PolicyDelta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The difference delta between two policies.
    * 
* * Protobuf type {@code google.iam.v1.PolicyDelta} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.PolicyDelta) com.google.iam.v1.PolicyDeltaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable + return com.google.iam.v1.PolicyProto + .internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.v1.PolicyDelta.class, com.google.iam.v1.PolicyDelta.Builder.class); } @@ -430,18 +471,18 @@ 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) { getBindingDeltasFieldBuilder(); getAuditConfigDeltasFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -461,8 +502,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor; } @@ -510,38 +550,39 @@ public com.google.iam.v1.PolicyDelta buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.PolicyDelta) { - return mergeFrom((com.google.iam.v1.PolicyDelta)other); + return mergeFrom((com.google.iam.v1.PolicyDelta) other); } else { super.mergeFrom(other); return this; @@ -568,9 +609,10 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { bindingDeltasBuilder_ = null; bindingDeltas_ = other.bindingDeltas_; bitField0_ = (bitField0_ & ~0x00000001); - bindingDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindingDeltasFieldBuilder() : null; + bindingDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBindingDeltasFieldBuilder() + : null; } else { bindingDeltasBuilder_.addAllMessages(other.bindingDeltas_); } @@ -594,9 +636,10 @@ public Builder mergeFrom(com.google.iam.v1.PolicyDelta other) { auditConfigDeltasBuilder_ = null; auditConfigDeltas_ = other.auditConfigDeltas_; bitField0_ = (bitField0_ & ~0x00000002); - auditConfigDeltasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAuditConfigDeltasFieldBuilder() : null; + auditConfigDeltasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAuditConfigDeltasFieldBuilder() + : null; } else { auditConfigDeltasBuilder_.addAllMessages(other.auditConfigDeltas_); } @@ -630,21 +673,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List bindingDeltas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBindingDeltasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bindingDeltas_ = new java.util.ArrayList(bindingDeltas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> bindingDeltasBuilder_; + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder> + bindingDeltasBuilder_; /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -659,6 +709,8 @@ public java.util.List getBindingDeltasList() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -673,6 +725,8 @@ public int getBindingDeltasCount() { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -687,14 +741,15 @@ public com.google.iam.v1.BindingDelta getBindingDeltas(int index) { } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder setBindingDeltas( - int index, com.google.iam.v1.BindingDelta value) { + public Builder setBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -708,6 +763,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -726,6 +783,8 @@ public Builder setBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -746,14 +805,15 @@ public Builder addBindingDeltas(com.google.iam.v1.BindingDelta value) { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas( - int index, com.google.iam.v1.BindingDelta value) { + public Builder addBindingDeltas(int index, com.google.iam.v1.BindingDelta value) { if (bindingDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -767,14 +827,15 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public Builder addBindingDeltas( - com.google.iam.v1.BindingDelta.Builder builderForValue) { + public Builder addBindingDeltas(com.google.iam.v1.BindingDelta.Builder builderForValue) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); bindingDeltas_.add(builderForValue.build()); @@ -785,6 +846,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -803,6 +866,8 @@ public Builder addBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -813,8 +878,7 @@ public Builder addAllBindingDeltas( java.lang.Iterable values) { if (bindingDeltasBuilder_ == null) { ensureBindingDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindingDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindingDeltas_); onChanged(); } else { bindingDeltasBuilder_.addAllMessages(values); @@ -822,6 +886,8 @@ public Builder addAllBindingDeltas( return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -839,6 +905,8 @@ public Builder clearBindingDeltas() { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -856,39 +924,44 @@ public Builder removeBindingDeltas(int index) { return this; } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder( - int index) { + public com.google.iam.v1.BindingDelta.Builder getBindingDeltasBuilder(int index) { return getBindingDeltasFieldBuilder().getBuilder(index); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index) { + public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index) { if (bindingDeltasBuilder_ == null) { - return bindingDeltas_.get(index); } else { + return bindingDeltas_.get(index); + } else { return bindingDeltasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasOrBuilderList() { + public java.util.List + getBindingDeltasOrBuilderList() { if (bindingDeltasBuilder_ != null) { return bindingDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -896,6 +969,8 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( } } /** + * + * *
      * The delta for Bindings between two policies.
      * 
@@ -903,38 +978,46 @@ public com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder() { - return getBindingDeltasFieldBuilder().addBuilder( - com.google.iam.v1.BindingDelta.getDefaultInstance()); + return getBindingDeltasFieldBuilder() + .addBuilder(com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( - int index) { - return getBindingDeltasFieldBuilder().addBuilder( - index, com.google.iam.v1.BindingDelta.getDefaultInstance()); + public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder(int index) { + return getBindingDeltasFieldBuilder() + .addBuilder(index, com.google.iam.v1.BindingDelta.getDefaultInstance()); } /** + * + * *
      * The delta for Bindings between two policies.
      * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - public java.util.List - getBindingDeltasBuilderList() { + public java.util.List getBindingDeltasBuilderList() { return getBindingDeltasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder> + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder> getBindingDeltasFieldBuilder() { if (bindingDeltasBuilder_ == null) { - bindingDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.BindingDelta, com.google.iam.v1.BindingDelta.Builder, com.google.iam.v1.BindingDeltaOrBuilder>( + bindingDeltasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.BindingDelta, + com.google.iam.v1.BindingDelta.Builder, + com.google.iam.v1.BindingDeltaOrBuilder>( bindingDeltas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -945,18 +1028,25 @@ public com.google.iam.v1.BindingDelta.Builder addBindingDeltasBuilder( } private java.util.List auditConfigDeltas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAuditConfigDeltasIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - auditConfigDeltas_ = new java.util.ArrayList(auditConfigDeltas_); + auditConfigDeltas_ = + new java.util.ArrayList(auditConfigDeltas_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> auditConfigDeltasBuilder_; + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder> + auditConfigDeltasBuilder_; /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -971,6 +1061,8 @@ public java.util.List getAuditConfigDeltasLi } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -985,6 +1077,8 @@ public int getAuditConfigDeltasCount() { } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -999,14 +1093,15 @@ public com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index) { } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder setAuditConfigDeltas( - int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder setAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1020,6 +1115,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1038,6 +1135,8 @@ public Builder setAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1058,14 +1157,15 @@ public Builder addAuditConfigDeltas(com.google.iam.v1.AuditConfigDelta value) { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public Builder addAuditConfigDeltas( - int index, com.google.iam.v1.AuditConfigDelta value) { + public Builder addAuditConfigDeltas(int index, com.google.iam.v1.AuditConfigDelta value) { if (auditConfigDeltasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1079,6 +1179,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1097,6 +1199,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1115,6 +1219,8 @@ public Builder addAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1125,8 +1231,7 @@ public Builder addAllAuditConfigDeltas( java.lang.Iterable values) { if (auditConfigDeltasBuilder_ == null) { ensureAuditConfigDeltasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, auditConfigDeltas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auditConfigDeltas_); onChanged(); } else { auditConfigDeltasBuilder_.addAllMessages(values); @@ -1134,6 +1239,8 @@ public Builder addAllAuditConfigDeltas( return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1151,6 +1258,8 @@ public Builder clearAuditConfigDeltas() { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1168,39 +1277,44 @@ public Builder removeAuditConfigDeltas(int index) { return this; } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder( - int index) { + public com.google.iam.v1.AuditConfigDelta.Builder getAuditConfigDeltasBuilder(int index) { return getAuditConfigDeltasFieldBuilder().getBuilder(index); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index) { + public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index) { if (auditConfigDeltasBuilder_ == null) { - return auditConfigDeltas_.get(index); } else { + return auditConfigDeltas_.get(index); + } else { return auditConfigDeltasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasOrBuilderList() { + public java.util.List + getAuditConfigDeltasOrBuilderList() { if (auditConfigDeltasBuilder_ != null) { return auditConfigDeltasBuilder_.getMessageOrBuilderList(); } else { @@ -1208,6 +1322,8 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder } } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
@@ -1215,38 +1331,47 @@ public com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder() { - return getAuditConfigDeltasFieldBuilder().addBuilder( - com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + return getAuditConfigDeltasFieldBuilder() + .addBuilder(com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( - int index) { - return getAuditConfigDeltasFieldBuilder().addBuilder( - index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); + public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder(int index) { + return getAuditConfigDeltasFieldBuilder() + .addBuilder(index, com.google.iam.v1.AuditConfigDelta.getDefaultInstance()); } /** + * + * *
      * The delta for AuditConfigs between two policies.
      * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - public java.util.List - getAuditConfigDeltasBuilderList() { + public java.util.List + getAuditConfigDeltasBuilderList() { return getAuditConfigDeltasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder> + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder> getAuditConfigDeltasFieldBuilder() { if (auditConfigDeltasBuilder_ == null) { - auditConfigDeltasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.v1.AuditConfigDelta, com.google.iam.v1.AuditConfigDelta.Builder, com.google.iam.v1.AuditConfigDeltaOrBuilder>( + auditConfigDeltasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.iam.v1.AuditConfigDelta, + com.google.iam.v1.AuditConfigDelta.Builder, + com.google.iam.v1.AuditConfigDeltaOrBuilder>( auditConfigDeltas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1255,9 +1380,9 @@ public com.google.iam.v1.AuditConfigDelta.Builder addAuditConfigDeltasBuilder( } return auditConfigDeltasBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1392,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.PolicyDelta) } // @@protoc_insertion_point(class_scope:google.iam.v1.PolicyDelta) private static final com.google.iam.v1.PolicyDelta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.PolicyDelta(); } @@ -1281,16 +1406,16 @@ public static com.google.iam.v1.PolicyDelta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyDelta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyDelta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyDelta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1305,6 +1430,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.iam.v1.PolicyDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index 4deb8c1b..fd3e1c0d 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyDeltaOrBuilder extends +public interface PolicyDeltaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.PolicyDelta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List - getBindingDeltasList(); + java.util.List getBindingDeltasList(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -25,6 +44,8 @@ public interface PolicyDeltaOrBuilder extends */ com.google.iam.v1.BindingDelta getBindingDeltas(int index); /** + * + * *
    * The delta for Bindings between two policies.
    * 
@@ -33,34 +54,39 @@ public interface PolicyDeltaOrBuilder extends */ int getBindingDeltasCount(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - java.util.List - getBindingDeltasOrBuilderList(); + java.util.List getBindingDeltasOrBuilderList(); /** + * + * *
    * The delta for Bindings between two policies.
    * 
* * repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ - com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( - int index); + com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder(int index); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List - getAuditConfigDeltasList(); + java.util.List getAuditConfigDeltasList(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -69,6 +95,8 @@ com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( */ com.google.iam.v1.AuditConfigDelta getAuditConfigDeltas(int index); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
@@ -77,21 +105,24 @@ com.google.iam.v1.BindingDeltaOrBuilder getBindingDeltasOrBuilder( */ int getAuditConfigDeltasCount(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - java.util.List + java.util.List getAuditConfigDeltasOrBuilderList(); /** + * + * *
    * The delta for AuditConfigs between two policies.
    * 
* * repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ - com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder( - int index); + com.google.iam.v1.AuditConfigDeltaOrBuilder getAuditConfigDeltasOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java similarity index 86% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java index 70e913de..571dcb80 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto package com.google.iam.v1; -public interface PolicyOrBuilder extends +public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies the format of the policy.
    * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
@@ -30,11 +48,14 @@ public interface PolicyOrBuilder extends
    * 
* * int32 version = 1; + * * @return The version. */ int getVersion(); /** + * + * *
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -49,9 +70,10 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List 
-      getBindingsList();
+  java.util.List getBindingsList();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -68,6 +90,8 @@ public interface PolicyOrBuilder extends
    */
   com.google.iam.v1.Binding getBindings(int index);
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -84,6 +108,8 @@ public interface PolicyOrBuilder extends
    */
   int getBindingsCount();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -98,9 +124,10 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  java.util.List 
-      getBindingsOrBuilderList();
+  java.util.List getBindingsOrBuilderList();
   /**
+   *
+   *
    * 
    * Associates a list of `members`, or principals, with a `role`. Optionally,
    * may specify a `condition` that determines how and when the `bindings` are
@@ -115,19 +142,21 @@ public interface PolicyOrBuilder extends
    *
    * repeated .google.iam.v1.Binding bindings = 4;
    */
-  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(
-      int index);
+  com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List - getAuditConfigsList(); + java.util.List getAuditConfigsList(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -136,6 +165,8 @@ com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( */ com.google.iam.v1.AuditConfig getAuditConfigs(int index); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
@@ -144,25 +175,29 @@ com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder( */ int getAuditConfigsCount(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - java.util.List - getAuditConfigsOrBuilderList(); + java.util.List getAuditConfigsOrBuilderList(); /** + * + * *
    * Specifies cloud audit logging configuration for this policy.
    * 
* * repeated .google.iam.v1.AuditConfig audit_configs = 6; */ - com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder( - int index); + com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index); /** + * + * *
    * `etag` is used for optimistic concurrency control as a way to help
    * prevent simultaneous updates of a policy from overwriting each other.
@@ -178,6 +213,7 @@ com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(
    * 
* * bytes etag = 3; + * * @return The etag. */ com.google.protobuf.ByteString getEtag(); diff --git a/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java new file mode 100644 index 00000000..8ba3e50a --- /dev/null +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/policy.proto + +package com.google.iam.v1; + +public final class PolicyProto { + private PolicyProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Policy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Policy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_Binding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_Binding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditLogConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_PolicyDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_BindingDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_AuditConfigDelta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\032google/iam/v1/policy.proto\022\rgoogle.iam" + + ".v1\032\026google/type/expr.proto\"\204\001\n\006Policy\022\017" + + "\n\007version\030\001 \001(\005\022(\n\010bindings\030\004 \003(\0132\026.goog" + + "le.iam.v1.Binding\0221\n\raudit_configs\030\006 \003(\013" + + "2\032.google.iam.v1.AuditConfig\022\014\n\004etag\030\003 \001" + + "(\014\"N\n\007Binding\022\014\n\004role\030\001 \001(\t\022\017\n\007members\030\002" + + " \003(\t\022$\n\tcondition\030\003 \001(\0132\021.google.type.Ex" + + "pr\"X\n\013AuditConfig\022\017\n\007service\030\001 \001(\t\0228\n\021au" + + "dit_log_configs\030\003 \003(\0132\035.google.iam.v1.Au" + + "ditLogConfig\"\267\001\n\016AuditLogConfig\0227\n\010log_t" + + "ype\030\001 \001(\0162%.google.iam.v1.AuditLogConfig" + + ".LogType\022\030\n\020exempted_members\030\002 \003(\t\"R\n\007Lo" + + "gType\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\016\n\nADMIN" + + "_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\r\n\tDATA_READ\020\003\"\200" + + "\001\n\013PolicyDelta\0223\n\016binding_deltas\030\001 \003(\0132\033" + + ".google.iam.v1.BindingDelta\022<\n\023audit_con" + + "fig_deltas\030\002 \003(\0132\037.google.iam.v1.AuditCo" + + "nfigDelta\"\275\001\n\014BindingDelta\0222\n\006action\030\001 \001" + + "(\0162\".google.iam.v1.BindingDelta.Action\022\014" + + "\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\022$\n\tconditio" + + "n\030\004 \001(\0132\021.google.type.Expr\"5\n\006Action\022\026\n\022" + + "ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020" + + "\002\"\275\001\n\020AuditConfigDelta\0226\n\006action\030\001 \001(\0162&" + + ".google.iam.v1.AuditConfigDelta.Action\022\017" + + "\n\007service\030\002 \001(\t\022\027\n\017exempted_member\030\003 \001(\t" + + "\022\020\n\010log_type\030\004 \001(\t\"5\n\006Action\022\026\n\022ACTION_U" + + "NSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002B\203\001\n\021co" + + "m.google.iam.v1B\013PolicyProtoP\001Z0google.g" + + "olang.org/genproto/googleapis/iam/v1;iam" + + "\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud" + + "\\Iam\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v1_Policy_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_Policy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Policy_descriptor, + new java.lang.String[] { + "Version", "Bindings", "AuditConfigs", "Etag", + }); + internal_static_google_iam_v1_Binding_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_v1_Binding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_Binding_descriptor, + new java.lang.String[] { + "Role", "Members", "Condition", + }); + internal_static_google_iam_v1_AuditConfig_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_v1_AuditConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfig_descriptor, + new java.lang.String[] { + "Service", "AuditLogConfigs", + }); + internal_static_google_iam_v1_AuditLogConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_v1_AuditLogConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditLogConfig_descriptor, + new java.lang.String[] { + "LogType", "ExemptedMembers", + }); + internal_static_google_iam_v1_PolicyDelta_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_v1_PolicyDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_PolicyDelta_descriptor, + new java.lang.String[] { + "BindingDeltas", "AuditConfigDeltas", + }); + internal_static_google_iam_v1_BindingDelta_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_v1_BindingDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_BindingDelta_descriptor, + new java.lang.String[] { + "Action", "Role", "Member", "Condition", + }); + internal_static_google_iam_v1_AuditConfigDelta_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_v1_AuditConfigDelta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_AuditConfigDelta_descriptor, + new java.lang.String[] { + "Action", "Service", "ExemptedMember", "LogType", + }); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 0dc41a6f..69e7e674 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** + * + * *
  * Request message for `SetIamPolicy` method.
  * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ -public final class SetIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.SetIamPolicyRequest) SetIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetIamPolicyRequest.newBuilder() to construct. private SetIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetIamPolicyRequest() { resource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SetIamPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,79 +70,90 @@ private SetIamPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 18: { - 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(); + resource_ = s; + break; } + case 18: + { + 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 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, + com.google.iam.v1.SetIamPolicyRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -134,30 +162,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -168,6 +198,8 @@ public java.lang.String getResource() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -176,6 +208,7 @@ public java.lang.String getResource() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -183,6 +216,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -191,6 +226,7 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ @java.lang.Override @@ -198,6 +234,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -215,6 +253,8 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -223,6 +263,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -230,6 +271,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -238,6 +281,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -245,6 +289,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -260,6 +306,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -271,8 +318,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
     }
@@ -295,12 +341,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
     }
     if (policy_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getPolicy());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -310,24 +354,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.iam.v1.SetIamPolicyRequest)) {
       return super.equals(obj);
     }
     com.google.iam.v1.SetIamPolicyRequest other = (com.google.iam.v1.SetIamPolicyRequest) obj;
 
-    if (!getResource()
-        .equals(other.getResource())) return false;
+    if (!getResource().equals(other.getResource())) return false;
     if (hasPolicy() != other.hasPolicy()) return false;
     if (hasPolicy()) {
-      if (!getPolicy()
-          .equals(other.getPolicy())) return false;
+      if (!getPolicy().equals(other.getPolicy())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -355,118 +396,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.iam.v1.SetIamPolicyRequest parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.iam.v1.SetIamPolicyRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.iam.v1.SetIamPolicyRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `SetIamPolicy` method.
    * 
* * Protobuf type {@code google.iam.v1.SetIamPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.SetIamPolicyRequest) com.google.iam.v1.SetIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.SetIamPolicyRequest.class, com.google.iam.v1.SetIamPolicyRequest.Builder.class); + com.google.iam.v1.SetIamPolicyRequest.class, + com.google.iam.v1.SetIamPolicyRequest.Builder.class); } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() @@ -474,16 +523,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(); @@ -505,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_SetIamPolicyRequest_descriptor; } @java.lang.Override @@ -526,7 +574,8 @@ public com.google.iam.v1.SetIamPolicyRequest build() { @java.lang.Override public com.google.iam.v1.SetIamPolicyRequest buildPartial() { - com.google.iam.v1.SetIamPolicyRequest result = new com.google.iam.v1.SetIamPolicyRequest(this); + com.google.iam.v1.SetIamPolicyRequest result = + new com.google.iam.v1.SetIamPolicyRequest(this); result.resource_ = resource_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -546,38 +595,39 @@ public com.google.iam.v1.SetIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.SetIamPolicyRequest) { - return mergeFrom((com.google.iam.v1.SetIamPolicyRequest)other); + return mergeFrom((com.google.iam.v1.SetIamPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -627,19 +677,23 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -648,21 +702,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -670,57 +727,70 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy is being specified.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -728,8 +798,13 @@ public Builder setResourceBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -738,12 +813,15 @@ public Builder setResourceBytes(
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -752,6 +830,7 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -762,6 +841,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -785,6 +866,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -794,8 +877,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
      *
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setPolicy(
-        com.google.iam.v1.Policy.Builder builderForValue) {
+    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       if (policyBuilder_ == null) {
         policy_ = builderForValue.build();
         onChanged();
@@ -806,6 +888,8 @@ public Builder setPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -818,8 +902,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;
         }
@@ -831,6 +914,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -852,6 +937,8 @@ public Builder clearPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -862,11 +949,13 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-      
+
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -880,11 +969,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       if (policyBuilder_ != null) {
         return policyBuilder_.getMessageOrBuilder();
       } else {
-        return policy_ == null ?
-            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
+        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
       }
     }
     /**
+     *
+     *
      * 
      * REQUIRED: The complete policy to be applied to the `resource`. The size of
      * the policy is limited to a few 10s of KB. An empty policy is a
@@ -895,14 +985,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
+            com.google.iam.v1.Policy,
+            com.google.iam.v1.Policy.Builder,
+            com.google.iam.v1.PolicyOrBuilder>
         getPolicyFieldBuilder() {
       if (policyBuilder_ == null) {
-        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
-                getPolicy(),
-                getParentForChildren(),
-                isClean());
+        policyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.iam.v1.Policy,
+                com.google.iam.v1.Policy.Builder,
+                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
         policy_ = null;
       }
       return policyBuilder_;
@@ -910,8 +1002,13 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -920,12 +1017,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -934,16 +1034,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -967,6 +1072,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -976,8 +1083,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -988,6 +1094,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1001,7 +1109,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -1013,6 +1121,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1034,6 +1144,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1044,11 +1156,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1062,11 +1176,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
      * the fields in the mask will be modified. If no mask is provided, the
@@ -1077,21 +1194,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1101,12 +1221,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.iam.v1.SetIamPolicyRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.iam.v1.SetIamPolicyRequest)
   private static final com.google.iam.v1.SetIamPolicyRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.iam.v1.SetIamPolicyRequest();
   }
@@ -1115,16 +1235,16 @@ public static com.google.iam.v1.SetIamPolicyRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SetIamPolicyRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SetIamPolicyRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SetIamPolicyRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SetIamPolicyRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1139,6 +1259,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.iam.v1.SetIamPolicyRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
index e13b8ea2..48ab0dff 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
@@ -1,35 +1,62 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
-public interface SetIamPolicyRequestOrBuilder extends
+public interface SetIamPolicyRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.iam.v1.SetIamPolicyRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy is being specified.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -38,10 +65,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -50,10 +80,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
    * REQUIRED: The complete policy to be applied to the `resource`. The size of
    * the policy is limited to a few 10s of KB. An empty policy is a
@@ -66,6 +99,8 @@ public interface SetIamPolicyRequestOrBuilder extends
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -74,10 +109,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
@@ -86,10 +124,13 @@ public interface SetIamPolicyRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
    * the fields in the mask will be modified. If no mask is provided, the
diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
index 2df2bd3d..5fdcc731 100644
--- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
+++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/iam/v1/iam_policy.proto
 
 package com.google.iam.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ -public final class TestIamPermissionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestIamPermissionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsRequest) TestIamPermissionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestIamPermissionsRequest.newBuilder() to construct. private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestIamPermissionsRequest() { resource_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private TestIamPermissionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TestIamPermissionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private TestIamPermissionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + resource_ = s; + break; } - permissions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + permissions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + permissions_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -92,28 +110,36 @@ private TestIamPermissionsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, + com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getResource() { public static final int PERMISSIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList permissions_; /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -164,13 +194,15 @@ public java.lang.String getResource() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -179,12 +211,15 @@ public java.lang.String getResource() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -193,6 +228,7 @@ public int getPermissionsCount() {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -200,6 +236,8 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -208,15 +246,16 @@ public java.lang.String getPermissions(int index) {
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } @@ -264,17 +302,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.TestIamPermissionsRequest)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsRequest other = (com.google.iam.v1.TestIamPermissionsRequest) obj; + com.google.iam.v1.TestIamPermissionsRequest other = + (com.google.iam.v1.TestIamPermissionsRequest) obj; - if (!getResource() - .equals(other.getResource())) return false; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,118 +334,127 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.TestIamPermissionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.TestIamPermissionsRequest) com.google.iam.v1.TestIamPermissionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsRequest.class, com.google.iam.v1.TestIamPermissionsRequest.Builder.class); + com.google.iam.v1.TestIamPermissionsRequest.class, + com.google.iam.v1.TestIamPermissionsRequest.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsRequest.newBuilder() @@ -416,16 +462,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(); @@ -437,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor; } @java.lang.Override @@ -458,7 +503,8 @@ public com.google.iam.v1.TestIamPermissionsRequest build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { - com.google.iam.v1.TestIamPermissionsRequest result = new com.google.iam.v1.TestIamPermissionsRequest(this); + com.google.iam.v1.TestIamPermissionsRequest result = + new com.google.iam.v1.TestIamPermissionsRequest(this); int from_bitField0_ = bitField0_; result.resource_ = resource_; if (((bitField0_ & 0x00000001) != 0)) { @@ -474,38 +520,39 @@ public com.google.iam.v1.TestIamPermissionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.TestIamPermissionsRequest) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest)other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsRequest) other); } else { super.mergeFrom(other); return this; @@ -556,23 +603,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -581,21 +633,24 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -603,70 +658,87 @@ public java.lang.String getResource() { } } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * REQUIRED: The resource for which the policy detail is being requested.
      * See the operation documentation for the appropriate value for this field.
      * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -675,13 +747,15 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -690,12 +764,15 @@ private void ensurePermissionsIsMutable() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -704,6 +781,7 @@ public int getPermissionsCount() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -711,6 +789,8 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -719,14 +799,16 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -735,21 +817,23 @@ public java.lang.String getPermissions(int index) {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { + public Builder setPermissions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -758,20 +842,22 @@ public Builder setPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { + public Builder addPermissions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -780,18 +866,19 @@ public Builder addPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -800,6 +887,7 @@ public Builder addAllPermissions(
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -809,6 +897,8 @@ public Builder clearPermissions() { return this; } /** + * + * *
      * The set of permissions to check for the `resource`. Permissions with
      * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -817,23 +907,23 @@ public Builder clearPermissions() {
      * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -843,12 +933,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsRequest) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsRequest) private static final com.google.iam.v1.TestIamPermissionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsRequest(); } @@ -857,16 +947,16 @@ public static com.google.iam.v1.TestIamPermissionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TestIamPermissionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestIamPermissionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +971,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 262da448..53b56f27 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsRequestOrBuilder extends +public interface TestIamPermissionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * REQUIRED: The resource for which the policy detail is being requested.
    * See the operation documentation for the appropriate value for this field.
    * 
* - * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -38,11 +65,13 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -51,10 +80,13 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -63,11 +95,14 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
    * The set of permissions to check for the `resource`. Permissions with
    * wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -76,9 +111,9 @@ public interface TestIamPermissionsRequestOrBuilder extends
    * 
* * repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index f80a14c3..50400d50 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; /** + * + * *
  * Response message for `TestIamPermissions` method.
  * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ -public final class TestIamPermissionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TestIamPermissionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.v1.TestIamPermissionsResponse) TestIamPermissionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TestIamPermissionsResponse.newBuilder() to construct. private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TestIamPermissionsResponse() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TestIamPermissionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TestIamPermissionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,29 @@ private TestIamPermissionsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + permissions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + permissions_.add(s); + break; } - permissions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -85,53 +102,64 @@ private TestIamPermissionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, + com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -139,21 +167,24 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -195,15 +225,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.v1.TestIamPermissionsResponse)) { return super.equals(obj); } - com.google.iam.v1.TestIamPermissionsResponse other = (com.google.iam.v1.TestIamPermissionsResponse) obj; + com.google.iam.v1.TestIamPermissionsResponse other = + (com.google.iam.v1.TestIamPermissionsResponse) obj; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,118 +254,127 @@ public int hashCode() { return hash; } - public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.v1.TestIamPermissionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.iam.v1.TestIamPermissionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `TestIamPermissions` method.
    * 
* * Protobuf type {@code google.iam.v1.TestIamPermissionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.v1.TestIamPermissionsResponse) com.google.iam.v1.TestIamPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.v1.TestIamPermissionsResponse.class, com.google.iam.v1.TestIamPermissionsResponse.Builder.class); + com.google.iam.v1.TestIamPermissionsResponse.class, + com.google.iam.v1.TestIamPermissionsResponse.Builder.class); } // Construct using com.google.iam.v1.TestIamPermissionsResponse.newBuilder() @@ -343,16 +382,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(); @@ -362,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.v1.IamPolicyProto.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.IamPolicyProto + .internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor; } @java.lang.Override @@ -383,7 +421,8 @@ public com.google.iam.v1.TestIamPermissionsResponse build() { @java.lang.Override public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { - com.google.iam.v1.TestIamPermissionsResponse result = new com.google.iam.v1.TestIamPermissionsResponse(this); + com.google.iam.v1.TestIamPermissionsResponse result = + new com.google.iam.v1.TestIamPermissionsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -398,38 +437,39 @@ public com.google.iam.v1.TestIamPermissionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.v1.TestIamPermissionsResponse) { - return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse)other); + return mergeFrom((com.google.iam.v1.TestIamPermissionsResponse) other); } else { super.mergeFrom(other); return this; @@ -476,47 +516,58 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -524,85 +575,95 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { + public Builder setPermissions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { + public Builder addPermissions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -612,29 +673,31 @@ public Builder clearPermissions() { return this; } /** + * + * *
      * A subset of `TestPermissionsRequest.permissions` that the caller is
      * allowed.
      * 
* * repeated string permissions = 1; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -644,12 +707,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.v1.TestIamPermissionsResponse) } // @@protoc_insertion_point(class_scope:google.iam.v1.TestIamPermissionsResponse) private static final com.google.iam.v1.TestIamPermissionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.v1.TestIamPermissionsResponse(); } @@ -658,16 +721,16 @@ public static com.google.iam.v1.TestIamPermissionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestIamPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TestIamPermissionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestIamPermissionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,6 +745,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.iam.v1.TestIamPermissionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java rename to proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index ace164f5..da677cbe 100644 --- a/owl-bot-staging/v1/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -1,54 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto package com.google.iam.v1; -public interface TestIamPermissionsResponseOrBuilder extends +public interface TestIamPermissionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
    * A subset of `TestPermissionsRequest.permissions` that the caller is
    * allowed.
    * 
* * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); }