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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IamPolicyAnalysisQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder
Overrides

build()

public IamPolicyAnalysisQuery build()
Returns
TypeDescription
IamPolicyAnalysisQuery

buildPartial()

public IamPolicyAnalysisQuery buildPartial()
Returns
TypeDescription
IamPolicyAnalysisQuery

clear()

public IamPolicyAnalysisQuery.Builder clear()
Returns
TypeDescription
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
TypeDescription
IamPolicyAnalysisQuery.Builder

clearField(Descriptors.FieldDescriptor field)

public IamPolicyAnalysisQuery.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
IamPolicyAnalysisQuery.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IamPolicyAnalysisQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
IamPolicyAnalysisQuery.Builder

clone()

public IamPolicyAnalysisQuery.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
IamPolicyAnalysisQuery.AccessSelectorOrBuilder

getDefaultInstanceForType()

public IamPolicyAnalysisQuery getDefaultInstanceForType()
Returns
TypeDescription
IamPolicyAnalysisQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resourceSelector field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.AccessSelector
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder

mergeFrom(IamPolicyAnalysisQuery other)

public IamPolicyAnalysisQuery.Builder mergeFrom(IamPolicyAnalysisQuery other)
Parameter
NameDescription
otherIamPolicyAnalysisQuery
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IamPolicyAnalysisQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IamPolicyAnalysisQuery.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.IdentitySelector
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.ResourceSelector
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.AccessSelector
Returns
TypeDescription
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
NameDescription
builderForValueIamPolicyAnalysisQuery.AccessSelector.Builder
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IamPolicyAnalysisQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.IdentitySelector
Returns
TypeDescription
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
NameDescription
builderForValueIamPolicyAnalysisQuery.IdentitySelector.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueIamPolicyAnalysisQuery.ResourceSelector
Returns
TypeDescription
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
NameDescription
builderForValueIamPolicyAnalysisQuery.ResourceSelector.Builder
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final IamPolicyAnalysisQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IamPolicyAnalysisQuery.Builder
Overrides