Class SmsTollFraudVerdict.Builder (3.44.0)

public static final class SmsTollFraudVerdict.Builder extends GeneratedMessageV3.Builder<SmsTollFraudVerdict.Builder> implements SmsTollFraudVerdictOrBuilder

Information about SMS toll fraud.

Protobuf type google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict

Static Methods

getDescriptor()

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

Methods

addAllReasons(Iterable<? extends SmsTollFraudVerdict.SmsTollFraudReason> values)

public SmsTollFraudVerdict.Builder addAllReasons(Iterable<? extends SmsTollFraudVerdict.SmsTollFraudReason> values)

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
values Iterable<? extends com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason>

The reasons to add.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

addAllReasonsValue(Iterable<Integer> values)

public SmsTollFraudVerdict.Builder addAllReasonsValue(Iterable<Integer> values)

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
values Iterable<Integer>

The enum numeric values on the wire for reasons to add.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

addReasons(SmsTollFraudVerdict.SmsTollFraudReason value)

public SmsTollFraudVerdict.Builder addReasons(SmsTollFraudVerdict.SmsTollFraudReason value)

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
value SmsTollFraudVerdict.SmsTollFraudReason

The reasons to add.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

addReasonsValue(int value)

public SmsTollFraudVerdict.Builder addReasonsValue(int value)

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
value int

The enum numeric value on the wire for reasons to add.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SmsTollFraudVerdict build()
Returns
Type Description
SmsTollFraudVerdict

buildPartial()

public SmsTollFraudVerdict buildPartial()
Returns
Type Description
SmsTollFraudVerdict

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReasons()

public SmsTollFraudVerdict.Builder clearReasons()

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
SmsTollFraudVerdict.Builder

This builder for chaining.

clearRisk()

public SmsTollFraudVerdict.Builder clearRisk()

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
SmsTollFraudVerdict.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SmsTollFraudVerdict getDefaultInstanceForType()
Returns
Type Description
SmsTollFraudVerdict

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SmsTollFraudVerdict other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setReasons(int index, SmsTollFraudVerdict.SmsTollFraudReason value)

public SmsTollFraudVerdict.Builder setReasons(int index, SmsTollFraudVerdict.SmsTollFraudReason value)

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];

Parameters
Name Description
index int

The index to set the value at.

value SmsTollFraudVerdict.SmsTollFraudReason

The reasons to set.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

setReasonsValue(int index, int value)

public SmsTollFraudVerdict.Builder setReasonsValue(int index, int value)

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];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for reasons to set.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

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

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

setRisk(float value)

public SmsTollFraudVerdict.Builder setRisk(float value)

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];

Parameter
Name Description
value float

The risk to set.

Returns
Type Description
SmsTollFraudVerdict.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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