Class IamPolicyAnalysisQuery (3.31.0)

public final class IamPolicyAnalysisQuery extends GeneratedMessageV3 implements IamPolicyAnalysisQueryOrBuilder

IAM policy analysis query message.

Protobuf type google.cloud.asset.v1.IamPolicyAnalysisQuery

Static Fields

ACCESS_SELECTOR_FIELD_NUMBER

public static final int ACCESS_SELECTOR_FIELD_NUMBER
Field Value
Type Description
int

CONDITION_CONTEXT_FIELD_NUMBER

public static final int CONDITION_CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

IDENTITY_SELECTOR_FIELD_NUMBER

public static final int IDENTITY_SELECTOR_FIELD_NUMBER
Field Value
Type Description
int

OPTIONS_FIELD_NUMBER

public static final int OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_SELECTOR_FIELD_NUMBER

public static final int RESOURCE_SELECTOR_FIELD_NUMBER
Field Value
Type Description
int

SCOPE_FIELD_NUMBER

public static final int SCOPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static IamPolicyAnalysisQuery getDefaultInstance()
Returns
Type Description
IamPolicyAnalysisQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static IamPolicyAnalysisQuery.Builder newBuilder()
Returns
Type Description
IamPolicyAnalysisQuery.Builder

newBuilder(IamPolicyAnalysisQuery prototype)

public static IamPolicyAnalysisQuery.Builder newBuilder(IamPolicyAnalysisQuery prototype)
Parameter
Name Description
prototype IamPolicyAnalysisQuery
Returns
Type Description
IamPolicyAnalysisQuery.Builder

parseDelimitedFrom(InputStream input)

public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static IamPolicyAnalysisQuery parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IamPolicyAnalysisQuery parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IamPolicyAnalysisQuery parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static IamPolicyAnalysisQuery parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IamPolicyAnalysisQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<IamPolicyAnalysisQuery> parser()
Returns
Type Description
Parser<IamPolicyAnalysisQuery>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector

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];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelectorOrBuilder

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];

Returns
Type Description
IamPolicyAnalysisQuery.ConditionContext

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];

Returns
Type Description
IamPolicyAnalysisQuery.ConditionContextOrBuilder

getDefaultInstanceForType()

public IamPolicyAnalysisQuery getDefaultInstanceForType()
Returns
Type Description
IamPolicyAnalysisQuery

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];

Returns
Type Description
IamPolicyAnalysisQuery.IdentitySelector

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];

Returns
Type Description
IamPolicyAnalysisQuery.IdentitySelectorOrBuilder

getOptions()

public IamPolicyAnalysisQuery.Options getOptions()

Optional. The query options.

.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.Options

The options.

getOptionsOrBuilder()

public IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder()

Optional. The query options.

.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.OptionsOrBuilder

getParserForType()

public Parser<IamPolicyAnalysisQuery> getParserForType()
Returns
Type Description
Parser<IamPolicyAnalysisQuery>
Overrides

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];

Returns
Type Description
IamPolicyAnalysisQuery.ResourceSelector

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];

Returns
Type Description
IamPolicyAnalysisQuery.ResourceSelectorOrBuilder

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 .

To know how to get folder or project id, visit here .

string scope = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The scope.

getScopeBytes()

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 .

To know how to get folder or project id, visit here .

string scope = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for scope.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
boolean

Whether the accessSelector field is set.

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];

Returns
Type Description
boolean

Whether the conditionContext field is set.

hasIdentitySelector()

public boolean hasIdentitySelector()

Optional. Specifies an identity for analysis.

.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the identitySelector field is set.

hasOptions()

public boolean hasOptions()

Optional. The query options.

.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the options field is set.

hasResourceSelector()

public boolean hasResourceSelector()

Optional. Specifies a resource for analysis.

.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the resourceSelector field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public IamPolicyAnalysisQuery.Builder newBuilderForType()
Returns
Type Description
IamPolicyAnalysisQuery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IamPolicyAnalysisQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public IamPolicyAnalysisQuery.Builder toBuilder()
Returns
Type Description
IamPolicyAnalysisQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException