Package com.google.storage.v2
Class ObjectAccessControl
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.ObjectAccessControl
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ObjectAccessControlOrBuilder,Serializable
public final class ObjectAccessControl
extends com.google.protobuf.GeneratedMessageV3
implements ObjectAccessControlOrBuilder
An access-control entry.Protobuf type
google.storage.v2.ObjectAccessControl- 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 ObjectAccessControlstatic 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 ObjectAccessControl.com.google.protobuf.ByteStringThe etag of the ObjectAccessControl.getId()The ID of the access-control entry.com.google.protobuf.ByteStringThe ID of the access-control entry.com.google.protobuf.Parser<ObjectAccessControl>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 ObjectAccessControl.Builderstatic ObjectAccessControl.BuildernewBuilder(ObjectAccessControl prototype) protected ObjectAccessControl.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ObjectAccessControlparseDelimitedFrom(InputStream input) static ObjectAccessControlparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectAccessControlparseFrom(byte[] data) static ObjectAccessControlparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectAccessControlparseFrom(com.google.protobuf.ByteString data) static ObjectAccessControlparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectAccessControlparseFrom(com.google.protobuf.CodedInputStream input) static ObjectAccessControlparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectAccessControlparseFrom(InputStream input) static ObjectAccessControlparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectAccessControlparseFrom(ByteBuffer data) static ObjectAccessControlparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ObjectAccessControl>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 interfaceObjectAccessControlOrBuilder- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()The access permission for the entity.
string role = 1;- Specified by:
getRoleBytesin interfaceObjectAccessControlOrBuilder- Returns:
- The bytes for role.
-
getId
The ID of the access-control entry.
string id = 2;- Specified by:
getIdin interfaceObjectAccessControlOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the access-control entry.
string id = 2;- Specified by:
getIdBytesin interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- Returns:
- The bytes for entityAlt.
-
getEntityId
The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdin interfaceObjectAccessControlOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdBytesin interfaceObjectAccessControlOrBuilder- Returns:
- The bytes for entityId.
-
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;- Specified by:
getEtagin interfaceObjectAccessControlOrBuilder- Returns:
- The etag.
-
getEtagBytes
public 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;- Specified by:
getEtagBytesin interfaceObjectAccessControlOrBuilder- Returns:
- The bytes for etag.
-
getEmail
The email address associated with the entity, if any.
string email = 5;- Specified by:
getEmailin interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- Returns:
- The bytes for email.
-
getDomain
The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainin interfaceObjectAccessControlOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainBytesin interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- 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 interfaceObjectAccessControlOrBuilder- Returns:
- The projectTeam.
-
getProjectTeamOrBuilder
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
getProjectTeamOrBuilderin interfaceObjectAccessControlOrBuilder
-
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 ObjectAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ObjectAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ObjectAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ObjectAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ObjectAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ObjectAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ObjectAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ObjectAccessControl 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 ObjectAccessControl.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
-