Send feedback
  
   
 
  
    
      Class IamPolicyAnalysisResult.Identity.Builder (3.82.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  IamPolicyAnalysisResult . Identity . Builder   extends   GeneratedMessageV3 . Builder<IamPolicyAnalysisResult . Identity . Builder >  implements   IamPolicyAnalysisResult . IdentityOrBuilder  
   An identity under analysis.
 Protobuf type google.cloud.asset.v1.IamPolicyAnalysisResult.Identity
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   IamPolicyAnalysisResult . Identity   build ()  
  
  buildPartial() 
  
    
public   IamPolicyAnalysisResult . Identity   buildPartial ()  
  
  clear() 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clear ()  
  
  Overrides 
  
  clearAnalysisState() 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clearAnalysisState ()  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearName() 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clearName ()  
   The identity of members, formatted as appear in an
 IAM policy
 binding . For
 example, they might be formatted like the following:
user:foo@google.com 
group:group1@google.com 
serviceAccount:s1@prj1.iam.gserviceaccount.com 
projectOwner:some_project_id 
domain:google.com 
allUsers 
 
 string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   clone ()  
  
  Overrides 
  
  getAnalysisState() 
  
    
public   IamPolicyAnalysisState   getAnalysisState ()  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
getAnalysisStateBuilder() 
  
    
public   IamPolicyAnalysisState . Builder   getAnalysisStateBuilder ()  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
getAnalysisStateOrBuilder() 
  
    
public   IamPolicyAnalysisStateOrBuilder   getAnalysisStateOrBuilder ()  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
getDefaultInstanceForType() 
  
    
public   IamPolicyAnalysisResult . Identity   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getName() 
  
   The identity of members, formatted as appear in an
 IAM policy
 binding . For
 example, they might be formatted like the following:
user:foo@google.com 
group:group1@google.com 
serviceAccount:s1@prj1.iam.gserviceaccount.com 
projectOwner:some_project_id 
domain:google.com 
allUsers 
 
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   The identity of members, formatted as appear in an
 IAM policy
 binding . For
 example, they might be formatted like the following:
user:foo@google.com 
group:group1@google.com 
serviceAccount:s1@prj1.iam.gserviceaccount.com 
projectOwner:some_project_id 
domain:google.com 
allUsers 
 
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  hasAnalysisState() 
  
    
public   boolean   hasAnalysisState ()  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the analysisState field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeAnalysisState(IamPolicyAnalysisState value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   mergeAnalysisState ( IamPolicyAnalysisState   value )  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
mergeFrom(IamPolicyAnalysisResult.Identity other) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   mergeFrom ( IamPolicyAnalysisResult . Identity   other )  
  
  
  
    
public   IamPolicyAnalysisResult . Identity . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   IamPolicyAnalysisResult . Identity . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setAnalysisState(IamPolicyAnalysisState value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setAnalysisState ( IamPolicyAnalysisState   value )  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
setAnalysisState(IamPolicyAnalysisState.Builder builderForValue) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setAnalysisState ( IamPolicyAnalysisState . Builder   builderForValue )  
   The analysis state of this identity.
 .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setName(String value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setName ( String   value )  
   The identity of members, formatted as appear in an
 IAM policy
 binding . For
 example, they might be formatted like the following:
user:foo@google.com 
group:group1@google.com 
serviceAccount:s1@prj1.iam.gserviceaccount.com 
projectOwner:some_project_id 
domain:google.com 
allUsers 
 
 string name = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueString The name to set.
 
     
  
  
  setNameBytes(ByteString value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setNameBytes ( ByteString   value )  
   The identity of members, formatted as appear in an
 IAM policy
 binding . For
 example, they might be formatted like the following:
user:foo@google.com 
group:group1@google.com 
serviceAccount:s1@prj1.iam.gserviceaccount.com 
projectOwner:some_project_id 
domain:google.com 
allUsers 
 
 string name = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for name to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   IamPolicyAnalysisResult . Identity . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   IamPolicyAnalysisResult . Identity . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]