Class SmsTollFraudVerdict.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SmsTollFraudVerdictOrBuilder,Cloneable
- Enclosing class:
- SmsTollFraudVerdict
public static final class SmsTollFraudVerdict.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
implements SmsTollFraudVerdictOrBuilder
Information about SMS toll fraud.Protobuf type
google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict-
Method Summary
Modifier and TypeMethodDescriptionaddAllReasons(Iterable<? extends SmsTollFraudVerdict.SmsTollFraudReason> values) Output only.addAllReasonsValue(Iterable<Integer> values) Output only.Output only.addReasonsValue(int value) Output only.build()clear()Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetReasons(int index) Output only.intOutput only.Output only.intgetReasonsValue(int index) Output only.Output only.floatgetRisk()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SmsTollFraudVerdict other) setReasons(int index, SmsTollFraudVerdict.SmsTollFraudReason value) Output only.setReasonsValue(int index, int value) Output only.setRisk(float value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmsTollFraudVerdict.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SmsTollFraudVerdict.Builder>
-
mergeFrom
public SmsTollFraudVerdict.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SmsTollFraudVerdict.Builder>- Throws:
IOException
-
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];- Specified by:
getRiskin interfaceSmsTollFraudVerdictOrBuilder- Returns:
- The risk.
-
setRisk
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];- Parameters:
value- The risk to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getReasonsListin interfaceSmsTollFraudVerdictOrBuilder- Returns:
- A list containing the reasons.
-
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];- Specified by:
getReasonsCountin interfaceSmsTollFraudVerdictOrBuilder- Returns:
- The count of reasons.
-
getReasons
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];- Specified by:
getReasonsin interfaceSmsTollFraudVerdictOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reasons at the given index.
-
setReasons
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:
index- The index to set the value at.value- The reasons to set.- Returns:
- This builder for chaining.
-
addReasons
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:
value- The reasons to add.- Returns:
- This builder for chaining.
-
addAllReasons
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];- Parameters:
values- The reasons to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getReasonsValueListin interfaceSmsTollFraudVerdictOrBuilder- Returns:
- A list containing the enum numeric values on the wire for reasons.
-
getReasonsValue
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];- Specified by:
getReasonsValuein interfaceSmsTollFraudVerdictOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of reasons at the given index.
-
setReasonsValue
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:
index- The index to set the value at.value- The enum numeric value on the wire for reasons to set.- Returns:
- This builder for chaining.
-
addReasonsValue
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:
value- The enum numeric value on the wire for reasons to add.- Returns:
- This builder for chaining.
-
addAllReasonsValue
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:
values- The enum numeric values on the wire for reasons to add.- Returns:
- This builder for chaining.
-