Class LintPolicyRequest.Builder (3.0.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LintPolicyRequest build()
Returns
TypeDescription
LintPolicyRequest

buildPartial()

public LintPolicyRequest buildPartial()
Returns
TypeDescription
LintPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearLintObject()

public LintPolicyRequest.Builder clearLintObject()
Returns
TypeDescription
LintPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LintPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LintPolicyRequest.Builder
Overrides

clone()

public LintPolicyRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.ExprOrBuilder

getDefaultInstanceForType()

public LintPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
LintPolicyRequest

getDescriptorForType()

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

The bytes for fullResourceName.

getLintObjectCase()

public LintPolicyRequest.LintObjectCase getLintObjectCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the condition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Expr
Returns
TypeDescription
LintPolicyRequest.Builder

mergeFrom(LintPolicyRequest other)

public LintPolicyRequest.Builder mergeFrom(LintPolicyRequest other)
Parameter
NameDescription
otherLintPolicyRequest
Returns
TypeDescription
LintPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LintPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LintPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LintPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Expr
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Expr.Builder
Returns
TypeDescription
LintPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The fullResourceName to set.

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

The bytes for fullResourceName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LintPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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