Class FirewallPolicyAssessment (3.31.0)

public final class FirewallPolicyAssessment extends GeneratedMessageV3 implements FirewallPolicyAssessmentOrBuilder

Policy config assessment.

Protobuf type google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment

Static Fields

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

FIREWALL_POLICY_FIELD_NUMBER

public static final int FIREWALL_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FirewallPolicyAssessment getDefaultInstance()
Returns
TypeDescription
FirewallPolicyAssessment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FirewallPolicyAssessment.Builder newBuilder()
Returns
TypeDescription
FirewallPolicyAssessment.Builder

newBuilder(FirewallPolicyAssessment prototype)

public static FirewallPolicyAssessment.Builder newBuilder(FirewallPolicyAssessment prototype)
Parameter
NameDescription
prototypeFirewallPolicyAssessment
Returns
TypeDescription
FirewallPolicyAssessment.Builder

parseDelimitedFrom(InputStream input)

public static FirewallPolicyAssessment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FirewallPolicyAssessment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallPolicyAssessment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallPolicyAssessment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FirewallPolicyAssessment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FirewallPolicyAssessment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyAssessment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyAssessment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FirewallPolicyAssessment> parser()
Returns
TypeDescription
Parser<FirewallPolicyAssessment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FirewallPolicyAssessment getDefaultInstanceForType()
Returns
TypeDescription
FirewallPolicyAssessment

getError()

public Status getError()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.

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

getParserForType()

public Parser<FirewallPolicyAssessment> getParserForType()
Returns
TypeDescription
Parser<FirewallPolicyAssessment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasError()

public boolean hasError()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FirewallPolicyAssessment.Builder newBuilderForType()
Returns
TypeDescription
FirewallPolicyAssessment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallPolicyAssessment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FirewallPolicyAssessment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FirewallPolicyAssessment.Builder toBuilder()
Returns
TypeDescription
FirewallPolicyAssessment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException