public final class ObjectAccessControl extends com.google.protobuf.GeneratedMessageV3 implements ObjectAccessControlOrBuilder
An access-control entry.Protobuf type
google.storage.v2.ObjectAccessControl| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectAccessControl.Builder
An access-control entry.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DOMAIN_FIELD_NUMBER |
static int |
EMAIL_FIELD_NUMBER |
static int |
ENTITY_ALT_FIELD_NUMBER |
static int |
ENTITY_FIELD_NUMBER |
static int |
ENTITY_ID_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
PROJECT_TEAM_FIELD_NUMBER |
static int |
ROLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ObjectAccessControl |
getDefaultInstance() |
ObjectAccessControl |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDomain()
The domain associated with the entity, if any.
|
com.google.protobuf.ByteString |
getDomainBytes()
The domain associated with the entity, if any.
|
String |
getEmail()
The email address associated with the entity, if any.
|
com.google.protobuf.ByteString |
getEmailBytes()
The email address associated with the entity, if any.
|
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`.
|
String |
getEntityAlt()
Output only.
|
com.google.protobuf.ByteString |
getEntityAltBytes()
Output only.
|
com.google.protobuf.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`.
|
String |
getEntityId()
The ID for the entity, if any.
|
com.google.protobuf.ByteString |
getEntityIdBytes()
The ID for the entity, if any.
|
String |
getEtag()
The etag of the ObjectAccessControl.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the ObjectAccessControl.
|
String |
getId()
The ID of the access-control entry.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of the access-control entry.
|
com.google.protobuf.Parser<ObjectAccessControl> |
getParserForType() |
ProjectTeam |
getProjectTeam()
The project team associated with the entity, if any.
|
ProjectTeamOrBuilder |
getProjectTeamOrBuilder()
The project team associated with the entity, if any.
|
String |
getRole()
The access permission for the entity.
|
com.google.protobuf.ByteString |
getRoleBytes()
The access permission for the entity.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasProjectTeam()
The project team associated with the entity, if any.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ObjectAccessControl.Builder |
newBuilder() |
static ObjectAccessControl.Builder |
newBuilder(ObjectAccessControl prototype) |
ObjectAccessControl.Builder |
newBuilderForType() |
protected ObjectAccessControl.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ObjectAccessControl |
parseDelimitedFrom(InputStream input) |
static ObjectAccessControl |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ObjectAccessControl |
parseFrom(byte[] data) |
static ObjectAccessControl |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ObjectAccessControl |
parseFrom(ByteBuffer data) |
static ObjectAccessControl |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ObjectAccessControl |
parseFrom(com.google.protobuf.ByteString data) |
static ObjectAccessControl |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ObjectAccessControl |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ObjectAccessControl |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ObjectAccessControl |
parseFrom(InputStream input) |
static ObjectAccessControl |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ObjectAccessControl> |
parser() |
ObjectAccessControl.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ROLE_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
public static final int ENTITY_ALT_FIELD_NUMBER
public static final int ENTITY_ID_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
public static final int PROJECT_TEAM_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getRole()
The access permission for the entity.
string role = 1;getRole in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.ByteString getRoleBytes()
The access permission for the entity.
string role = 1;getRoleBytes in interface ObjectAccessControlOrBuilderpublic String getId()
The ID of the access-control entry.
string id = 2;getId in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the access-control entry.
string id = 2;getIdBytes in interface ObjectAccessControlOrBuilderpublic 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;getEntity in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.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;getEntityBytes in interface ObjectAccessControlOrBuilderpublic 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];getEntityAlt in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.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];getEntityAltBytes in interface ObjectAccessControlOrBuilderpublic String getEntityId()
The ID for the entity, if any.
string entity_id = 4;getEntityId in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.ByteString getEntityIdBytes()
The ID for the entity, if any.
string entity_id = 4;getEntityIdBytes in interface ObjectAccessControlOrBuilderpublic 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;getEtag in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.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;getEtagBytes in interface ObjectAccessControlOrBuilderpublic String getEmail()
The email address associated with the entity, if any.
string email = 5;getEmail in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.ByteString getEmailBytes()
The email address associated with the entity, if any.
string email = 5;getEmailBytes in interface ObjectAccessControlOrBuilderpublic String getDomain()
The domain associated with the entity, if any.
string domain = 6;getDomain in interface ObjectAccessControlOrBuilderpublic com.google.protobuf.ByteString getDomainBytes()
The domain associated with the entity, if any.
string domain = 6;getDomainBytes in interface ObjectAccessControlOrBuilderpublic boolean hasProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;hasProjectTeam in interface ObjectAccessControlOrBuilderpublic ProjectTeam getProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;getProjectTeam in interface ObjectAccessControlOrBuilderpublic ProjectTeamOrBuilder getProjectTeamOrBuilder()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;getProjectTeamOrBuilder in interface ObjectAccessControlOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ObjectAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ObjectAccessControl parseFrom(InputStream input) throws IOException
IOExceptionpublic static ObjectAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ObjectAccessControl parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ObjectAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ObjectAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ObjectAccessControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ObjectAccessControl.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ObjectAccessControl.Builder newBuilder()
public static ObjectAccessControl.Builder newBuilder(ObjectAccessControl prototype)
public ObjectAccessControl.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ObjectAccessControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ObjectAccessControl getDefaultInstance()
public static com.google.protobuf.Parser<ObjectAccessControl> parser()
public com.google.protobuf.Parser<ObjectAccessControl> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ObjectAccessControl getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.