Class RiskAnalysis.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RiskAnalysis.Builder>
com.google.recaptchaenterprise.v1.RiskAnalysis.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RiskAnalysisOrBuilder,Cloneable
- Enclosing class:
- RiskAnalysis
public static final class RiskAnalysis.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RiskAnalysis.Builder>
implements RiskAnalysisOrBuilder
Risk analysis result for an event.Protobuf type
google.cloud.recaptchaenterprise.v1.RiskAnalysis-
Method Summary
Modifier and TypeMethodDescriptionaddAllExtendedVerdictReasons(Iterable<String> values) Output only.addAllReasons(Iterable<? extends RiskAnalysis.ClassificationReason> values) Output only.addAllReasonsValue(Iterable<Integer> values) Output only.addAllVerifiedBots(Iterable<? extends Bot> values) Output only.addExtendedVerdictReasons(String value) Output only.addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString value) Output only.Output only.addReasonsValue(int value) Output only.addVerifiedBots(int index, Bot value) Output only.addVerifiedBots(int index, Bot.Builder builderForValue) Output only.addVerifiedBots(Bot value) Output only.addVerifiedBots(Bot.Builder builderForValue) Output only.Output only.addVerifiedBotsBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExtendedVerdictReasons(int index) Output only.com.google.protobuf.ByteStringgetExtendedVerdictReasonsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getReasons(int index) Output only.intOutput only.Output only.intgetReasonsValue(int index) Output only.Output only.floatgetScore()Output only.getVerifiedBots(int index) Output only.getVerifiedBotsBuilder(int index) Output only.Output only.intOutput only.Output only.getVerifiedBotsOrBuilder(int index) Output only.List<? extends BotOrBuilder>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(RiskAnalysis other) removeVerifiedBots(int index) Output only.Output only.setChallengeValue(int value) Output only.setExtendedVerdictReasons(int index, String value) Output only.setReasons(int index, RiskAnalysis.ClassificationReason value) Output only.setReasonsValue(int index, int value) Output only.setScore(float value) Output only.setVerifiedBots(int index, Bot value) Output only.setVerifiedBots(int index, Bot.Builder builderForValue) 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<RiskAnalysis.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<RiskAnalysis.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<RiskAnalysis.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<RiskAnalysis.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RiskAnalysis.Builder>
-
mergeFrom
public RiskAnalysis.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<RiskAnalysis.Builder>- Throws:
IOException
-
getScore
public 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];- Specified by:
getScorein interfaceRiskAnalysisOrBuilder- Returns:
- The score.
-
setScore
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];- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
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];- Specified by:
getReasonsListin interfaceRiskAnalysisOrBuilder- Returns:
- A list containing the reasons.
-
getReasonsCount
public 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];- Specified by:
getReasonsCountin interfaceRiskAnalysisOrBuilder- Returns:
- The count of reasons.
-
getReasons
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsin interfaceRiskAnalysisOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reasons at the given index.
-
setReasons
Output only. Reasons contributing to the risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason 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 risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The reasons to add.- Returns:
- This builder for chaining.
-
addAllReasons
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];- Parameters:
values- The reasons to add.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
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];- Specified by:
getReasonsValueListin interfaceRiskAnalysisOrBuilder- 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 risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReasonsValuein interfaceRiskAnalysisOrBuilder- 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 risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason 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 risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason 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 risk analysis verdict.
repeated .google.cloud.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason 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.
-
getExtendedVerdictReasonsList
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];- Specified by:
getExtendedVerdictReasonsListin interfaceRiskAnalysisOrBuilder- Returns:
- A list containing the extendedVerdictReasons.
-
getExtendedVerdictReasonsCount
public 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];- Specified by:
getExtendedVerdictReasonsCountin interfaceRiskAnalysisOrBuilder- Returns:
- The count of extendedVerdictReasons.
-
getExtendedVerdictReasons
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];- Specified by:
getExtendedVerdictReasonsin interfaceRiskAnalysisOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The extendedVerdictReasons at the given index.
-
getExtendedVerdictReasonsBytes
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];- Specified by:
getExtendedVerdictReasonsBytesin interfaceRiskAnalysisOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the extendedVerdictReasons at the given index.
-
setExtendedVerdictReasons
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];- Parameters:
index- The index to set the value at.value- The extendedVerdictReasons to set.- Returns:
- This builder for chaining.
-
addExtendedVerdictReasons
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];- Parameters:
value- The extendedVerdictReasons to add.- Returns:
- This builder for chaining.
-
addAllExtendedVerdictReasons
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];- Parameters:
values- The extendedVerdictReasons to add.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
addExtendedVerdictReasonsBytes
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];- Parameters:
value- The bytes of the extendedVerdictReasons to add.- Returns:
- This builder for chaining.
-
getChallengeValue
public int getChallengeValue()Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChallengeValuein interfaceRiskAnalysisOrBuilder- Returns:
- The enum numeric value on the wire for challenge.
-
setChallengeValue
Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for challenge to set.- Returns:
- This builder for chaining.
-
getChallenge
Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChallengein interfaceRiskAnalysisOrBuilder- Returns:
- The challenge.
-
setChallenge
Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The challenge to set.- Returns:
- This builder for chaining.
-
clearChallenge
Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys.
.google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge challenge = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getVerifiedBotsList
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVerifiedBotsListin interfaceRiskAnalysisOrBuilder
-
getVerifiedBotsCount
public int getVerifiedBotsCount()Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVerifiedBotsCountin interfaceRiskAnalysisOrBuilder
-
getVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVerifiedBotsin interfaceRiskAnalysisOrBuilder
-
setVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeVerifiedBots
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVerifiedBotsBuilder
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVerifiedBotsOrBuilder
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVerifiedBotsOrBuilderin interfaceRiskAnalysisOrBuilder
-
getVerifiedBotsOrBuilderList
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVerifiedBotsOrBuilderListin interfaceRiskAnalysisOrBuilder
-
addVerifiedBotsBuilder
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addVerifiedBotsBuilder
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getVerifiedBotsBuilderList
Output only. Bots with identities that have been verified by reCAPTCHA and detected in the event.
repeated .google.cloud.recaptchaenterprise.v1.Bot verified_bots = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-