Class TestIamPermissionsRequest.Builder (1.22.0)

public static final class TestIamPermissionsRequest.Builder extends GeneratedMessageV3.Builder<TestIamPermissionsRequest.Builder> implements TestIamPermissionsRequestOrBuilder

Request message for TestIamPermissions method.

Protobuf type google.iam.v1.TestIamPermissionsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPermissions(Iterable<String> values)

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The permissions to add.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

addPermissions(String value)

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The permissions to add.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public TestIamPermissionsRequest.Builder addPermissionsBytes(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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the permissions to add.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestIamPermissionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

build()

public TestIamPermissionsRequest build()
Returns
TypeDescription
TestIamPermissionsRequest

buildPartial()

public TestIamPermissionsRequest buildPartial()
Returns
TypeDescription
TestIamPermissionsRequest

clear()

public TestIamPermissionsRequest.Builder clear()
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TestIamPermissionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TestIamPermissionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TestIamPermissionsRequest.Builder

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

clone()

public TestIamPermissionsRequest.Builder clone()
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

getDefaultInstanceForType()

public TestIamPermissionsRequest getDefaultInstanceForType()
Returns
TypeDescription
TestIamPermissionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPermissions(int index)

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The permissions at the given index.

getPermissionsBytes(int index)

public 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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the permissions at the given index.

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of permissions.

getPermissionsList()

public ProtocolStringList 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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the permissions.

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The resource.

getResourceBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for resource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TestIamPermissionsRequest other)

public TestIamPermissionsRequest.Builder mergeFrom(TestIamPermissionsRequest other)
Parameter
NameDescription
otherTestIamPermissionsRequest
Returns
TypeDescription
TestIamPermissionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestIamPermissionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TestIamPermissionsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestIamPermissionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TestIamPermissionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

setPermissions(int index, String value)

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.

repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The permissions to set.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TestIamPermissionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides

setResource(String value)

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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public TestIamPermissionsRequest.Builder setResourceBytes(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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
TestIamPermissionsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TestIamPermissionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestIamPermissionsRequest.Builder
Overrides