Class SmsTollFraudVerdict (3.51.0)

public final class SmsTollFraudVerdict extends GeneratedMessageV3 implements SmsTollFraudVerdictOrBuilder

Information about SMS toll fraud.

Protobuf type google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict

Static Fields

REASONS_FIELD_NUMBER

public static final int REASONS_FIELD_NUMBER
Field Value
Type Description
int

RISK_FIELD_NUMBER

public static final int RISK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SmsTollFraudVerdict getDefaultInstance()
Returns
Type Description
SmsTollFraudVerdict

getDescriptor()

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

newBuilder()

public static SmsTollFraudVerdict.Builder newBuilder()
Returns
Type Description
SmsTollFraudVerdict.Builder

newBuilder(SmsTollFraudVerdict prototype)

public static SmsTollFraudVerdict.Builder newBuilder(SmsTollFraudVerdict prototype)
Parameter
Name Description
prototype SmsTollFraudVerdict
Returns
Type Description
SmsTollFraudVerdict.Builder

parseDelimitedFrom(InputStream input)

public static SmsTollFraudVerdict parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SmsTollFraudVerdict parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SmsTollFraudVerdict parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SmsTollFraudVerdict parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SmsTollFraudVerdict parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SmsTollFraudVerdict parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SmsTollFraudVerdict parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmsTollFraudVerdict
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SmsTollFraudVerdict> parser()
Returns
Type Description
Parser<SmsTollFraudVerdict>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SmsTollFraudVerdict getDefaultInstanceForType()
Returns
Type Description
SmsTollFraudVerdict

getParserForType()

public Parser<SmsTollFraudVerdict> getParserForType()
Returns
Type Description
Parser<SmsTollFraudVerdict>
Overrides

getReasons(int index)

public SmsTollFraudVerdict.SmsTollFraudReason getReasons(int index)

Output only. Reasons contributing to the SMS toll fraud verdict.

repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SmsTollFraudVerdict.SmsTollFraudReason

The reasons at the given index.

getReasonsCount()

public int getReasonsCount()

Output only. Reasons contributing to the SMS toll fraud verdict.

repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of reasons.

getReasonsList()

public List<SmsTollFraudVerdict.SmsTollFraudReason> getReasonsList()

Output only. Reasons contributing to the SMS toll fraud verdict.

repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<SmsTollFraudReason>

A list containing the reasons.

getReasonsValue(int index)

public int getReasonsValue(int index)

Output only. Reasons contributing to the SMS toll fraud verdict.

repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

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

getReasonsValueList()

public List<Integer> getReasonsValueList()

Output only. Reasons contributing to the SMS toll fraud verdict.

repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

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

getRisk()

public float getRisk()

Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).

float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The risk.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SmsTollFraudVerdict.Builder newBuilderForType()
Returns
Type Description
SmsTollFraudVerdict.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SmsTollFraudVerdict.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SmsTollFraudVerdict.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SmsTollFraudVerdict.Builder toBuilder()
Returns
Type Description
SmsTollFraudVerdict.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException