public static final class TestIamPermissionsRequest.Builder extends GeneratedMessageV3.Builder<TestIamPermissionsRequest.Builder> implements TestIamPermissionsRequestOrBuilder
Request message for TestIamPermissions
method.
Protobuf type google.iam.v1.TestIamPermissionsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TestIamPermissionsRequest.BuilderImplements
TestIamPermissionsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The permissions to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The permissions to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the permissions to add. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TestIamPermissionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
build()
public TestIamPermissionsRequest build()
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest |
buildPartial()
public TestIamPermissionsRequest buildPartial()
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest |
clear()
public TestIamPermissionsRequest.Builder clear()
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public TestIamPermissionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TestIamPermissionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder | This builder for chaining. |
clone()
public TestIamPermissionsRequest.Builder clone()
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
getDefaultInstanceForType()
public TestIamPermissionsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for resource. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TestIamPermissionsRequest other)
public TestIamPermissionsRequest.Builder mergeFrom(TestIamPermissionsRequest other)
Parameter | |
---|---|
Name | Description |
other | TestIamPermissionsRequest |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TestIamPermissionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TestIamPermissionsRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TestIamPermissionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TestIamPermissionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The permissions to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The resource to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for resource to set. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TestIamPermissionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TestIamPermissionsRequest.Builder |