Class ObjectAccessControl (2.36.1)

public final class ObjectAccessControl extends GeneratedMessageV3 implements ObjectAccessControlOrBuilder

An access-control entry.

Protobuf type google.storage.v2.ObjectAccessControl

Static Fields

DOMAIN_FIELD_NUMBER

public static final int DOMAIN_FIELD_NUMBER
Field Value
TypeDescription
int

EMAIL_FIELD_NUMBER

public static final int EMAIL_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_ALT_FIELD_NUMBER

public static final int ENTITY_ALT_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_ID_FIELD_NUMBER

public static final int ENTITY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_TEAM_FIELD_NUMBER

public static final int PROJECT_TEAM_FIELD_NUMBER
Field Value
TypeDescription
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ObjectAccessControl getDefaultInstance()
Returns
TypeDescription
ObjectAccessControl

getDescriptor()

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

newBuilder()

public static ObjectAccessControl.Builder newBuilder()
Returns
TypeDescription
ObjectAccessControl.Builder

newBuilder(ObjectAccessControl prototype)

public static ObjectAccessControl.Builder newBuilder(ObjectAccessControl prototype)
Parameter
NameDescription
prototypeObjectAccessControl
Returns
TypeDescription
ObjectAccessControl.Builder

parseDelimitedFrom(InputStream input)

public static ObjectAccessControl parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ObjectAccessControl parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ObjectAccessControl parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ObjectAccessControl parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ObjectAccessControl parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ObjectAccessControl parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ObjectAccessControl parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectAccessControl
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ObjectAccessControl> parser()
Returns
TypeDescription
Parser<ObjectAccessControl>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ObjectAccessControl getDefaultInstanceForType()
Returns
TypeDescription
ObjectAccessControl

getDomain()

public String getDomain()

The domain associated with the entity, if any.

string domain = 6;

Returns
TypeDescription
String

The domain.

getDomainBytes()

public ByteString getDomainBytes()

The domain associated with the entity, if any.

string domain = 6;

Returns
TypeDescription
ByteString

The bytes for domain.

getEmail()

public String getEmail()

The email address associated with the entity, if any.

string email = 5;

Returns
TypeDescription
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

The email address associated with the entity, if any.

string email = 5;

Returns
TypeDescription
ByteString

The bytes for email.

getEntity()

public String getEntity()

The entity holding the permission, in one of the following forms:

  • user-{userid}
  • user-{email}
  • group-{groupid}
  • group-{email}
  • domain-{domain}
  • project-{team}-{projectnumber}
  • project-{team}-{projectid}
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • All members of the Google Apps for Business domain example.com would be domain-example.com. For project entities, project-{team}-{projectnumber} format will be returned on response.

string entity = 3;

Returns
TypeDescription
String

The entity.

getEntityAlt()

public String getEntityAlt()

Output only. The alternative entity format, if exists. For project entities, project-{team}-{projectid} format will be returned on response.

string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The entityAlt.

getEntityAltBytes()

public ByteString getEntityAltBytes()

Output only. The alternative entity format, if exists. For project entities, project-{team}-{projectid} format will be returned on response.

string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for entityAlt.

getEntityBytes()

public ByteString getEntityBytes()

The entity holding the permission, in one of the following forms:

  • user-{userid}
  • user-{email}
  • group-{groupid}
  • group-{email}
  • domain-{domain}
  • project-{team}-{projectnumber}
  • project-{team}-{projectid}
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user liz@example.com would be user-liz@example.com.
  • The group example@googlegroups.com would be group-example@googlegroups.com.
  • All members of the Google Apps for Business domain example.com would be domain-example.com. For project entities, project-{team}-{projectnumber} format will be returned on response.

string entity = 3;

Returns
TypeDescription
ByteString

The bytes for entity.

getEntityId()

public String getEntityId()

The ID for the entity, if any.

string entity_id = 4;

Returns
TypeDescription
String

The entityId.

getEntityIdBytes()

public ByteString getEntityIdBytes()

The ID for the entity, if any.

string entity_id = 4;

Returns
TypeDescription
ByteString

The bytes for entityId.

getEtag()

public String getEtag()

The etag of the ObjectAccessControl. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object's ObjectAccessControl.

string etag = 8;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

The etag of the ObjectAccessControl. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object's ObjectAccessControl.

string etag = 8;

Returns
TypeDescription
ByteString

The bytes for etag.

getId()

public String getId()

The ID of the access-control entry.

string id = 2;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the access-control entry.

string id = 2;

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

public Parser<ObjectAccessControl> getParserForType()
Returns
TypeDescription
Parser<ObjectAccessControl>
Overrides

getProjectTeam()

public ProjectTeam getProjectTeam()

The project team associated with the entity, if any.

.google.storage.v2.ProjectTeam project_team = 7;

Returns
TypeDescription
ProjectTeam

The projectTeam.

getProjectTeamOrBuilder()

public ProjectTeamOrBuilder getProjectTeamOrBuilder()

The project team associated with the entity, if any.

.google.storage.v2.ProjectTeam project_team = 7;

Returns
TypeDescription
ProjectTeamOrBuilder

getRole()

public String getRole()

The access permission for the entity.

string role = 1;

Returns
TypeDescription
String

The role.

getRoleBytes()

public ByteString getRoleBytes()

The access permission for the entity.

string role = 1;

Returns
TypeDescription
ByteString

The bytes for role.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasProjectTeam()

public boolean hasProjectTeam()

The project team associated with the entity, if any.

.google.storage.v2.ProjectTeam project_team = 7;

Returns
TypeDescription
boolean

Whether the projectTeam field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ObjectAccessControl.Builder newBuilderForType()
Returns
TypeDescription
ObjectAccessControl.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ObjectAccessControl.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ObjectAccessControl.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ObjectAccessControl.Builder toBuilder()
Returns
TypeDescription
ObjectAccessControl.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException