Class IamPolicyAnalysisQuery

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1.IamPolicyAnalysisQuery
All Implemented Interfaces:
IamPolicyAnalysisQueryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class IamPolicyAnalysisQuery extends com.google.protobuf.GeneratedMessage implements IamPolicyAnalysisQueryOrBuilder
 IAM policy analysis query message.
 
Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery
See Also:
  • Field Details

    • SCOPE_FIELD_NUMBER

      public static final int SCOPE_FIELD_NUMBER
      See Also:
    • RESOURCE_SELECTOR_FIELD_NUMBER

      public static final int RESOURCE_SELECTOR_FIELD_NUMBER
      See Also:
    • IDENTITY_SELECTOR_FIELD_NUMBER

      public static final int IDENTITY_SELECTOR_FIELD_NUMBER
      See Also:
    • ACCESS_SELECTOR_FIELD_NUMBER

      public static final int ACCESS_SELECTOR_FIELD_NUMBER
      See Also:
    • OPTIONS_FIELD_NUMBER

      public static final int OPTIONS_FIELD_NUMBER
      See Also:
    • CONDITION_CONTEXT_FIELD_NUMBER

      public static final int CONDITION_CONTEXT_FIELD_NUMBER
      See Also:
  • 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
    • getScope

      public String getScope()
       Required. The relative name of the root asset. Only resources and IAM
       policies within the scope will be analyzed.
      
       This can only be an organization number (such as "organizations/123"), a
       folder number (such as "folders/123"), a project ID (such as
       "projects/my-project-id"), or a project number (such as "projects/12345").
      
       To know how to get organization ID, visit [here
       ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
      
       To know how to get folder or project ID, visit [here
       ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
       
      string scope = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScope in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes()
       Required. The relative name of the root asset. Only resources and IAM
       policies within the scope will be analyzed.
      
       This can only be an organization number (such as "organizations/123"), a
       folder number (such as "folders/123"), a project ID (such as
       "projects/my-project-id"), or a project number (such as "projects/12345").
      
       To know how to get organization ID, visit [here
       ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
      
       To know how to get folder or project ID, visit [here
       ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
       
      string scope = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeBytes in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The bytes for scope.
    • hasResourceSelector

      public boolean hasResourceSelector()
       Optional. Specifies a resource for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResourceSelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      Whether the resourceSelector field is set.
    • getResourceSelector

      public IamPolicyAnalysisQuery.ResourceSelector getResourceSelector()
       Optional. Specifies a resource for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceSelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The resourceSelector.
    • getResourceSelectorOrBuilder

      public IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder()
       Optional. Specifies a resource for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResourceSelectorOrBuilder in interface IamPolicyAnalysisQueryOrBuilder
    • hasIdentitySelector

      public boolean hasIdentitySelector()
       Optional. Specifies an identity for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIdentitySelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      Whether the identitySelector field is set.
    • getIdentitySelector

      public IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector()
       Optional. Specifies an identity for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdentitySelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The identitySelector.
    • getIdentitySelectorOrBuilder

      public IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder()
       Optional. Specifies an identity for analysis.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdentitySelectorOrBuilder in interface IamPolicyAnalysisQueryOrBuilder
    • hasAccessSelector

      public boolean hasAccessSelector()
       Optional. Specifies roles or permissions for analysis. This is optional.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAccessSelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      Whether the accessSelector field is set.
    • getAccessSelector

      public IamPolicyAnalysisQuery.AccessSelector getAccessSelector()
       Optional. Specifies roles or permissions for analysis. This is optional.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessSelector in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The accessSelector.
    • getAccessSelectorOrBuilder

      public IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder()
       Optional. Specifies roles or permissions for analysis. This is optional.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessSelectorOrBuilder in interface IamPolicyAnalysisQueryOrBuilder
    • hasOptions

      public boolean hasOptions()
       Optional. The query options.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOptions in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      Whether the options field is set.
    • getOptions

      public IamPolicyAnalysisQuery.Options getOptions()
       Optional. The query options.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptions in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The options.
    • getOptionsOrBuilder

      public IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder()
       Optional. The query options.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptionsOrBuilder in interface IamPolicyAnalysisQueryOrBuilder
    • hasConditionContext

      public boolean hasConditionContext()
       Optional. The hypothetical context for IAM conditions evaluation.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConditionContext in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      Whether the conditionContext field is set.
    • getConditionContext

      public IamPolicyAnalysisQuery.ConditionContext getConditionContext()
       Optional. The hypothetical context for IAM conditions evaluation.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionContext in interface IamPolicyAnalysisQueryOrBuilder
      Returns:
      The conditionContext.
    • getConditionContextOrBuilder

      public IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder()
       Optional. The hypothetical context for IAM conditions evaluation.
       
      .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionContextOrBuilder in interface IamPolicyAnalysisQueryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IamPolicyAnalysisQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public IamPolicyAnalysisQuery.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static IamPolicyAnalysisQuery.Builder newBuilder()
    • newBuilder

      public static IamPolicyAnalysisQuery.Builder newBuilder(IamPolicyAnalysisQuery prototype)
    • toBuilder

      public IamPolicyAnalysisQuery.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected IamPolicyAnalysisQuery.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static IamPolicyAnalysisQuery getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<IamPolicyAnalysisQuery> parser()
    • getParserForType

      public com.google.protobuf.Parser<IamPolicyAnalysisQuery> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public IamPolicyAnalysisQuery getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder