Class TestPermissionsRequest.Builder (1.17.0)

public static final class TestPermissionsRequest.Builder extends GeneratedMessageV3.Builder<TestPermissionsRequest.Builder> implements TestPermissionsRequestOrBuilder

Protobuf type google.cloud.compute.v1.TestPermissionsRequest

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<String> values)

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

The set of permissions to check for the 'resource'. Permissions with wildcards (such as '' or 'storage.') are not allowed.

repeated string permissions = 59962500;

Parameter
NameDescription
valuesIterable<String>

The permissions to add.

Returns
TypeDescription
TestPermissionsRequest.Builder

This builder for chaining.

addPermissions(String value)

public TestPermissionsRequest.Builder addPermissions(String value)

The set of permissions to check for the 'resource'. Permissions with wildcards (such as '' or 'storage.') are not allowed.

repeated string permissions = 59962500;

Parameter
NameDescription
valueString

The permissions to add.

Returns
TypeDescription
TestPermissionsRequest.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public TestPermissionsRequest.Builder addPermissionsBytes(ByteString value)

The set of permissions to check for the 'resource'. Permissions with wildcards (such as '' or 'storage.') are not allowed.

repeated string permissions = 59962500;

Parameter
NameDescription
valueByteString

The bytes of the permissions to add.

Returns
TypeDescription
TestPermissionsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestPermissionsRequest build()
Returns
TypeDescription
TestPermissionsRequest

buildPartial()

public TestPermissionsRequest buildPartial()
Returns
TypeDescription
TestPermissionsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public TestPermissionsRequest.Builder clearPermissions()

The set of permissions to check for the 'resource'. Permissions with wildcards (such as '' or 'storage.') are not allowed.

repeated string permissions = 59962500;

Returns
TypeDescription
TestPermissionsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TestPermissionsRequest getDefaultInstanceForType()
Returns
TypeDescription
TestPermissionsRequest

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.

repeated string permissions = 59962500;

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.

repeated string permissions = 59962500;

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.

repeated string permissions = 59962500;

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.

repeated string permissions = 59962500;

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

public TestPermissionsRequest.Builder mergeFrom(TestPermissionsRequest other)
Parameter
NameDescription
otherTestPermissionsRequest
Returns
TypeDescription
TestPermissionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPermissions(int index, String value)

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

repeated string permissions = 59962500;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The permissions to set.

Returns
TypeDescription
TestPermissionsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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