Class TestIamPermissionsResponse.Builder (1.8.0)

public static final class TestIamPermissionsResponse.Builder extends GeneratedMessageV3.Builder<TestIamPermissionsResponse.Builder> implements TestIamPermissionsResponseOrBuilder

Response message for TestIamPermissions method.

Protobuf type google.iam.v1.TestIamPermissionsResponse

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<String> values)

public TestIamPermissionsResponse.Builder addAllPermissions(Iterable<String> values)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Parameter
NameDescription
valuesIterable<String>

The permissions to add.

Returns
TypeDescription
TestIamPermissionsResponse.Builder

This builder for chaining.

addPermissions(String value)

public TestIamPermissionsResponse.Builder addPermissions(String value)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Parameter
NameDescription
valueString

The permissions to add.

Returns
TypeDescription
TestIamPermissionsResponse.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public TestIamPermissionsResponse.Builder addPermissionsBytes(ByteString value)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Parameter
NameDescription
valueByteString

The bytes of the permissions to add.

Returns
TypeDescription
TestIamPermissionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestIamPermissionsResponse build()
Returns
TypeDescription
TestIamPermissionsResponse

buildPartial()

public TestIamPermissionsResponse buildPartial()
Returns
TypeDescription
TestIamPermissionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public TestIamPermissionsResponse.Builder clearPermissions()

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Returns
TypeDescription
TestIamPermissionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TestIamPermissionsResponse getDefaultInstanceForType()
Returns
TypeDescription
TestIamPermissionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPermissions(int index)

public String getPermissions(int index)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

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)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

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()

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Returns
TypeDescription
int

The count of permissions.

getPermissionsList()

public ProtocolStringList getPermissionsList()

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the permissions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TestIamPermissionsResponse other)

public TestIamPermissionsResponse.Builder mergeFrom(TestIamPermissionsResponse other)
Parameter
NameDescription
otherTestIamPermissionsResponse
Returns
TypeDescription
TestIamPermissionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPermissions(int index, String value)

public TestIamPermissionsResponse.Builder setPermissions(int index, String value)

A subset of TestPermissionsRequest.permissions that the caller is allowed.

repeated string permissions = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The permissions to set.

Returns
TypeDescription
TestIamPermissionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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