Class RiskAnalysis (3.19.0)

public final class RiskAnalysis extends GeneratedMessageV3 implements RiskAnalysisOrBuilder

Risk analysis result for an event.

Protobuf type google.cloud.recaptchaenterprise.v1.RiskAnalysis

Static Fields

REASONS_FIELD_NUMBER

public static final int REASONS_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RiskAnalysis getDefaultInstance()
Returns
TypeDescription
RiskAnalysis

getDescriptor()

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

newBuilder()

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

newBuilder(RiskAnalysis prototype)

public static RiskAnalysis.Builder newBuilder(RiskAnalysis prototype)
Parameter
NameDescription
prototypeRiskAnalysis
Returns
TypeDescription
RiskAnalysis.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public RiskAnalysis getDefaultInstanceForType()
Returns
TypeDescription
RiskAnalysis

getParserForType()

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

getReasons(int index)

public RiskAnalysis.ClassificationReason getReasons(int index)

Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
RiskAnalysis.ClassificationReason

The reasons at the given index.

getReasonsCount()

public int getReasonsCount()

Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2;

Returns
TypeDescription
int

The count of reasons.

getReasonsList()

public List<RiskAnalysis.ClassificationReason> getReasonsList()

Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2;

Returns
TypeDescription
List<ClassificationReason>

A list containing the reasons.

getReasonsValue(int index)

public int getReasonsValue(int index)

Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of reasons at the given index.

getReasonsValueList()

public List<Integer> getReasonsValueList()

Reasons contributing to the risk analysis verdict.

repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for reasons.

getScore()

public float getScore()

Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

float score = 1;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 RiskAnalysis.Builder newBuilderForType()
Returns
TypeDescription
RiskAnalysis.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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