public static final class RiskAnalysis.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder> implements RiskAnalysisOrBuilder
Risk analysis result for an event.Protobuf type
google.cloud.recaptchaenterprise.v1.RiskAnalysisgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RiskAnalysis build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RiskAnalysis buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RiskAnalysis.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder mergeFrom(RiskAnalysis other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public RiskAnalysis.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RiskAnalysis.Builder>IOExceptionpublic float getScore()
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];getScore in interface RiskAnalysisOrBuilderpublic RiskAnalysis.Builder setScore(float value)
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The score to set.public RiskAnalysis.Builder clearScore()
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];public List<RiskAnalysis.ClassificationReason> getReasonsList()
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getReasonsList in interface RiskAnalysisOrBuilderpublic int getReasonsCount()
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getReasonsCount in interface RiskAnalysisOrBuilderpublic RiskAnalysis.ClassificationReason getReasons(int index)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getReasons in interface RiskAnalysisOrBuilderindex - The index of the element to return.public RiskAnalysis.Builder setReasons(int index, RiskAnalysis.ClassificationReason value)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index to set the value at.value - The reasons to set.public RiskAnalysis.Builder addReasons(RiskAnalysis.ClassificationReason value)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The reasons to add.public RiskAnalysis.Builder addAllReasons(Iterable<? extends RiskAnalysis.ClassificationReason> values)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
values - The reasons to add.public RiskAnalysis.Builder clearReasons()
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<Integer> getReasonsValueList()
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getReasonsValueList in interface RiskAnalysisOrBuilderpublic int getReasonsValue(int index)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getReasonsValue in interface RiskAnalysisOrBuilderindex - The index of the value to return.public RiskAnalysis.Builder setReasonsValue(int index, int value)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index to set the value at.value - The enum numeric value on the wire for reasons to set.public RiskAnalysis.Builder addReasonsValue(int value)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for reasons to add.public RiskAnalysis.Builder addAllReasonsValue(Iterable<Integer> values)
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
values - The enum numeric values on the wire for reasons to add.public com.google.protobuf.ProtocolStringList getExtendedVerdictReasonsList()
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtendedVerdictReasonsList in interface RiskAnalysisOrBuilderpublic int getExtendedVerdictReasonsCount()
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtendedVerdictReasonsCount in interface RiskAnalysisOrBuilderpublic String getExtendedVerdictReasons(int index)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtendedVerdictReasons in interface RiskAnalysisOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExtendedVerdictReasonsBytes in interface RiskAnalysisOrBuilderindex - The index of the value to return.public RiskAnalysis.Builder setExtendedVerdictReasons(int index, String value)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index to set the value at.value - The extendedVerdictReasons to set.public RiskAnalysis.Builder addExtendedVerdictReasons(String value)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The extendedVerdictReasons to add.public RiskAnalysis.Builder addAllExtendedVerdictReasons(Iterable<String> values)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
values - The extendedVerdictReasons to add.public RiskAnalysis.Builder clearExtendedVerdictReasons()
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RiskAnalysis.Builder addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString value)
Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.
repeated string extended_verdict_reasons = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The bytes of the extendedVerdictReasons to add.public int getChallengeValue()
Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChallengeValue in interface RiskAnalysisOrBuilderpublic RiskAnalysis.Builder setChallengeValue(int value)
Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for challenge to set.public RiskAnalysis.Challenge getChallenge()
Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChallenge in interface RiskAnalysisOrBuilderpublic RiskAnalysis.Builder setChallenge(RiskAnalysis.Challenge value)
Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The challenge to set.public RiskAnalysis.Builder clearChallenge()
Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final RiskAnalysis.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>public final RiskAnalysis.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RiskAnalysis.Builder>Copyright © 2025 Google LLC. All rights reserved.