Class BucketAccessControl (2.24.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.24.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  BucketAccessControl   extends   GeneratedMessageV3   implements   BucketAccessControlOrBuilder  
   An access-control entry.
 Protobuf type google.storage.v2.BucketAccessControl
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DOMAIN_FIELD_NUMBER 
  
    
public   static   final   int   DOMAIN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  EMAIL_FIELD_NUMBER 
  
    
public   static   final   int   EMAIL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ENTITY_ALT_FIELD_NUMBER 
  
    
public   static   final   int   ENTITY_ALT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ENTITY_FIELD_NUMBER 
  
    
public   static   final   int   ENTITY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ENTITY_ID_FIELD_NUMBER 
  
    
public   static   final   int   ENTITY_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ETAG_FIELD_NUMBER 
  
    
public   static   final   int   ETAG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ID_FIELD_NUMBER 
  
    
public   static   final   int   ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PROJECT_TEAM_FIELD_NUMBER 
  
    
public   static   final   int   PROJECT_TEAM_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ROLE_FIELD_NUMBER 
  
    
public   static   final   int   ROLE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   BucketAccessControl   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   BucketAccessControl . Builder   newBuilder ()  
  
  newBuilder(BucketAccessControl prototype) 
  
    
public   static   BucketAccessControl . Builder   newBuilder ( BucketAccessControl   prototype )  
  
  
  
    
public   static   BucketAccessControl   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   BucketAccessControl   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   BucketAccessControl   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BucketAccessControl   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   BucketAccessControl   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BucketAccessControl   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   BucketAccessControl   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   BucketAccessControl   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   BucketAccessControl   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   BucketAccessControl   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   BucketAccessControl   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BucketAccessControl   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<BucketAccessControl>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   BucketAccessControl   getDefaultInstanceForType ()  
  
  getDomain() 
  
    
public   String   getDomain ()  
   The domain associated with the entity, if any.
 string domain = 6;
    
      
        Returns  
      
        Type Description  
      
        String The domain.
 
     
  
  getDomainBytes() 
  
    
public   ByteString   getDomainBytes ()  
   The domain associated with the entity, if any.
 string domain = 6;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for domain.
 
     
  
  getEmail() 
  
   The email address associated with the entity, if any.
 string email = 5;
    
      
        Returns  
      
        Type Description  
      
        String The email.
 
     
  
  getEmailBytes() 
  
    
public   ByteString   getEmailBytes ()  
   The email address associated with the entity, if any.
 string email = 5;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for email.
 
     
  
  getEntity() 
  
    
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}allUsersallAuthenticatedUsers
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;
    
      
        Returns  
      
        Type Description  
      
        String The entity.
 
     
  
  getEntityAlt() 
  
    
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];
    
      
        Returns  
      
        Type Description  
      
        String The entityAlt.
 
     
  
  getEntityAltBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for entityAlt.
 
     
  
  getEntityBytes() 
  
    
public   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}allUsersallAuthenticatedUsers
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;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for entity.
 
     
  
  getEntityId() 
  
    
public   String   getEntityId ()  
   The ID for the entity, if any.
 string entity_id = 4;
    
      
        Returns  
      
        Type Description  
      
        String The entityId.
 
     
  
  getEntityIdBytes() 
  
    
public   ByteString   getEntityIdBytes ()  
   The ID for the entity, if any.
 string entity_id = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString 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;
    
      
        Returns  
      
        Type Description  
      
        String The etag.
 
     
  
  getEtagBytes() 
  
    
public   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;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for etag.
 
     
  
  getId() 
  
   The ID of the access-control entry.
 string id = 2;
    
      
        Returns  
      
        Type Description  
      
        String The id.
 
     
  
  getIdBytes() 
  
    
public   ByteString   getIdBytes ()  
   The ID of the access-control entry.
 string id = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for id.
 
     
  
  getParserForType() 
  
    
public   Parser<BucketAccessControl>   getParserForType ()  
  
  Overrides 
  
  getProjectTeam() 
  
    
public   ProjectTeam   getProjectTeam ()  
   The project team associated with the entity, if any.
 .google.storage.v2.ProjectTeam project_team = 7;
getProjectTeamOrBuilder() 
  
    
public   ProjectTeamOrBuilder   getProjectTeamOrBuilder ()  
   The project team associated with the entity, if any.
 .google.storage.v2.ProjectTeam project_team = 7;
getRole() 
  
   The access permission for the entity.
 string role = 1;
    
      
        Returns  
      
        Type Description  
      
        String The role.
 
     
  
  getRoleBytes() 
  
    
public   ByteString   getRoleBytes ()  
   The access permission for the entity.
 string role = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for role.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasProjectTeam() 
  
    
public   boolean   hasProjectTeam ()  
   The project team associated with the entity, if any.
 .google.storage.v2.ProjectTeam project_team = 7;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the projectTeam field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   BucketAccessControl . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   BucketAccessControl . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   BucketAccessControl . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]