public final class BucketAccessControl extends com.google.protobuf.GeneratedMessageV3 implements BucketAccessControlOrBuilder
An access-control entry.Protobuf type
google.storage.v2.BucketAccessControl| Modifier and Type | Class and Description |
|---|---|
static class |
BucketAccessControl.Builder
An access-control entry.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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 BucketAccessControl |
getDefaultInstance() |
BucketAccessControl |
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 BucketAccessControl.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the BucketAccessControl.
|
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<BucketAccessControl> |
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() |
int |
hashCode() |
boolean |
hasProjectTeam()
The project team associated with the entity, if any.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static BucketAccessControl.Builder |
newBuilder() |
static BucketAccessControl.Builder |
newBuilder(BucketAccessControl prototype) |
BucketAccessControl.Builder |
newBuilderForType() |
protected BucketAccessControl.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BucketAccessControl |
parseDelimitedFrom(InputStream input) |
static BucketAccessControl |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BucketAccessControl |
parseFrom(byte[] data) |
static BucketAccessControl |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BucketAccessControl |
parseFrom(ByteBuffer data) |
static BucketAccessControl |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BucketAccessControl |
parseFrom(com.google.protobuf.ByteString data) |
static BucketAccessControl |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BucketAccessControl |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BucketAccessControl |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BucketAccessControl |
parseFrom(InputStream input) |
static BucketAccessControl |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BucketAccessControl> |
parser() |
BucketAccessControl.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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 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 BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getRoleBytes()
The access permission for the entity.
string role = 1;getRoleBytes in interface BucketAccessControlOrBuilderpublic String getId()
The ID of the access-control entry.
string id = 2;getId in interface BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the access-control entry.
string id = 2;getIdBytes in interface BucketAccessControlOrBuilderpublic 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 BucketAccessControlOrBuilderpublic 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 BucketAccessControlOrBuilderpublic 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 BucketAccessControlOrBuilderpublic 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 BucketAccessControlOrBuilderpublic String getEntityId()
The ID for the entity, if any.
string entity_id = 4;getEntityId in interface BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getEntityIdBytes()
The ID for the entity, if any.
string entity_id = 4;getEntityIdBytes in interface BucketAccessControlOrBuilderpublic String getEtag()
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;getEtag in interface BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;getEtagBytes in interface BucketAccessControlOrBuilderpublic String getEmail()
The email address associated with the entity, if any.
string email = 5;getEmail in interface BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getEmailBytes()
The email address associated with the entity, if any.
string email = 5;getEmailBytes in interface BucketAccessControlOrBuilderpublic String getDomain()
The domain associated with the entity, if any.
string domain = 6;getDomain in interface BucketAccessControlOrBuilderpublic com.google.protobuf.ByteString getDomainBytes()
The domain associated with the entity, if any.
string domain = 6;getDomainBytes in interface BucketAccessControlOrBuilderpublic boolean hasProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;hasProjectTeam in interface BucketAccessControlOrBuilderpublic ProjectTeam getProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;getProjectTeam in interface BucketAccessControlOrBuilderpublic ProjectTeamOrBuilder getProjectTeamOrBuilder()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;getProjectTeamOrBuilder in interface BucketAccessControlOrBuilderpublic 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 BucketAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BucketAccessControl parseFrom(InputStream input) throws IOException
IOExceptionpublic static BucketAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BucketAccessControl parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BucketAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BucketAccessControl.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BucketAccessControl.Builder newBuilder()
public static BucketAccessControl.Builder newBuilder(BucketAccessControl prototype)
public BucketAccessControl.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BucketAccessControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BucketAccessControl getDefaultInstance()
public static com.google.protobuf.Parser<BucketAccessControl> parser()
public com.google.protobuf.Parser<BucketAccessControl> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BucketAccessControl getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.