public final class IamPolicyAnalysisQuery extends GeneratedMessageV3 implements IamPolicyAnalysisQueryOrBuilder
IAM policy analysis query message.Protobuf type
google.cloud.asset.v1.IamPolicyAnalysisQuery
Modifier and Type | Class and Description |
---|---|
static class |
IamPolicyAnalysisQuery.AccessSelector
Specifies roles and/or permissions to analyze, to determine both the
identities possessing them and the resources they control.
|
static interface |
IamPolicyAnalysisQuery.AccessSelectorOrBuilder |
static class |
IamPolicyAnalysisQuery.Builder
IAM policy analysis query message.
|
static class |
IamPolicyAnalysisQuery.ConditionContext
The IAM conditions context.
|
static interface |
IamPolicyAnalysisQuery.ConditionContextOrBuilder |
static class |
IamPolicyAnalysisQuery.IdentitySelector
Specifies an identity for which to determine resource access, based on
roles assigned either directly to them or to the groups they belong to,
directly or indirectly.
|
static interface |
IamPolicyAnalysisQuery.IdentitySelectorOrBuilder |
static class |
IamPolicyAnalysisQuery.Options
Contains query options.
|
static interface |
IamPolicyAnalysisQuery.OptionsOrBuilder |
static class |
IamPolicyAnalysisQuery.ResourceSelector
Specifies the resource to analyze for access policies, which may be set
directly on the resource, or on ancestors such as organizations, folders or
projects.
|
static interface |
IamPolicyAnalysisQuery.ResourceSelectorOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_SELECTOR_FIELD_NUMBER |
static int |
CONDITION_CONTEXT_FIELD_NUMBER |
static int |
IDENTITY_SELECTOR_FIELD_NUMBER |
static int |
OPTIONS_FIELD_NUMBER |
static int |
RESOURCE_SELECTOR_FIELD_NUMBER |
static int |
SCOPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SCOPE_FIELD_NUMBER
public static final int RESOURCE_SELECTOR_FIELD_NUMBER
public static final int IDENTITY_SELECTOR_FIELD_NUMBER
public static final int ACCESS_SELECTOR_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public static final int CONDITION_CONTEXT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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.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.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.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.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.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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IamPolicyAnalysisQuery parseFrom(InputStream input) throws IOException
IOException
public static IamPolicyAnalysisQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input) throws IOException
IOException
public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static IamPolicyAnalysisQuery parseFrom(CodedInputStream input) throws IOException
IOException
public static IamPolicyAnalysisQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public IamPolicyAnalysisQuery.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static IamPolicyAnalysisQuery.Builder newBuilder()
public static IamPolicyAnalysisQuery.Builder newBuilder(IamPolicyAnalysisQuery prototype)
public IamPolicyAnalysisQuery.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected IamPolicyAnalysisQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static IamPolicyAnalysisQuery getDefaultInstance()
public static Parser<IamPolicyAnalysisQuery> parser()
public Parser<IamPolicyAnalysisQuery> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public IamPolicyAnalysisQuery getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.