Class FirewallPolicyAssessment.Builder (3.48.0)

public static final class FirewallPolicyAssessment.Builder extends GeneratedMessageV3.Builder<FirewallPolicyAssessment.Builder> implements FirewallPolicyAssessmentOrBuilder

Policy config assessment.

Protobuf type google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FirewallPolicyAssessment build()
Returns
Type Description
FirewallPolicyAssessment

buildPartial()

public FirewallPolicyAssessment buildPartial()
Returns
Type Description
FirewallPolicyAssessment

clear()

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

clearError()

public FirewallPolicyAssessment.Builder clearError()

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallPolicyAssessment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFirewallPolicy()

public FirewallPolicyAssessment.Builder clearFirewallPolicy()

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallPolicyAssessment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FirewallPolicyAssessment getDefaultInstanceForType()
Returns
Type Description
FirewallPolicyAssessment

getDescriptorForType()

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

getError()

public Status getError()

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getFirewallPolicy()

public FirewallPolicy getFirewallPolicy()

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallPolicy

The firewallPolicy.

getFirewallPolicyBuilder()

public FirewallPolicy.Builder getFirewallPolicyBuilder()

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallPolicy.Builder

getFirewallPolicyOrBuilder()

public FirewallPolicyOrBuilder getFirewallPolicyOrBuilder()

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FirewallPolicyOrBuilder

hasError()

public boolean hasError()

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasFirewallPolicy()

public boolean hasFirewallPolicy()

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the firewallPolicy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public FirewallPolicyAssessment.Builder mergeError(Status value)

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
FirewallPolicyAssessment.Builder

mergeFirewallPolicy(FirewallPolicy value)

public FirewallPolicyAssessment.Builder mergeFirewallPolicy(FirewallPolicy value)

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
FirewallPolicyAssessment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FirewallPolicyAssessment other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(Status value)

public FirewallPolicyAssessment.Builder setError(Status value)

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
FirewallPolicyAssessment.Builder

setError(Status.Builder builderForValue)

public FirewallPolicyAssessment.Builder setError(Status.Builder builderForValue)

Output only. If the processing of a policy config fails, an error is populated and the firewall_policy is left empty.

.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
FirewallPolicyAssessment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirewallPolicy(FirewallPolicy value)

public FirewallPolicyAssessment.Builder setFirewallPolicy(FirewallPolicy value)

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
FirewallPolicyAssessment.Builder

setFirewallPolicy(FirewallPolicy.Builder builderForValue)

public FirewallPolicyAssessment.Builder setFirewallPolicy(FirewallPolicy.Builder builderForValue)

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field is left empty.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FirewallPolicy.Builder
Returns
Type Description
FirewallPolicyAssessment.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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