Package com.google.iam.v1
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllPermissions(Iterable<String> values) The set of permissions to check for the `resource`.addPermissions(String value) The set of permissions to check for the `resource`.addPermissionsBytes(com.google.protobuf.ByteString value) The set of permissions to check for the `resource`.The set of permissions to check for the `resource`.REQUIRED: The resource for which the policy detail is being requested.getPermissions(int index) The set of permissions to check for the `resource`.com.google.protobuf.ByteStringgetPermissionsBytes(int index) The set of permissions to check for the `resource`.intThe set of permissions to check for the `resource`.The set of permissions to check for the `resource`.REQUIRED: The resource for which the policy detail is being requested.com.google.protobuf.ByteStringREQUIRED: The resource for which the policy detail is being requested.setPermissions(int index, String value) The set of permissions to check for the `resource`.setResource(String value) REQUIRED: The resource for which the policy detail is being requested.setResourceBytes(com.google.protobuf.ByteString value) REQUIRED: The resource for which the policy detail is being requested.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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:
getResourcein interfaceTestIamPermissionsRequestOrBuilder- 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:
getResourceBytesin interfaceTestIamPermissionsRequestOrBuilder- Returns:
- The bytes for resource.
-
setResource
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
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
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
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:
getPermissionsListin interfaceTestIamPermissionsRequestOrBuilder- 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:
getPermissionsCountin interfaceTestIamPermissionsRequestOrBuilder- Returns:
- The count of permissions.
-
getPermissions
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:
getPermissionsin interfaceTestIamPermissionsRequestOrBuilder- 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:
getPermissionsBytesin interfaceTestIamPermissionsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the permissions at the given index.
-
setPermissions
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
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
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
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
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.
-