Class Role (3.30.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.30.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  Role   extends   GeneratedMessageV3   implements   RoleOrBuilder  
   A role in the Identity and Access Management API.
 Protobuf type google.iam.admin.v1.Role
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DELETED_FIELD_NUMBER 
  
    
public   static   final   int   DELETED_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DESCRIPTION_FIELD_NUMBER 
  
    
public   static   final   int   DESCRIPTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  ETAG_FIELD_NUMBER 
  
    
public   static   final   int   ETAG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  INCLUDED_PERMISSIONS_FIELD_NUMBER 
  
    
public   static   final   int   INCLUDED_PERMISSIONS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  STAGE_FIELD_NUMBER 
  
    
public   static   final   int   STAGE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TITLE_FIELD_NUMBER 
  
    
public   static   final   int   TITLE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Role   getDefaultInstance ()  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Role . Builder   newBuilder ()  
  
  newBuilder(Role prototype) 
  
    
public   static   Role . Builder   newBuilder ( Role   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeRole  
     
  
  
  
    
public   static   Role   parseDelimitedFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  
    
public   static   Role   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(byte[] data) 
  
    
public   static   Role   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Role   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(ByteString data) 
  
    
public   static   Role   parseFrom ( ByteString   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Role   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  
    
public   static   Role   parseFrom ( CodedInputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  
    
public   static   Role   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  
    
public   static   Role   parseFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  
    
public   static   Role   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Role   parseFrom ( ByteBuffer   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Role   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  
  parser() 
  
    
public   static   Parser<Role>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Role   getDefaultInstanceForType ()  
  
    
      
        Returns  
      
        Type Description  
      
        Role  
     
  
  getDeleted() 
  
    
public   boolean   getDeleted ()  
   The current deleted state of the role. This field is read only.
 It will be ignored in calls to CreateRole and UpdateRole.
 bool deleted = 11;
    
      
        Returns  
      
        Type Description  
      
        boolean The deleted.
 
     
  
  getDescription() 
  
    
public   String   getDescription ()  
   Optional. A human-readable description for the role.
 string description = 3;
    
      
        Returns  
      
        Type Description  
      
        String The description.
 
     
  
  getDescriptionBytes() 
  
    
public   ByteString   getDescriptionBytes ()  
   Optional. A human-readable description for the role.
 string description = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for description.
 
     
  
  getEtag() 
  
    
public   ByteString   getEtag ()  
   Used to perform a consistent read-modify-write.
 bytes etag = 9;
getIncludedPermissions(int index) 
  
    
public   String   getIncludedPermissions ( int   index )  
   The names of the permissions this role grants when bound in an IAM policy.
 repeated string included_permissions = 7;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The includedPermissions at the given index.
 
     
  
  getIncludedPermissionsBytes(int index) 
  
    
public   ByteString   getIncludedPermissionsBytes ( int   index )  
   The names of the permissions this role grants when bound in an IAM policy.
 repeated string included_permissions = 7;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the includedPermissions at the given index.
 
     
  
  getIncludedPermissionsCount() 
  
    
public   int   getIncludedPermissionsCount ()  
   The names of the permissions this role grants when bound in an IAM policy.
 repeated string included_permissions = 7;
    
      
        Returns  
      
        Type Description  
      
        int The count of includedPermissions.
 
     
  
  getIncludedPermissionsList() 
  
    
public   ProtocolStringList   getIncludedPermissionsList ()  
   The names of the permissions this role grants when bound in an IAM policy.
 repeated string included_permissions = 7;
getName() 
  
   The name of the role.
 When Role is used in CreateRole, the role name must not be set.
 When Role is used in output and other input such as UpdateRole, the role
 name is the complete path, e.g., roles/logging.viewer for predefined roles
 and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   The name of the role.
 When Role is used in CreateRole, the role name must not be set.
 When Role is used in output and other input such as UpdateRole, the role
 name is the complete path, e.g., roles/logging.viewer for predefined roles
 and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<Role>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getStage() 
  
    
public   Role . RoleLaunchStage   getStage ()  
   The current launch stage of the role. If the ALPHA launch stage has been
 selected for a role, the stage field will not be included in the
 returned definition for the role.
 .google.iam.admin.v1.Role.RoleLaunchStage stage = 8;
getStageValue() 
  
    
public   int   getStageValue ()  
   The current launch stage of the role. If the ALPHA launch stage has been
 selected for a role, the stage field will not be included in the
 returned definition for the role.
 .google.iam.admin.v1.Role.RoleLaunchStage stage = 8;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for stage.
 
     
  
  getTitle() 
  
   Optional. A human-readable title for the role.  Typically this
 is limited to 100 UTF-8 bytes.
 string title = 2;
    
      
        Returns  
      
        Type Description  
      
        String The title.
 
     
  
  getTitleBytes() 
  
    
public   ByteString   getTitleBytes ()  
   Optional. A human-readable title for the role.  Typically this
 is limited to 100 UTF-8 bytes.
 string title = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for title.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Role . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Role . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Role . 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."],[],[]]