public static final class IamPolicyAnalysisQuery.Builder extends GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder> implements IamPolicyAnalysisQueryOrBuilder
IAM policy analysis query message.Protobuf type
google.cloud.asset.v1.IamPolicyAnalysisQuery
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public IamPolicyAnalysisQuery build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public IamPolicyAnalysisQuery buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public IamPolicyAnalysisQuery.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder mergeFrom(IamPolicyAnalysisQuery other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public IamPolicyAnalysisQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<IamPolicyAnalysisQuery.Builder>
IOException
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];
getScope
in interface IamPolicyAnalysisQueryOrBuilder
public 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];
getScopeBytes
in interface IamPolicyAnalysisQueryOrBuilder
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];
value
- The scope to set.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];
public IamPolicyAnalysisQuery.Builder setScopeBytes(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];
value
- The bytes for scope to set.public boolean hasResourceSelector()
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
hasResourceSelector
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.ResourceSelector getResourceSelector()
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceSelector
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Builder setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector.Builder builderForValue)
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder mergeResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder clearResourceSelector()
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
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];
public IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder()
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];
getResourceSelectorOrBuilder
in interface IamPolicyAnalysisQueryOrBuilder
public boolean hasIdentitySelector()
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
hasIdentitySelector
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector()
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
getIdentitySelector
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Builder setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector.Builder builderForValue)
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder mergeIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder clearIdentitySelector()
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
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];
public IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder()
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];
getIdentitySelectorOrBuilder
in interface IamPolicyAnalysisQueryOrBuilder
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];
hasAccessSelector
in interface IamPolicyAnalysisQueryOrBuilder
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];
getAccessSelector
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Builder setAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)
Optional. Specifies roles or permissions for analysis. This is optional.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder setAccessSelector(IamPolicyAnalysisQuery.AccessSelector.Builder builderForValue)
Optional. Specifies roles or permissions for analysis. This is optional.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder mergeAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)
Optional. Specifies roles or permissions for analysis. This is optional.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
getAccessSelectorOrBuilder
in interface IamPolicyAnalysisQueryOrBuilder
public boolean hasOptions()
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
hasOptions
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Options getOptions()
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
getOptions
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Builder setOptions(IamPolicyAnalysisQuery.Options value)
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder setOptions(IamPolicyAnalysisQuery.Options.Builder builderForValue)
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder mergeOptions(IamPolicyAnalysisQuery.Options value)
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder clearOptions()
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Options.Builder getOptionsBuilder()
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder()
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];
getOptionsOrBuilder
in interface IamPolicyAnalysisQueryOrBuilder
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];
hasConditionContext
in interface IamPolicyAnalysisQueryOrBuilder
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];
getConditionContext
in interface IamPolicyAnalysisQueryOrBuilder
public IamPolicyAnalysisQuery.Builder setConditionContext(IamPolicyAnalysisQuery.ConditionContext value)
Optional. The hypothetical context for IAM conditions evaluation.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder setConditionContext(IamPolicyAnalysisQuery.ConditionContext.Builder builderForValue)
Optional. The hypothetical context for IAM conditions evaluation.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
public IamPolicyAnalysisQuery.Builder mergeConditionContext(IamPolicyAnalysisQuery.ConditionContext value)
Optional. The hypothetical context for IAM conditions evaluation.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
getConditionContextOrBuilder
in interface IamPolicyAnalysisQueryOrBuilder
public final IamPolicyAnalysisQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
public final IamPolicyAnalysisQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder>
Copyright © 2022 Google LLC. All rights reserved.