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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getRole()
The access permission for the entity.
string role = 1;
getRole
in interface BucketAccessControlOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
The access permission for the entity.
string role = 1;
getRoleBytes
in interface BucketAccessControlOrBuilder
public String getId()
The ID of the access-control entry.
string id = 2;
getId
in interface BucketAccessControlOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the access-control entry.
string id = 2;
getIdBytes
in interface BucketAccessControlOrBuilder
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;
getEntity
in interface BucketAccessControlOrBuilder
public 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 BucketAccessControlOrBuilder
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];
getEntityAlt
in interface BucketAccessControlOrBuilder
public 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 BucketAccessControlOrBuilder
public String getEntityId()
The ID for the entity, if any.
string entity_id = 4;
getEntityId
in interface BucketAccessControlOrBuilder
public com.google.protobuf.ByteString getEntityIdBytes()
The ID for the entity, if any.
string entity_id = 4;
getEntityIdBytes
in interface BucketAccessControlOrBuilder
public 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 BucketAccessControlOrBuilder
public 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 BucketAccessControlOrBuilder
public String getEmail()
The email address associated with the entity, if any.
string email = 5;
getEmail
in interface BucketAccessControlOrBuilder
public com.google.protobuf.ByteString getEmailBytes()
The email address associated with the entity, if any.
string email = 5;
getEmailBytes
in interface BucketAccessControlOrBuilder
public String getDomain()
The domain associated with the entity, if any.
string domain = 6;
getDomain
in interface BucketAccessControlOrBuilder
public com.google.protobuf.ByteString getDomainBytes()
The domain associated with the entity, if any.
string domain = 6;
getDomainBytes
in interface BucketAccessControlOrBuilder
public boolean hasProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
hasProjectTeam
in interface BucketAccessControlOrBuilder
public ProjectTeam getProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
getProjectTeam
in interface BucketAccessControlOrBuilder
public ProjectTeamOrBuilder getProjectTeamOrBuilder()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
getProjectTeamOrBuilder
in interface BucketAccessControlOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static BucketAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BucketAccessControl parseFrom(InputStream input) throws IOException
IOException
public static BucketAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BucketAccessControl parseDelimitedFrom(InputStream input) throws IOException
IOException
public static BucketAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public BucketAccessControl.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static BucketAccessControl.Builder newBuilder()
public static BucketAccessControl.Builder newBuilder(BucketAccessControl prototype)
public BucketAccessControl.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected BucketAccessControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static BucketAccessControl getDefaultInstance()
public static com.google.protobuf.Parser<BucketAccessControl> parser()
public com.google.protobuf.Parser<BucketAccessControl> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public BucketAccessControl getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.