Package com.google.cloud.asset.v1
Class IamPolicyAnalysisQuery
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class IamPolicyAnalysisQuery extends com.google.protobuf.GeneratedMessageV3 implements IamPolicyAnalysisQueryOrBuilder
IAM policy analysis query message.
Protobuf typegoogle.cloud.asset.v1.IamPolicyAnalysisQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_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 classcom.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 classcom.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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
-
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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
-
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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
-
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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
-
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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
- 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 interfaceIamPolicyAnalysisQueryOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.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 interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IamPolicyAnalysisQuery.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
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 interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public IamPolicyAnalysisQuery getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-