Class IamPolicyAnalysisQuery.Builder (3.4.1)

public static final class IamPolicyAnalysisQuery.Builder extends GeneratedMessageV3.Builder<IamPolicyAnalysisQuery.Builder> implements IamPolicyAnalysisQueryOrBuilder

IAM policy analysis query message.

Protobuf type google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IamPolicyAnalysisQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

build()

public IamPolicyAnalysisQuery build()
Returns
Type Description
IamPolicyAnalysisQuery

buildPartial()

public IamPolicyAnalysisQuery buildPartial()
Returns
Type Description
IamPolicyAnalysisQuery

clear()

public IamPolicyAnalysisQuery.Builder clear()
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

clearAccessSelector()

public IamPolicyAnalysisQuery.Builder clearAccessSelector()

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.Builder

clearField(Descriptors.FieldDescriptor field)

public IamPolicyAnalysisQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

clearIdentitySelector()

public IamPolicyAnalysisQuery.Builder clearIdentitySelector()

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicyAnalysisQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

clearParent()

public IamPolicyAnalysisQuery.Builder clearParent()

Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").

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

Returns
Type Description
IamPolicyAnalysisQuery.Builder

This builder for chaining.

clearResourceSelector()

public IamPolicyAnalysisQuery.Builder clearResourceSelector()

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.Builder

clone()

public IamPolicyAnalysisQuery.Builder clone()
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

getAccessSelector()

public IamPolicyAnalysisQuery.AccessSelector getAccessSelector()

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector

The accessSelector.

getAccessSelectorBuilder()

public IamPolicyAnalysisQuery.AccessSelector.Builder getAccessSelectorBuilder()

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelector.Builder

getAccessSelectorOrBuilder()

public IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder()

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IamPolicyAnalysisQuery.AccessSelectorOrBuilder

getDefaultInstanceForType()

public IamPolicyAnalysisQuery getDefaultInstanceForType()
Returns
Type Description
IamPolicyAnalysisQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIdentitySelector()

public IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector()

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.IdentitySelector

The identitySelector.

getIdentitySelectorBuilder()

public IamPolicyAnalysisQuery.IdentitySelector.Builder getIdentitySelectorBuilder()

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.IdentitySelector.Builder

getIdentitySelectorOrBuilder()

public IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder()

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.IdentitySelectorOrBuilder

getParent()

public String getParent()

Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").

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

Returns
Type Description
ByteString

The bytes for parent.

getResourceSelector()

public IamPolicyAnalysisQuery.ResourceSelector getResourceSelector()

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.ResourceSelector

The resourceSelector.

getResourceSelectorBuilder()

public IamPolicyAnalysisQuery.ResourceSelector.Builder getResourceSelectorBuilder()

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.ResourceSelector.Builder

getResourceSelectorOrBuilder()

public IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder()

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Returns
Type Description
IamPolicyAnalysisQuery.ResourceSelectorOrBuilder

hasAccessSelector()

public boolean hasAccessSelector()

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the accessSelector field is set.

hasIdentitySelector()

public boolean hasIdentitySelector()

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Returns
Type Description
boolean

Whether the identitySelector field is set.

hasResourceSelector()

public boolean hasResourceSelector()

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Returns
Type Description
boolean

Whether the resourceSelector field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)

public IamPolicyAnalysisQuery.Builder mergeAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IamPolicyAnalysisQuery.AccessSelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

mergeFrom(IamPolicyAnalysisQuery other)

public IamPolicyAnalysisQuery.Builder mergeFrom(IamPolicyAnalysisQuery other)
Parameter
Name Description
other IamPolicyAnalysisQuery
Returns
Type Description
IamPolicyAnalysisQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IamPolicyAnalysisQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public IamPolicyAnalysisQuery.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

mergeIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)

public IamPolicyAnalysisQuery.Builder mergeIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
value IamPolicyAnalysisQuery.IdentitySelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

mergeResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)

public IamPolicyAnalysisQuery.Builder mergeResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
value IamPolicyAnalysisQuery.ResourceSelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

setAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)

public IamPolicyAnalysisQuery.Builder setAccessSelector(IamPolicyAnalysisQuery.AccessSelector value)

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IamPolicyAnalysisQuery.AccessSelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setAccessSelector(IamPolicyAnalysisQuery.AccessSelector.Builder builderForValue)

public IamPolicyAnalysisQuery.Builder setAccessSelector(IamPolicyAnalysisQuery.AccessSelector.Builder builderForValue)

Optional. Specifies roles or permissions for analysis. Leaving it empty means ANY.

.google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IamPolicyAnalysisQuery.AccessSelector.Builder
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IamPolicyAnalysisQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)

public IamPolicyAnalysisQuery.Builder setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector value)

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
value IamPolicyAnalysisQuery.IdentitySelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector.Builder builderForValue)

public IamPolicyAnalysisQuery.Builder setIdentitySelector(IamPolicyAnalysisQuery.IdentitySelector.Builder builderForValue)

Optional. Specifies an identity for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
builderForValue IamPolicyAnalysisQuery.IdentitySelector.Builder
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setParent(String value)

public IamPolicyAnalysisQuery.Builder setParent(String value)

Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
IamPolicyAnalysisQuery.Builder

This builder for chaining.

setParentBytes(ByteString value)

public IamPolicyAnalysisQuery.Builder setParentBytes(ByteString value)

Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as "organizations/123") or a folder number (such as "folders/123").

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
IamPolicyAnalysisQuery.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IamPolicyAnalysisQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides

setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)

public IamPolicyAnalysisQuery.Builder setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector value)

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
value IamPolicyAnalysisQuery.ResourceSelector
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector.Builder builderForValue)

public IamPolicyAnalysisQuery.Builder setResourceSelector(IamPolicyAnalysisQuery.ResourceSelector.Builder builderForValue)

Optional. Specifies a resource for analysis. Leaving it empty means ANY.

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

Parameter
Name Description
builderForValue IamPolicyAnalysisQuery.ResourceSelector.Builder
Returns
Type Description
IamPolicyAnalysisQuery.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IamPolicyAnalysisQuery.Builder
Overrides