Class IamPolicyAnalysisQuery.IdentitySelector.Builder

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

public static final class IamPolicyAnalysisQuery.IdentitySelector.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisQuery.IdentitySelector.Builder> implements IamPolicyAnalysisQuery.IdentitySelectorOrBuilder
 Specifies an identity for which to determine resource access, based on
 roles assigned either directly to them or to the groups they belong to,
 directly or indirectly.
 
Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
  • 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<IamPolicyAnalysisQuery.IdentitySelector.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<IamPolicyAnalysisQuery.IdentitySelector.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<IamPolicyAnalysisQuery.IdentitySelector.Builder>
    • getDefaultInstanceForType

      public IamPolicyAnalysisQuery.IdentitySelector 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

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

      public IamPolicyAnalysisQuery.IdentitySelector.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<IamPolicyAnalysisQuery.IdentitySelector.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<IamPolicyAnalysisQuery.IdentitySelector.Builder>
    • mergeFrom

      public IamPolicyAnalysisQuery.IdentitySelector.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<IamPolicyAnalysisQuery.IdentitySelector.Builder>
      Throws:
      IOException
    • getIdentity

      public String getIdentity()
       Required. The identity appear in the form of principals in
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      
       The examples of supported forms are:
       "user:mike@example.com",
       "group:admins@example.com",
       "domain:google.com",
       "serviceAccount:my-project-id@appspot.gserviceaccount.com".
      
       Notice that wildcard characters (such as * and ?) are not supported.
       You must give a specific identity.
       
      string identity = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdentity in interface IamPolicyAnalysisQuery.IdentitySelectorOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       Required. The identity appear in the form of principals in
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      
       The examples of supported forms are:
       "user:mike@example.com",
       "group:admins@example.com",
       "domain:google.com",
       "serviceAccount:my-project-id@appspot.gserviceaccount.com".
      
       Notice that wildcard characters (such as * and ?) are not supported.
       You must give a specific identity.
       
      string identity = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdentityBytes in interface IamPolicyAnalysisQuery.IdentitySelectorOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

       Required. The identity appear in the form of principals in
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      
       The examples of supported forms are:
       "user:mike@example.com",
       "group:admins@example.com",
       "domain:google.com",
       "serviceAccount:my-project-id@appspot.gserviceaccount.com".
      
       Notice that wildcard characters (such as * and ?) are not supported.
       You must give a specific identity.
       
      string identity = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

       Required. The identity appear in the form of principals in
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      
       The examples of supported forms are:
       "user:mike@example.com",
       "group:admins@example.com",
       "domain:google.com",
       "serviceAccount:my-project-id@appspot.gserviceaccount.com".
      
       Notice that wildcard characters (such as * and ?) are not supported.
       You must give a specific identity.
       
      string identity = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public IamPolicyAnalysisQuery.IdentitySelector.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       Required. The identity appear in the form of principals in
       [IAM policy
       binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      
       The examples of supported forms are:
       "user:mike@example.com",
       "group:admins@example.com",
       "domain:google.com",
       "serviceAccount:my-project-id@appspot.gserviceaccount.com".
      
       Notice that wildcard characters (such as * and ?) are not supported.
       You must give a specific identity.
       
      string identity = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.