public final class ObjectAccessControl extends GeneratedMessageV3 implements ObjectAccessControlOrBuilder
An access-control entry.
Protobuf type google.storage.v2.ObjectAccessControl
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ObjectAccessControlImplements
ObjectAccessControlOrBuilderStatic Fields
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
Type | Description |
int |
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER
Type | Description |
int |
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
Type | Description |
int |
ENTITY_ID_FIELD_NUMBER
public static final int ENTITY_ID_FIELD_NUMBER
Type | Description |
int |
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Type | Description |
int |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Type | Description |
int |
PROJECT_TEAM_FIELD_NUMBER
public static final int PROJECT_TEAM_FIELD_NUMBER
Type | Description |
int |
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ObjectAccessControl getDefaultInstance()
Type | Description |
ObjectAccessControl |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static ObjectAccessControl.Builder newBuilder()
Type | Description |
ObjectAccessControl.Builder |
newBuilder(ObjectAccessControl prototype)
public static ObjectAccessControl.Builder newBuilder(ObjectAccessControl prototype)
Name | Description |
prototype | ObjectAccessControl |
Type | Description |
ObjectAccessControl.Builder |
parseDelimitedFrom(InputStream input)
public static ObjectAccessControl parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseFrom(byte[] data)
public static ObjectAccessControl parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ObjectAccessControl parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ObjectAccessControl parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseFrom(InputStream input)
public static ObjectAccessControl parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ObjectAccessControl parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ObjectAccessControl parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ObjectAccessControl |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ObjectAccessControl> parser()
Type | Description |
Parser<ObjectAccessControl> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public ObjectAccessControl getDefaultInstanceForType()
Type | Description |
ObjectAccessControl |
getDomain()
public String getDomain()
The domain associated with the entity, if any.
string domain = 6;
Type | Description |
String | The domain. |
getDomainBytes()
public ByteString getDomainBytes()
The domain associated with the entity, if any.
string domain = 6;
Type | Description |
ByteString | The bytes for domain. |
getEmail()
public String getEmail()
The email address associated with the entity, if any.
string email = 5;
Type | Description |
String | The email. |
getEmailBytes()
public ByteString getEmailBytes()
The email address associated with the entity, if any.
string email = 5;
Type | Description |
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-projectid}
allUsers
allAuthenticatedUsers
Examples:- The user
liz@example.com
would beuser-liz@example.com
. - The group
example@googlegroups.com
would begroup-example@googlegroups.com
. - All members of the Google Apps for Business domain
example.com
would bedomain-example.com
.
string entity = 3;
Type | Description |
String | The entity. |
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-projectid}
allUsers
allAuthenticatedUsers
Examples:- The user
liz@example.com
would beuser-liz@example.com
. - The group
example@googlegroups.com
would begroup-example@googlegroups.com
. - All members of the Google Apps for Business domain
example.com
would bedomain-example.com
.
string entity = 3;
Type | Description |
ByteString | The bytes for entity. |
getEntityId()
public String getEntityId()
The ID for the entity, if any.
string entity_id = 4;
Type | Description |
String | The entityId. |
getEntityIdBytes()
public ByteString getEntityIdBytes()
The ID for the entity, if any.
string entity_id = 4;
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for etag. |
getId()
public String getId()
The ID of the access-control entry.
string id = 2;
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
The ID of the access-control entry.
string id = 2;
Type | Description |
ByteString | The bytes for id. |
getParserForType()
public Parser<ObjectAccessControl> getParserForType()
Type | Description |
Parser<ObjectAccessControl> |
getProjectTeam()
public ProjectTeam getProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
Type | Description |
ProjectTeam | The projectTeam. |
getProjectTeamOrBuilder()
public ProjectTeamOrBuilder getProjectTeamOrBuilder()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
Type | Description |
ProjectTeamOrBuilder |
getRole()
public String getRole()
The access permission for the entity.
string role = 1;
Type | Description |
String | The role. |
getRoleBytes()
public ByteString getRoleBytes()
The access permission for the entity.
string role = 1;
Type | Description |
ByteString | The bytes for role. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasProjectTeam()
public boolean hasProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
Type | Description |
boolean | Whether the projectTeam field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public ObjectAccessControl.Builder newBuilderForType()
Type | Description |
ObjectAccessControl.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ObjectAccessControl.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
ObjectAccessControl.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public ObjectAccessControl.Builder toBuilder()
Type | Description |
ObjectAccessControl.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |