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 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<SmsTollFraudVerdict.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<SmsTollFraudVerdict.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<SmsTollFraudVerdict.Builder>
    • getDefaultInstanceForType

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

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

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

      public SmsTollFraudVerdict.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<SmsTollFraudVerdict.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      getRisk in interface SmsTollFraudVerdictOrBuilder
      Returns:
      The risk.
    • setRisk

      public SmsTollFraudVerdict.Builder setRisk(float value)
       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

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

      public List<SmsTollFraudVerdict.SmsTollFraudReason> 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:
      getReasonsList in interface SmsTollFraudVerdictOrBuilder
      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:
      getReasonsCount in interface SmsTollFraudVerdictOrBuilder
      Returns:
      The count of reasons.
    • getReasons

      public SmsTollFraudVerdict.SmsTollFraudReason getReasons(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:
      getReasons in interface SmsTollFraudVerdictOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The reasons at the given index.
    • setReasons

       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

       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

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

      public List<Integer> 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:
      getReasonsValueList in interface SmsTollFraudVerdictOrBuilder
      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:
      getReasonsValue in interface SmsTollFraudVerdictOrBuilder
      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 SmsTollFraudVerdict.Builder setReasonsValue(int index, int 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 enum numeric value on the wire for reasons to set.
      Returns:
      This builder for chaining.
    • addReasonsValue

      public SmsTollFraudVerdict.Builder addReasonsValue(int 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:
      value - The enum numeric value on the wire for reasons to add.
      Returns:
      This builder for chaining.
    • addAllReasonsValue

      public SmsTollFraudVerdict.Builder addAllReasonsValue(Iterable<Integer> 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 enum numeric values on the wire for reasons to add.
      Returns:
      This builder for chaining.