Class IamPolicyAnalysisResult.Identity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder
All Implemented Interfaces:
IamPolicyAnalysisResult.IdentityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IamPolicyAnalysisResult.Identity

public static final class IamPolicyAnalysisResult.Identity.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder> implements IamPolicyAnalysisResult.IdentityOrBuilder
 An identity under analysis.
 
Protobuf type google.cloud.asset.v1.IamPolicyAnalysisResult.Identity
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
    • getDefaultInstanceForType

      public IamPolicyAnalysisResult.Identity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public IamPolicyAnalysisResult.Identity buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public IamPolicyAnalysisResult.Identity.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
    • mergeFrom

      public IamPolicyAnalysisResult.Identity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IamPolicyAnalysisResult.Identity.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The identity of members, formatted as appear in an
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/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;
      Specified by:
      getName in interface IamPolicyAnalysisResult.IdentityOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The identity of members, formatted as appear in an
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/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;
      Specified by:
      getNameBytes in interface IamPolicyAnalysisResult.IdentityOrBuilder
      Returns:
      The bytes for name.
    • setName

       The identity of members, formatted as appear in an
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The identity of members, formatted as appear in an
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/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:
      This builder for chaining.
    • setNameBytes

      public IamPolicyAnalysisResult.Identity.Builder setNameBytes(com.google.protobuf.ByteString value)
       The identity of members, formatted as appear in an
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/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;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasAnalysisState

      public boolean hasAnalysisState()
       The analysis state of this identity.
       
      .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
      Specified by:
      hasAnalysisState in interface IamPolicyAnalysisResult.IdentityOrBuilder
      Returns:
      Whether the analysisState field is set.
    • getAnalysisState

      public IamPolicyAnalysisState getAnalysisState()
       The analysis state of this identity.
       
      .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
      Specified by:
      getAnalysisState in interface IamPolicyAnalysisResult.IdentityOrBuilder
      Returns:
      The analysisState.
    • setAnalysisState

       The analysis state of this identity.
       
      .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
    • setAnalysisState

       The analysis state of this identity.
       
      .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
    • mergeAnalysisState

       The analysis state of this identity.
       
      .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2;
    • clearAnalysisState

      public IamPolicyAnalysisResult.Identity.Builder clearAnalysisState()
       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;
      Specified by:
      getAnalysisStateOrBuilder in interface IamPolicyAnalysisResult.IdentityOrBuilder