Class IamPolicyAnalysisQuery.Builder

    • Method Detail

      • 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.Builder<IamPolicyAnalysisQuery.Builder>
      • clear

        public IamPolicyAnalysisQuery.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.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.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.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • getDefaultInstanceForType

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

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

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

        public IamPolicyAnalysisQuery.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • clearField

        public IamPolicyAnalysisQuery.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • clearOneof

        public IamPolicyAnalysisQuery.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • setRepeatedField

        public IamPolicyAnalysisQuery.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • addRepeatedField

        public IamPolicyAnalysisQuery.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • isInitialized

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

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

        public IamPolicyAnalysisQuery.Builder setScope​(String value)
         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];
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public IamPolicyAnalysisQuery.Builder clearScope()
         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];
        Returns:
        This builder for chaining.
      • setScopeBytes

        public IamPolicyAnalysisQuery.Builder setScopeBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for scope to set.
        Returns:
        This builder for chaining.
      • 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.
      • clearResourceSelector

        public IamPolicyAnalysisQuery.Builder clearResourceSelector()
         Optional. Specifies a resource for analysis.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getResourceSelectorBuilder

        public IamPolicyAnalysisQuery.ResourceSelector.Builder getResourceSelectorBuilder()
         Optional. Specifies a resource for analysis.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
      • 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.
      • clearIdentitySelector

        public IamPolicyAnalysisQuery.Builder clearIdentitySelector()
         Optional. Specifies an identity for analysis.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getIdentitySelectorBuilder

        public IamPolicyAnalysisQuery.IdentitySelector.Builder getIdentitySelectorBuilder()
         Optional. Specifies an identity for analysis.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
      • 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.
      • clearAccessSelector

        public IamPolicyAnalysisQuery.Builder clearAccessSelector()
         Optional. Specifies roles or permissions for analysis. This is optional.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getAccessSelectorBuilder

        public IamPolicyAnalysisQuery.AccessSelector.Builder getAccessSelectorBuilder()
         Optional. Specifies roles or permissions for analysis. This is optional.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
      • 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.
      • clearOptions

        public IamPolicyAnalysisQuery.Builder clearOptions()
         Optional. The query options.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getOptionsBuilder

        public IamPolicyAnalysisQuery.Options.Builder getOptionsBuilder()
         Optional. The query options.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
      • 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.
      • clearConditionContext

        public IamPolicyAnalysisQuery.Builder clearConditionContext()
         Optional. The hypothetical context for IAM conditions evaluation.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getConditionContextBuilder

        public IamPolicyAnalysisQuery.ConditionContext.Builder getConditionContextBuilder()
         Optional. The hypothetical context for IAM conditions evaluation.
         
        .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final IamPolicyAnalysisQuery.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
      • mergeUnknownFields

        public final IamPolicyAnalysisQuery.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>