Class IamPolicyAnalysisQuery.AccessSelector.Builder

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

public static final class IamPolicyAnalysisQuery.AccessSelector.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisQuery.AccessSelector.Builder> implements IamPolicyAnalysisQuery.AccessSelectorOrBuilder
 Specifies roles and/or permissions to analyze, to determine both the
 identities possessing them and the resources they control. If multiple
 values are specified, results will include roles or permissions matching
 any of them. The total number of roles and permissions should be equal or
 less than 10.
 
Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector
  • 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.AccessSelector.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.AccessSelector.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.AccessSelector.Builder>
    • getDefaultInstanceForType

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

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

      public com.google.protobuf.ProtocolStringList getRolesList()
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolesList in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Returns:
      A list containing the roles.
    • getRolesCount

      public int getRolesCount()
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolesCount in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Returns:
      The count of roles.
    • getRoles

      public String getRoles(int index)
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRoles in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The roles at the given index.
    • getRolesBytes

      public com.google.protobuf.ByteString getRolesBytes(int index)
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolesBytes in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the roles at the given index.
    • setRoles

      public IamPolicyAnalysisQuery.AccessSelector.Builder setRoles(int index, String value)
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The roles to set.
      Returns:
      This builder for chaining.
    • addRoles

       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The roles to add.
      Returns:
      This builder for chaining.
    • addAllRoles

       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The roles to add.
      Returns:
      This builder for chaining.
    • clearRoles

       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addRolesBytes

      public IamPolicyAnalysisQuery.AccessSelector.Builder addRolesBytes(com.google.protobuf.ByteString value)
       Optional. The roles to appear in result.
       
      repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the roles to add.
      Returns:
      This builder for chaining.
    • getPermissionsList

      public com.google.protobuf.ProtocolStringList getPermissionsList()
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsList in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Returns:
      A list containing the permissions.
    • getPermissionsCount

      public int getPermissionsCount()
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsCount in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Returns:
      The count of permissions.
    • getPermissions

      public String getPermissions(int index)
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissions in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissions at the given index.
    • getPermissionsBytes

      public com.google.protobuf.ByteString getPermissionsBytes(int index)
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsBytes in interface IamPolicyAnalysisQuery.AccessSelectorOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the permissions at the given index.
    • setPermissions

      public IamPolicyAnalysisQuery.AccessSelector.Builder setPermissions(int index, String value)
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The permissions to set.
      Returns:
      This builder for chaining.
    • addPermissions

       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The permissions to add.
      Returns:
      This builder for chaining.
    • addAllPermissions

       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The permissions to add.
      Returns:
      This builder for chaining.
    • clearPermissions

       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addPermissionsBytes

      public IamPolicyAnalysisQuery.AccessSelector.Builder addPermissionsBytes(com.google.protobuf.ByteString value)
       Optional. The permissions to appear in result.
       
      repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the permissions to add.
      Returns:
      This builder for chaining.