Class FirewallPolicyAssessment.Builder (3.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FirewallPolicyAssessment build()
Returns
TypeDescription
FirewallPolicyAssessment

buildPartial()

public FirewallPolicyAssessment buildPartial()
Returns
TypeDescription
FirewallPolicyAssessment

clear()

public FirewallPolicyAssessment.Builder clear()
Returns
TypeDescription
FirewallPolicyAssessment.Builder
Overrides

clearError()

public FirewallPolicyAssessment.Builder clearError()

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Returns
TypeDescription
FirewallPolicyAssessment.Builder

clearField(Descriptors.FieldDescriptor field)

public FirewallPolicyAssessment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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 will be left empty.

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

Returns
TypeDescription
FirewallPolicyAssessment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public FirewallPolicyAssessment.Builder clone()
Returns
TypeDescription
FirewallPolicyAssessment.Builder
Overrides

getDefaultInstanceForType()

public FirewallPolicyAssessment getDefaultInstanceForType()
Returns
TypeDescription
FirewallPolicyAssessment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Returns
TypeDescription
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 will be left empty.

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

Returns
TypeDescription
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 will be left empty.

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

Returns
TypeDescription
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 will be left empty.

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

Returns
TypeDescription
FirewallPolicyOrBuilder

hasError()

public boolean hasError()

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Returns
TypeDescription
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 will be left empty.

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

Returns
TypeDescription
boolean

Whether the firewallPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public FirewallPolicyAssessment.Builder mergeError(Status value)

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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 will be left empty.

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

Parameter
NameDescription
valueFirewallPolicy
Returns
TypeDescription
FirewallPolicyAssessment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(FirewallPolicyAssessment other)

public FirewallPolicyAssessment.Builder mergeFrom(FirewallPolicyAssessment other)
Parameter
NameDescription
otherFirewallPolicyAssessment
Returns
TypeDescription
FirewallPolicyAssessment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FirewallPolicyAssessment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FirewallPolicyAssessment.Builder
Overrides

setError(Status value)

public FirewallPolicyAssessment.Builder setError(Status value)

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
FirewallPolicyAssessment.Builder

setError(Status.Builder builderForValue)

public FirewallPolicyAssessment.Builder setError(Status.Builder builderForValue)

If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

.google.rpc.Status error = 5;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
FirewallPolicyAssessment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FirewallPolicyAssessment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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 will be left empty.

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

Parameter
NameDescription
valueFirewallPolicy
Returns
TypeDescription
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 will be left empty.

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

Parameter
NameDescription
builderForValueFirewallPolicy.Builder
Returns
TypeDescription
FirewallPolicyAssessment.Builder

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

public FirewallPolicyAssessment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FirewallPolicyAssessment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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