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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LintPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LintPolicyRequest build()
Returns
buildPartial()
public LintPolicyRequest buildPartial()
Returns
clear()
public LintPolicyRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public LintPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearLintObject()
public LintPolicyRequest.Builder clearLintObject()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public LintPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public LintPolicyRequest.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
mergeFrom(LintPolicyRequest other)
public LintPolicyRequest.Builder mergeFrom(LintPolicyRequest other)
Parameter
Returns
public LintPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LintPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LintPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public LintPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LintPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LintPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides