Class AccessControlEntry.Builder (0.3.0)

public static final class AccessControlEntry.Builder extends GeneratedMessageV3.Builder<AccessControlEntry.Builder> implements AccessControlEntryOrBuilder

AccessControlEntry is used to control who can do some operation.

Protobuf type google.cloud.privilegedaccessmanager.v1.AccessControlEntry

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPrincipals(Iterable<String> values)

public AccessControlEntry.Builder addAllPrincipals(Iterable<String> values)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The principals to add.

Returns
Type Description
AccessControlEntry.Builder

This builder for chaining.

addPrincipals(String value)

public AccessControlEntry.Builder addPrincipals(String value)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The principals to add.

Returns
Type Description
AccessControlEntry.Builder

This builder for chaining.

addPrincipalsBytes(ByteString value)

public AccessControlEntry.Builder addPrincipalsBytes(ByteString value)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the principals to add.

Returns
Type Description
AccessControlEntry.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessControlEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessControlEntry.Builder
Overrides

build()

public AccessControlEntry build()
Returns
Type Description
AccessControlEntry

buildPartial()

public AccessControlEntry buildPartial()
Returns
Type Description
AccessControlEntry

clear()

public AccessControlEntry.Builder clear()
Returns
Type Description
AccessControlEntry.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AccessControlEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccessControlEntry.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessControlEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AccessControlEntry.Builder
Overrides

clearPrincipals()

public AccessControlEntry.Builder clearPrincipals()

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessControlEntry.Builder

This builder for chaining.

clone()

public AccessControlEntry.Builder clone()
Returns
Type Description
AccessControlEntry.Builder
Overrides

getDefaultInstanceForType()

public AccessControlEntry getDefaultInstanceForType()
Returns
Type Description
AccessControlEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrincipals(int index)

public String getPrincipals(int index)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The principals at the given index.

getPrincipalsBytes(int index)

public ByteString getPrincipalsBytes(int index)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the principals at the given index.

getPrincipalsCount()

public int getPrincipalsCount()

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of principals.

getPrincipalsList()

public ProtocolStringList getPrincipalsList()

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the principals.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessControlEntry other)

public AccessControlEntry.Builder mergeFrom(AccessControlEntry other)
Parameter
Name Description
other AccessControlEntry
Returns
Type Description
AccessControlEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessControlEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AccessControlEntry.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AccessControlEntry.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessControlEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessControlEntry.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AccessControlEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessControlEntry.Builder
Overrides

setPrincipals(int index, String value)

public AccessControlEntry.Builder setPrincipals(int index, String value)

Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

repeated string principals = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The principals to set.

Returns
Type Description
AccessControlEntry.Builder

This builder for chaining.

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

public AccessControlEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccessControlEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessControlEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessControlEntry.Builder
Overrides