Package com.google.cloud.asset.v1
Class IamPolicyAnalysisQuery
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class IamPolicyAnalysisQuery
extends com.google.protobuf.GeneratedMessage
implements IamPolicyAnalysisQueryOrBuilder
IAM policy analysis query message.Protobuf type
google.cloud.asset.v1.IamPolicyAnalysisQuery- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control.static interfacestatic final classIAM policy analysis query message.static final classThe IAM conditions context.static interfacestatic final classSpecifies 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 interfacestatic final classContains query options.static interfacestatic final classSpecifies 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 interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.Optional.Optional.Optional.static IamPolicyAnalysisQuerystatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.com.google.protobuf.Parser<IamPolicyAnalysisQuery>Optional.Optional.getScope()Required.com.google.protobuf.ByteStringRequired.intbooleanOptional.booleanOptional.inthashCode()booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(IamPolicyAnalysisQuery prototype) protected IamPolicyAnalysisQuery.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static IamPolicyAnalysisQueryparseDelimitedFrom(InputStream input) static IamPolicyAnalysisQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IamPolicyAnalysisQueryparseFrom(byte[] data) static IamPolicyAnalysisQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IamPolicyAnalysisQueryparseFrom(com.google.protobuf.ByteString data) static IamPolicyAnalysisQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IamPolicyAnalysisQueryparseFrom(com.google.protobuf.CodedInputStream input) static IamPolicyAnalysisQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IamPolicyAnalysisQueryparseFrom(InputStream input) static IamPolicyAnalysisQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IamPolicyAnalysisQueryparseFrom(ByteBuffer data) static IamPolicyAnalysisQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<IamPolicyAnalysisQuery>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
RESOURCE_SELECTOR_FIELD_NUMBER
public static final int RESOURCE_SELECTOR_FIELD_NUMBER- See Also:
-
IDENTITY_SELECTOR_FIELD_NUMBER
public static final int IDENTITY_SELECTOR_FIELD_NUMBER- See Also:
-
ACCESS_SELECTOR_FIELD_NUMBER
public static final int ACCESS_SELECTOR_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
CONDITION_CONTEXT_FIELD_NUMBER
public static final int CONDITION_CONTEXT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
getScopein 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:
getScopeBytesin 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:
hasResourceSelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- Whether the resourceSelector field is set.
-
getResourceSelector
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourceSelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- The resourceSelector.
-
getResourceSelectorOrBuilder
Optional. Specifies a resource for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResourceSelectorOrBuilderin 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:
hasIdentitySelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- Whether the identitySelector field is set.
-
getIdentitySelector
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdentitySelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- The identitySelector.
-
getIdentitySelectorOrBuilder
Optional. Specifies an identity for analysis.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdentitySelectorOrBuilderin 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:
hasAccessSelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- Whether the accessSelector field is set.
-
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:
getAccessSelectorin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- The accessSelector.
-
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:
getAccessSelectorOrBuilderin interfaceIamPolicyAnalysisQueryOrBuilder
-
hasOptions
public boolean hasOptions()Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOptionsin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- The options.
-
getOptionsOrBuilder
Optional. The query options.
.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsOrBuilderin 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:
hasConditionContextin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- Whether the conditionContext field is set.
-
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:
getConditionContextin interfaceIamPolicyAnalysisQueryOrBuilder- Returns:
- The conditionContext.
-
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:
getConditionContextOrBuilderin interfaceIamPolicyAnalysisQueryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
- Throws:
IOException
-
parseFrom
public static IamPolicyAnalysisQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IamPolicyAnalysisQuery.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-