Class TestPermissionsResponse.Builder (1.44.0)

public static final class TestPermissionsResponse.Builder extends GeneratedMessageV3.Builder<TestPermissionsResponse.Builder> implements TestPermissionsResponseOrBuilder

Protobuf type google.cloud.compute.v1.TestPermissionsResponse

Static Methods

getDescriptor()

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

Methods

addAllPermissions(Iterable<String> values)

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

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

repeated string permissions = 59962500;

Parameter
NameDescription
valuesIterable<String>

The permissions to add.

Returns
TypeDescription
TestPermissionsResponse.Builder

This builder for chaining.

addPermissions(String value)

public TestPermissionsResponse.Builder addPermissions(String value)

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

repeated string permissions = 59962500;

Parameter
NameDescription
valueString

The permissions to add.

Returns
TypeDescription
TestPermissionsResponse.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public TestPermissionsResponse.Builder addPermissionsBytes(ByteString value)

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

repeated string permissions = 59962500;

Parameter
NameDescription
valueByteString

The bytes of the permissions to add.

Returns
TypeDescription
TestPermissionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestPermissionsResponse build()
Returns
TypeDescription
TestPermissionsResponse

buildPartial()

public TestPermissionsResponse buildPartial()
Returns
TypeDescription
TestPermissionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPermissions()

public TestPermissionsResponse.Builder clearPermissions()

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

repeated string permissions = 59962500;

Returns
TypeDescription
TestPermissionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TestPermissionsResponse getDefaultInstanceForType()
Returns
TypeDescription
TestPermissionsResponse

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

A subset of TestPermissionsRequest.permissions that the caller is 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()

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

repeated string permissions = 59962500;

Returns
TypeDescription
int

The count of permissions.

getPermissionsList()

public ProtocolStringList getPermissionsList()

A subset of TestPermissionsRequest.permissions that the caller is 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(TestPermissionsResponse other)

public TestPermissionsResponse.Builder mergeFrom(TestPermissionsResponse other)
Parameter
NameDescription
otherTestPermissionsResponse
Returns
TypeDescription
TestPermissionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPermissions(int index, String value)

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

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

repeated string permissions = 59962500;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The permissions to set.

Returns
TypeDescription
TestPermissionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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