Class TestIamPermissionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<TestIamPermissionsRequest,TestIamPermissionsRequest.Builder>
com.google.iam.v1.TestIamPermissionsRequest.Builder
All Implemented Interfaces:
TestIamPermissionsRequestOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
TestIamPermissionsRequest

public static final class TestIamPermissionsRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TestIamPermissionsRequest,TestIamPermissionsRequest.Builder> implements TestIamPermissionsRequestOrBuilder
 Request message for `TestIamPermissions` method.
 
Protobuf type google.iam.v1.TestIamPermissionsRequest
  • Method Details

    • getResource

      public 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 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResource in interface TestIamPermissionsRequestOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      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 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceBytes in interface TestIamPermissionsRequestOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public TestIamPermissionsRequest.Builder setResource(String value)
       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 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public TestIamPermissionsRequest.Builder clearResource()
       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 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceBytes

      public TestIamPermissionsRequest.Builder setResourceBytes(com.google.protobuf.ByteString value)
       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 [json_name = "resource", (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getPermissionsList

      public List<String> getPermissionsList()
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionsList in interface TestIamPermissionsRequestOrBuilder
      Returns:
      A list containing the permissions.
    • getPermissionsCount

      public int getPermissionsCount()
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionsCount in interface TestIamPermissionsRequestOrBuilder
      Returns:
      The count of permissions.
    • getPermissions

      public 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
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissions in interface TestIamPermissionsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissions at the given index.
    • getPermissionsBytes

      public com.google.protobuf.ByteString getPermissionsBytes(int index)
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionsBytes in interface TestIamPermissionsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the permissions at the given index.
    • setPermissions

      public TestIamPermissionsRequest.Builder setPermissions(int index, String value)
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The permissions to set.
      Returns:
      This builder for chaining.
    • addPermissions

      public TestIamPermissionsRequest.Builder addPermissions(String value)
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The permissions to add.
      Returns:
      This builder for chaining.
    • addAllPermissions

      public TestIamPermissionsRequest.Builder addAllPermissions(Iterable<String> values)
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The permissions to add.
      Returns:
      This builder for chaining.
    • clearPermissions

      public TestIamPermissionsRequest.Builder clearPermissions()
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addPermissionsBytes

      public TestIamPermissionsRequest.Builder addPermissionsBytes(com.google.protobuf.ByteString value)
       The set of permissions to check for the `resource`. Permissions with
       wildcards (such as '*' or 'storage.*') are not allowed. For more
       information see
       [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
       
      repeated string permissions = 2 [json_name = "permissions", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the permissions to add.
      Returns:
      This builder for chaining.