Package com.google.storage.v2
Class BucketAccessControl
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.BucketAccessControl
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BucketAccessControlOrBuilder,Serializable
public final class BucketAccessControl
extends com.google.protobuf.GeneratedMessageV3
implements BucketAccessControlOrBuilder
An access-control entry.Protobuf type
google.storage.v2.BucketAccessControl- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn access-control entry.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BucketAccessControlstatic final com.google.protobuf.Descriptors.DescriptorThe domain associated with the entity, if any.com.google.protobuf.ByteStringThe domain associated with the entity, if any.getEmail()The email address associated with the entity, if any.com.google.protobuf.ByteStringThe email address associated with the entity, if any.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`.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.ByteStringThe 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 ID for the entity, if any.com.google.protobuf.ByteStringThe ID for the entity, if any.getEtag()The etag of the BucketAccessControl.com.google.protobuf.ByteStringThe etag of the BucketAccessControl.getId()The ID of the access-control entry.com.google.protobuf.ByteStringThe ID of the access-control entry.com.google.protobuf.Parser<BucketAccessControl>The project team associated with the entity, if any.The project team associated with the entity, if any.getRole()The access permission for the entity.com.google.protobuf.ByteStringThe access permission for the entity.intinthashCode()booleanThe project team associated with the entity, if any.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic BucketAccessControl.Builderstatic BucketAccessControl.BuildernewBuilder(BucketAccessControl prototype) protected BucketAccessControl.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static BucketAccessControlparseDelimitedFrom(InputStream input) static BucketAccessControlparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BucketAccessControlparseFrom(byte[] data) static BucketAccessControlparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BucketAccessControlparseFrom(com.google.protobuf.ByteString data) static BucketAccessControlparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BucketAccessControlparseFrom(com.google.protobuf.CodedInputStream input) static BucketAccessControlparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BucketAccessControlparseFrom(InputStream input) static BucketAccessControlparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BucketAccessControlparseFrom(ByteBuffer data) static BucketAccessControlparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BucketAccessControl>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ROLE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER- See Also:
-
ENTITY_ALT_FIELD_NUMBER
public static final int ENTITY_ALT_FIELD_NUMBER- See Also:
-
ENTITY_ID_FIELD_NUMBER
public static final int ENTITY_ID_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER- See Also:
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER- See Also:
-
PROJECT_TEAM_FIELD_NUMBER
public static final int PROJECT_TEAM_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRole
The access permission for the entity.
string role = 1;- Specified by:
getRolein interfaceBucketAccessControlOrBuilder- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()The access permission for the entity.
string role = 1;- Specified by:
getRoleBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for role.
-
getId
The ID of the access-control entry.
string id = 2;- Specified by:
getIdin interfaceBucketAccessControlOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the access-control entry.
string id = 2;- Specified by:
getIdBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for id.
-
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;- Specified by:
getEntityin interfaceBucketAccessControlOrBuilder- Returns:
- The entity.
-
getEntityBytes
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;- Specified by:
getEntityBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entity.
-
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];- Specified by:
getEntityAltin interfaceBucketAccessControlOrBuilder- Returns:
- The entityAlt.
-
getEntityAltBytes
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];- Specified by:
getEntityAltBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entityAlt.
-
getEntityId
The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdin interfaceBucketAccessControlOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entityId.
-
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;- Specified by:
getEtagin interfaceBucketAccessControlOrBuilder- Returns:
- The etag.
-
getEtagBytes
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;- Specified by:
getEtagBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for etag.
-
getEmail
The email address associated with the entity, if any.
string email = 5;- Specified by:
getEmailin interfaceBucketAccessControlOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()The email address associated with the entity, if any.
string email = 5;- Specified by:
getEmailBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for email.
-
getDomain
The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainin interfaceBucketAccessControlOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for domain.
-
hasProjectTeam
public boolean hasProjectTeam()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
hasProjectTeamin interfaceBucketAccessControlOrBuilder- Returns:
- Whether the projectTeam field is set.
-
getProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
getProjectTeamin interfaceBucketAccessControlOrBuilder- Returns:
- The projectTeam.
-
getProjectTeamOrBuilder
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
getProjectTeamOrBuilderin interfaceBucketAccessControlOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BucketAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BucketAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BucketAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BucketAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BucketAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BucketAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BucketAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BucketAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BucketAccessControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BucketAccessControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-