public static final class AccessControlEntry.Builder extends GeneratedMessage.Builder<AccessControlEntry.Builder> implements AccessControlEntryOrBuilder AccessControlEntry is used to control who can do some operation.
Protobuf type google.cloud.privilegedaccessmanager.v1.AccessControlEntry
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AccessControlEntry.BuilderImplements
AccessControlEntryOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the principals to add. |
| Returns | |
|---|---|
| Type | Description |
AccessControlEntry.Builder |
This builder for chaining. |
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 |
|
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. |
getDefaultInstanceForType()
public AccessControlEntry getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AccessControlEntry |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AccessControlEntry.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AccessControlEntry.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe principals to set. |
| Returns | |
|---|---|
| Type | Description |
AccessControlEntry.Builder |
This builder for chaining. |