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 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.Builder<RiskAnalysis.Builder>
    • clear

      public RiskAnalysis.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RiskAnalysis.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RiskAnalysis.Builder>
    • getDefaultInstanceForType

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

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

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

      public RiskAnalysis.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RiskAnalysis.Builder>
    • mergeFrom

      public RiskAnalysis.Builder mergeFrom(RiskAnalysis other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getScore in interface RiskAnalysisOrBuilder
      Returns:
      The score.
    • setScore

      public 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];
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

      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];
      Returns:
      This builder for chaining.
    • 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.
    • setReasons

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

      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];
      Returns:
      This builder for chaining.
    • 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.
    • setReasonsValue

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

      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];
      Parameters:
      value - The enum numeric value on the wire for reasons to add.
      Returns:
      This builder for chaining.
    • addAllReasonsValue

      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];
      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:
      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.
    • setExtendedVerdictReasons

      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];
      Parameters:
      index - The index to set the value at.
      value - The extendedVerdictReasons to set.
      Returns:
      This builder for chaining.
    • addExtendedVerdictReasons

      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];
      Parameters:
      value - The extendedVerdictReasons to add.
      Returns:
      This builder for chaining.
    • addAllExtendedVerdictReasons

      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];
      Parameters:
      values - The extendedVerdictReasons to add.
      Returns:
      This builder for chaining.
    • clearExtendedVerdictReasons

      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];
      Returns:
      This builder for chaining.
    • addExtendedVerdictReasonsBytes

      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];
      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:
      getChallengeValue in interface RiskAnalysisOrBuilder
      Returns:
      The enum numeric value on the wire for challenge.
    • setChallengeValue

      public RiskAnalysis.Builder setChallengeValue(int value)
       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

      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.
    • setChallenge

      public RiskAnalysis.Builder setChallenge(RiskAnalysis.Challenge value)
       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

      public RiskAnalysis.Builder 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

      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
    • 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
    • setVerifiedBots

      public RiskAnalysis.Builder setVerifiedBots(int index, Bot value)
       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

      public RiskAnalysis.Builder setVerifiedBots(int index, Bot.Builder builderForValue)
       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

      public RiskAnalysis.Builder addVerifiedBots(Bot value)
       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

      public RiskAnalysis.Builder addVerifiedBots(int index, Bot value)
       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

      public RiskAnalysis.Builder addVerifiedBots(Bot.Builder builderForValue)
       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

      public RiskAnalysis.Builder addVerifiedBots(int index, Bot.Builder builderForValue)
       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

      public RiskAnalysis.Builder addAllVerifiedBots(Iterable<? extends Bot> values)
       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

      public RiskAnalysis.Builder 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

      public RiskAnalysis.Builder removeVerifiedBots(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];
    • getVerifiedBotsBuilder

      public Bot.Builder getVerifiedBotsBuilder(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];
    • 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
    • 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
    • addVerifiedBotsBuilder

      public Bot.Builder 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

      public Bot.Builder addVerifiedBotsBuilder(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];
    • getVerifiedBotsBuilderList

      public List<Bot.Builder> 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];