Class AccessControlEntry (0.6.0)

public final class AccessControlEntry extends GeneratedMessageV3 implements AccessControlEntryOrBuilder

AccessControlEntry is used to control who can do some operation.

Protobuf type google.cloud.privilegedaccessmanager.v1.AccessControlEntry

Static Fields

PRINCIPALS_FIELD_NUMBER

public static final int PRINCIPALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AccessControlEntry getDefaultInstance()
Returns
Type Description
AccessControlEntry

getDescriptor()

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

newBuilder()

public static AccessControlEntry.Builder newBuilder()
Returns
Type Description
AccessControlEntry.Builder

newBuilder(AccessControlEntry prototype)

public static AccessControlEntry.Builder newBuilder(AccessControlEntry prototype)
Parameter
Name Description
prototype AccessControlEntry
Returns
Type Description
AccessControlEntry.Builder

parseDelimitedFrom(InputStream input)

public static AccessControlEntry parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AccessControlEntry parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccessControlEntry parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccessControlEntry parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AccessControlEntry parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AccessControlEntry parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccessControlEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessControlEntry
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AccessControlEntry> parser()
Returns
Type Description
Parser<AccessControlEntry>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AccessControlEntry getDefaultInstanceForType()
Returns
Type Description
AccessControlEntry

getParserForType()

public Parser<AccessControlEntry> getParserForType()
Returns
Type Description
Parser<AccessControlEntry>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AccessControlEntry.Builder newBuilderForType()
Returns
Type Description
AccessControlEntry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccessControlEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccessControlEntry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AccessControlEntry.Builder toBuilder()
Returns
Type Description
AccessControlEntry.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException