Class RiskAnalysis

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.recaptchaenterprise.v1.RiskAnalysis
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RiskAnalysisOrBuilder, Serializable

@Generated public final class RiskAnalysis extends com.google.protobuf.GeneratedMessage implements RiskAnalysisOrBuilder
 Risk analysis result for an event.
 
Protobuf type google.cloud.recaptchaenterprise.v1.RiskAnalysis
See Also:
  • Field Details

    • SCORE_FIELD_NUMBER

      public static final int SCORE_FIELD_NUMBER
      See Also:
    • REASONS_FIELD_NUMBER

      public static final int REASONS_FIELD_NUMBER
      See Also:
    • EXTENDED_VERDICT_REASONS_FIELD_NUMBER

      public static final int EXTENDED_VERDICT_REASONS_FIELD_NUMBER
      See Also:
    • CHALLENGE_FIELD_NUMBER

      public static final int CHALLENGE_FIELD_NUMBER
      See Also:
    • VERIFIED_BOTS_FIELD_NUMBER

      public static final int VERIFIED_BOTS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getScore in interface RiskAnalysisOrBuilder
      Returns:
      The score.
    • getReasonsList

      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];
      Specified by:
      getReasonsList in interface RiskAnalysisOrBuilder
      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:
      getReasonsCount in interface RiskAnalysisOrBuilder
      Returns:
      The count of reasons.
    • getReasons

      public 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];
      Specified by:
      getReasons in interface RiskAnalysisOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The reasons at the given index.
    • getReasonsValueList

      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];
      Specified by:
      getReasonsValueList in interface RiskAnalysisOrBuilder
      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:
      getReasonsValue in interface RiskAnalysisOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of reasons at the given index.
    • 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:
      getExtendedVerdictReasonsList in interface RiskAnalysisOrBuilder
      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:
      getExtendedVerdictReasonsCount in interface RiskAnalysisOrBuilder
      Returns:
      The count of extendedVerdictReasons.
    • getExtendedVerdictReasons

      public 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];
      Specified by:
      getExtendedVerdictReasons in interface RiskAnalysisOrBuilder
      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:
      getExtendedVerdictReasonsBytes in interface RiskAnalysisOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the extendedVerdictReasons at the given index.
    • 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:
      getChallengeValue in interface RiskAnalysisOrBuilder
      Returns:
      The enum numeric value on the wire for challenge.
    • getChallenge

      public RiskAnalysis.Challenge 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:
      getChallenge in interface RiskAnalysisOrBuilder
      Returns:
      The challenge.
    • getVerifiedBotsList

      public List<Bot> 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:
      getVerifiedBotsList in interface RiskAnalysisOrBuilder
    • getVerifiedBotsOrBuilderList

      public List<? extends BotOrBuilder> 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:
      getVerifiedBotsOrBuilderList in interface RiskAnalysisOrBuilder
    • 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:
      getVerifiedBotsCount in interface RiskAnalysisOrBuilder
    • getVerifiedBots

      public Bot getVerifiedBots(int index)
       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:
      getVerifiedBots in interface RiskAnalysisOrBuilder
    • getVerifiedBotsOrBuilder

      public BotOrBuilder getVerifiedBotsOrBuilder(int index)
       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:
      getVerifiedBotsOrBuilder in interface RiskAnalysisOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RiskAnalysis parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RiskAnalysis parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RiskAnalysis parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RiskAnalysis parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RiskAnalysis parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RiskAnalysis parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RiskAnalysis parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RiskAnalysis.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RiskAnalysis.Builder newBuilder()
    • newBuilder

      public static RiskAnalysis.Builder newBuilder(RiskAnalysis prototype)
    • toBuilder

      public RiskAnalysis.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RiskAnalysis.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RiskAnalysis getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RiskAnalysis> parser()
    • getParserForType

      public com.google.protobuf.Parser<RiskAnalysis> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RiskAnalysis getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder