Class IamPolicyAnalysisQuery

  • All Implemented Interfaces:
    IamPolicyAnalysisQueryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class IamPolicyAnalysisQuery
    extends com.google.protobuf.GeneratedMessageV3
    implements IamPolicyAnalysisQueryOrBuilder
     IAM policy analysis query message.
     
    Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_SELECTOR_FIELD_NUMBER

        public static final int RESOURCE_SELECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IDENTITY_SELECTOR_FIELD_NUMBER

        public static final int IDENTITY_SELECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCESS_SELECTOR_FIELD_NUMBER

        public static final int ACCESS_SELECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONDITION_CONTEXT_FIELD_NUMBER

        public static final int CONDITION_CONTEXT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

        public IamPolicyAnalysisQuery.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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