Class LintPolicyRequest.Builder (0.2.0)

public static final class LintPolicyRequest.Builder extends GeneratedMessageV3.Builder<LintPolicyRequest.Builder> implements LintPolicyRequestOrBuilder

The request to lint a Cloud IAM policy object.

Protobuf type google.iam.admin.v1.LintPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LintPolicyRequest build()
Returns
Type Description
LintPolicyRequest

buildPartial()

public LintPolicyRequest buildPartial()
Returns
Type Description
LintPolicyRequest

clear()

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

clearCondition()

public LintPolicyRequest.Builder clearCondition()

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Returns
Type Description
LintPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFullResourceName()

public LintPolicyRequest.Builder clearFullResourceName()

The full resource name of the policy this lint request is about.

The name follows the Google Cloud Platform (GCP) resource format. For example, a GCP project with ID my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.

string full_resource_name = 1;

Returns
Type Description
LintPolicyRequest.Builder

This builder for chaining.

clearLintObject()

public LintPolicyRequest.Builder clearLintObject()
Returns
Type Description
LintPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCondition()

public Expr getCondition()

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Returns
Type Description
com.google.type.Expr

The condition.

getConditionBuilder()

public Expr.Builder getConditionBuilder()

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Returns
Type Description
com.google.type.Expr.Builder

getConditionOrBuilder()

public ExprOrBuilder getConditionOrBuilder()

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Returns
Type Description
com.google.type.ExprOrBuilder

getDefaultInstanceForType()

public LintPolicyRequest getDefaultInstanceForType()
Returns
Type Description
LintPolicyRequest

getDescriptorForType()

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

getFullResourceName()

public String getFullResourceName()

The full resource name of the policy this lint request is about.

The name follows the Google Cloud Platform (GCP) resource format. For example, a GCP project with ID my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.

string full_resource_name = 1;

Returns
Type Description
String

The fullResourceName.

getFullResourceNameBytes()

public ByteString getFullResourceNameBytes()

The full resource name of the policy this lint request is about.

The name follows the Google Cloud Platform (GCP) resource format. For example, a GCP project with ID my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.

string full_resource_name = 1;

Returns
Type Description
ByteString

The bytes for fullResourceName.

getLintObjectCase()

public LintPolicyRequest.LintObjectCase getLintObjectCase()
Returns
Type Description
LintPolicyRequest.LintObjectCase

hasCondition()

public boolean hasCondition()

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Returns
Type Description
boolean

Whether the condition field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCondition(Expr value)

public LintPolicyRequest.Builder mergeCondition(Expr value)

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
LintPolicyRequest.Builder

mergeFrom(LintPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCondition(Expr value)

public LintPolicyRequest.Builder setCondition(Expr value)

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Parameter
Name Description
value com.google.type.Expr
Returns
Type Description
LintPolicyRequest.Builder

setCondition(Expr.Builder builderForValue)

public LintPolicyRequest.Builder setCondition(Expr.Builder builderForValue)

[google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.

.google.type.Expr condition = 5;

Parameter
Name Description
builderForValue com.google.type.Expr.Builder
Returns
Type Description
LintPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFullResourceName(String value)

public LintPolicyRequest.Builder setFullResourceName(String value)

The full resource name of the policy this lint request is about.

The name follows the Google Cloud Platform (GCP) resource format. For example, a GCP project with ID my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.

string full_resource_name = 1;

Parameter
Name Description
value String

The fullResourceName to set.

Returns
Type Description
LintPolicyRequest.Builder

This builder for chaining.

setFullResourceNameBytes(ByteString value)

public LintPolicyRequest.Builder setFullResourceNameBytes(ByteString value)

The full resource name of the policy this lint request is about.

The name follows the Google Cloud Platform (GCP) resource format. For example, a GCP project with ID my-project will be named //cloudresourcemanager.googleapis.com/projects/my-project.

The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.

string full_resource_name = 1;

Parameter
Name Description
value ByteString

The bytes for fullResourceName to set.

Returns
Type Description
LintPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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