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<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 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() |
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, 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 ObjectAccessControlOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
The access permission for the entity.
string role = 1;
getRoleBytes
in interface ObjectAccessControlOrBuilder
public String getId()
The ID of the access-control entry.
string id = 2;
getId
in interface ObjectAccessControlOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the access-control entry.
string id = 2;
getIdBytes
in interface ObjectAccessControlOrBuilder
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 ObjectAccessControlOrBuilder
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 ObjectAccessControlOrBuilder
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 ObjectAccessControlOrBuilder
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 ObjectAccessControlOrBuilder
public String getEntityId()
The ID for the entity, if any.
string entity_id = 4;
getEntityId
in interface ObjectAccessControlOrBuilder
public com.google.protobuf.ByteString getEntityIdBytes()
The ID for the entity, if any.
string entity_id = 4;
getEntityIdBytes
in interface ObjectAccessControlOrBuilder
public 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 ObjectAccessControlOrBuilder
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;
getEtagBytes
in interface ObjectAccessControlOrBuilder
public String getEmail()
The email address associated with the entity, if any.
string email = 5;
getEmail
in interface ObjectAccessControlOrBuilder
public com.google.protobuf.ByteString getEmailBytes()
The email address associated with the entity, if any.
string email = 5;
getEmailBytes
in interface ObjectAccessControlOrBuilder
public String getDomain()
The domain associated with the entity, if any.
string domain = 6;
getDomain
in interface ObjectAccessControlOrBuilder
public com.google.protobuf.ByteString getDomainBytes()
The domain associated with the entity, if any.
string domain = 6;
getDomainBytes
in interface ObjectAccessControlOrBuilder
public boolean hasProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
hasProjectTeam
in interface ObjectAccessControlOrBuilder
public ProjectTeam getProjectTeam()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
getProjectTeam
in interface ObjectAccessControlOrBuilder
public ProjectTeamOrBuilder getProjectTeamOrBuilder()
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
getProjectTeamOrBuilder
in interface ObjectAccessControlOrBuilder
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 ObjectAccessControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ObjectAccessControl parseFrom(InputStream input) throws IOException
IOException
public static ObjectAccessControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ObjectAccessControl parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ObjectAccessControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ObjectAccessControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ObjectAccessControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ObjectAccessControl.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ObjectAccessControl.Builder newBuilder()
public static ObjectAccessControl.Builder newBuilder(ObjectAccessControl prototype)
public ObjectAccessControl.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ObjectAccessControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static ObjectAccessControl getDefaultInstance()
public static com.google.protobuf.Parser<ObjectAccessControl> parser()
public com.google.protobuf.Parser<ObjectAccessControl> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ObjectAccessControl getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.