/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto

package com.google.recaptchaenterprise.v1beta1;

/**
 *
 *
 * <pre>
 * Assessment for Fraud Prevention.
 * </pre>
 *
 * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment}
 */
public final class FraudPreventionAssessment extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment)
    FraudPreventionAssessmentOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use FraudPreventionAssessment.newBuilder() to construct.
  private FraudPreventionAssessment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private FraudPreventionAssessment() {}

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new FraudPreventionAssessment();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
        .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
        .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class);
  }

  public interface StolenInstrumentVerdictOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction being executed with a stolen
     * instrument.
     * </pre>
     *
     * <code>float risk = 1;</code>
     *
     * @return The risk.
     */
    float getRisk();
  }
  /**
   *
   *
   * <pre>
   * Information about stolen instrument fraud, where the user is not the
   * legitimate owner of the instrument being used for the purchase.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict}
   */
  public static final class StolenInstrumentVerdict extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)
      StolenInstrumentVerdictOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use StolenInstrumentVerdict.newBuilder() to construct.
    private StolenInstrumentVerdict(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private StolenInstrumentVerdict() {}

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new StolenInstrumentVerdict();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                  .StolenInstrumentVerdict.class,
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                  .StolenInstrumentVerdict.Builder.class);
    }

    public static final int RISK_FIELD_NUMBER = 1;
    private float risk_ = 0F;
    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction being executed with a stolen
     * instrument.
     * </pre>
     *
     * <code>float risk = 1;</code>
     *
     * @return The risk.
     */
    @java.lang.Override
    public float getRisk() {
      return risk_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (java.lang.Float.floatToRawIntBits(risk_) != 0) {
        output.writeFloat(1, risk_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (java.lang.Float.floatToRawIntBits(risk_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
              .StolenInstrumentVerdict)) {
        return super.equals(obj);
      }
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
          other =
              (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                      .StolenInstrumentVerdict)
                  obj;

      if (java.lang.Float.floatToIntBits(getRisk())
          != java.lang.Float.floatToIntBits(other.getRisk())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + RISK_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Information about stolen instrument fraud, where the user is not the
     * legitimate owner of the instrument being used for the purchase.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdictOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict.class,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict.Builder.class);
      }

      // Construct using
      // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        risk_ = 0F;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_StolenInstrumentVerdict_descriptor;
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
              .StolenInstrumentVerdict
          getDefaultInstanceForType() {
        return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
              .StolenInstrumentVerdict
          build() {
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
              .StolenInstrumentVerdict
          buildPartial() {
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            result =
                new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.risk_ = risk_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other
            instanceof
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict) {
          return mergeFrom(
              (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                      .StolenInstrumentVerdict)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
              other) {
        if (other
            == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict.getDefaultInstance()) return this;
        if (other.getRisk() != 0F) {
          setRisk(other.getRisk());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 13:
                {
                  risk_ = input.readFloat();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 13
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private float risk_;
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction being executed with a stolen
       * instrument.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @return The risk.
       */
      @java.lang.Override
      public float getRisk() {
        return risk_;
      }
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction being executed with a stolen
       * instrument.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @param value The risk to set.
       * @return This builder for chaining.
       */
      public Builder setRisk(float value) {

        risk_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction being executed with a stolen
       * instrument.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearRisk() {
        bitField0_ = (bitField0_ & ~0x00000001);
        risk_ = 0F;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict)
    private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
              .StolenInstrumentVerdict();
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdict
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<StolenInstrumentVerdict> PARSER =
        new com.google.protobuf.AbstractParser<StolenInstrumentVerdict>() {
          @java.lang.Override
          public StolenInstrumentVerdict parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<StolenInstrumentVerdict> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<StolenInstrumentVerdict> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface CardTestingVerdictOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction attempt being part of a card
     * testing attack.
     * </pre>
     *
     * <code>float risk = 1;</code>
     *
     * @return The risk.
     */
    float getRisk();
  }
  /**
   *
   *
   * <pre>
   * Information about card testing fraud, where an adversary is testing
   * fraudulently obtained cards or brute forcing their details.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict}
   */
  public static final class CardTestingVerdict extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
      CardTestingVerdictOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CardTestingVerdict.newBuilder() to construct.
    private CardTestingVerdict(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CardTestingVerdict() {}

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new CardTestingVerdict();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                  .class,
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                  .Builder.class);
    }

    public static final int RISK_FIELD_NUMBER = 1;
    private float risk_ = 0F;
    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction attempt being part of a card
     * testing attack.
     * </pre>
     *
     * <code>float risk = 1;</code>
     *
     * @return The risk.
     */
    @java.lang.Override
    public float getRisk() {
      return risk_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (java.lang.Float.floatToRawIntBits(risk_) != 0) {
        output.writeFloat(1, risk_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (java.lang.Float.floatToRawIntBits(risk_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)) {
        return super.equals(obj);
      }
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict other =
          (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) obj;

      if (java.lang.Float.floatToIntBits(getRisk())
          != java.lang.Float.floatToIntBits(other.getRisk())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + RISK_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(
            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
            prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Information about card testing fraud, where an adversary is testing
     * fraudulently obtained cards or brute forcing their details.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdictOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                    .class,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                    .Builder.class);
      }

      // Construct using
      // com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        risk_ = 0F;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
            .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_CardTestingVerdict_descriptor;
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
          getDefaultInstanceForType() {
        return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
          build() {
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
          buildPartial() {
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict result =
            new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict(
                this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.risk_ = risk_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other
            instanceof
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict) {
          return mergeFrom(
              (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
              other) {
        if (other
            == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                .getDefaultInstance()) return this;
        if (other.getRisk() != 0F) {
          setRisk(other.getRisk());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 13:
                {
                  risk_ = input.readFloat();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 13
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private float risk_;
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction attempt being part of a card
       * testing attack.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @return The risk.
       */
      @java.lang.Override
      public float getRisk() {
        return risk_;
      }
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction attempt being part of a card
       * testing attack.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @param value The risk to set.
       * @return This builder for chaining.
       */
      public Builder setRisk(float value) {

        risk_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Probability (0-1) of this transaction attempt being part of a card
       * testing attack.
       * </pre>
       *
       * <code>float risk = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearRisk() {
        bitField0_ = (bitField0_ & ~0x00000001);
        risk_ = 0F;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict)
    private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict();
    }

    public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdict
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<CardTestingVerdict> PARSER =
        new com.google.protobuf.AbstractParser<CardTestingVerdict>() {
          @java.lang.Override
          public CardTestingVerdict parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<CardTestingVerdict> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<CardTestingVerdict> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int TRANSACTION_RISK_FIELD_NUMBER = 1;
  private float transactionRisk_ = 0F;
  /**
   *
   *
   * <pre>
   * Probability (0-1) of this transaction being fraudulent. Summarizes the
   * combined risk of attack vectors below.
   * </pre>
   *
   * <code>float transaction_risk = 1;</code>
   *
   * @return The transactionRisk.
   */
  @java.lang.Override
  public float getTransactionRisk() {
    return transactionRisk_;
  }

  public static final int STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER = 2;
  private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
      stolenInstrumentVerdict_;
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of a stolen instrument.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
   * </code>
   *
   * @return Whether the stolenInstrumentVerdict field is set.
   */
  @java.lang.Override
  public boolean hasStolenInstrumentVerdict() {
    return stolenInstrumentVerdict_ != null;
  }
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of a stolen instrument.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
   * </code>
   *
   * @return The stolenInstrumentVerdict.
   */
  @java.lang.Override
  public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
      getStolenInstrumentVerdict() {
    return stolenInstrumentVerdict_ == null
        ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            .getDefaultInstance()
        : stolenInstrumentVerdict_;
  }
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of a stolen instrument.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
          .StolenInstrumentVerdictOrBuilder
      getStolenInstrumentVerdictOrBuilder() {
    return stolenInstrumentVerdict_ == null
        ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            .getDefaultInstance()
        : stolenInstrumentVerdict_;
  }

  public static final int CARD_TESTING_VERDICT_FIELD_NUMBER = 3;
  private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
      cardTestingVerdict_;
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of being part of a card testing
   * attack.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
   * </code>
   *
   * @return Whether the cardTestingVerdict field is set.
   */
  @java.lang.Override
  public boolean hasCardTestingVerdict() {
    return cardTestingVerdict_ != null;
  }
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of being part of a card testing
   * attack.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
   * </code>
   *
   * @return The cardTestingVerdict.
   */
  @java.lang.Override
  public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
      getCardTestingVerdict() {
    return cardTestingVerdict_ == null
        ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
            .getDefaultInstance()
        : cardTestingVerdict_;
  }
  /**
   *
   *
   * <pre>
   * Assessment of this transaction for risk of being part of a card testing
   * attack.
   * </pre>
   *
   * <code>
   * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
   * </code>
   */
  @java.lang.Override
  public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
          .CardTestingVerdictOrBuilder
      getCardTestingVerdictOrBuilder() {
    return cardTestingVerdict_ == null
        ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
            .getDefaultInstance()
        : cardTestingVerdict_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) {
      output.writeFloat(1, transactionRisk_);
    }
    if (stolenInstrumentVerdict_ != null) {
      output.writeMessage(2, getStolenInstrumentVerdict());
    }
    if (cardTestingVerdict_ != null) {
      output.writeMessage(3, getCardTestingVerdict());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (java.lang.Float.floatToRawIntBits(transactionRisk_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, transactionRisk_);
    }
    if (stolenInstrumentVerdict_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStolenInstrumentVerdict());
    }
    if (cardTestingVerdict_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCardTestingVerdict());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment)) {
      return super.equals(obj);
    }
    com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other =
        (com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) obj;

    if (java.lang.Float.floatToIntBits(getTransactionRisk())
        != java.lang.Float.floatToIntBits(other.getTransactionRisk())) return false;
    if (hasStolenInstrumentVerdict() != other.hasStolenInstrumentVerdict()) return false;
    if (hasStolenInstrumentVerdict()) {
      if (!getStolenInstrumentVerdict().equals(other.getStolenInstrumentVerdict())) return false;
    }
    if (hasCardTestingVerdict() != other.hasCardTestingVerdict()) return false;
    if (hasCardTestingVerdict()) {
      if (!getCardTestingVerdict().equals(other.getCardTestingVerdict())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TRANSACTION_RISK_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getTransactionRisk());
    if (hasStolenInstrumentVerdict()) {
      hash = (37 * hash) + STOLEN_INSTRUMENT_VERDICT_FIELD_NUMBER;
      hash = (53 * hash) + getStolenInstrumentVerdict().hashCode();
    }
    if (hasCardTestingVerdict()) {
      hash = (37 * hash) + CARD_TESTING_VERDICT_FIELD_NUMBER;
      hash = (53 * hash) + getCardTestingVerdict().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Assessment for Fraud Prevention.
   * </pre>
   *
   * Protobuf type {@code google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment)
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessmentOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.class,
              com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.Builder.class);
    }

    // Construct using com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      transactionRisk_ = 0F;
      stolenInstrumentVerdict_ = null;
      if (stolenInstrumentVerdictBuilder_ != null) {
        stolenInstrumentVerdictBuilder_.dispose();
        stolenInstrumentVerdictBuilder_ = null;
      }
      cardTestingVerdict_ = null;
      if (cardTestingVerdictBuilder_ != null) {
        cardTestingVerdictBuilder_.dispose();
        cardTestingVerdictBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.recaptchaenterprise.v1beta1.RecaptchaEnterpriseProto
          .internal_static_google_cloud_recaptchaenterprise_v1beta1_FraudPreventionAssessment_descriptor;
    }

    @java.lang.Override
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
        getDefaultInstanceForType() {
      return com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment build() {
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment buildPartial() {
      com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result =
          new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.transactionRisk_ = transactionRisk_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.stolenInstrumentVerdict_ =
            stolenInstrumentVerdictBuilder_ == null
                ? stolenInstrumentVerdict_
                : stolenInstrumentVerdictBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.cardTestingVerdict_ =
            cardTestingVerdictBuilder_ == null
                ? cardTestingVerdict_
                : cardTestingVerdictBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) {
        return mergeFrom((com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment other) {
      if (other
          == com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.getDefaultInstance())
        return this;
      if (other.getTransactionRisk() != 0F) {
        setTransactionRisk(other.getTransactionRisk());
      }
      if (other.hasStolenInstrumentVerdict()) {
        mergeStolenInstrumentVerdict(other.getStolenInstrumentVerdict());
      }
      if (other.hasCardTestingVerdict()) {
        mergeCardTestingVerdict(other.getCardTestingVerdict());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 13:
              {
                transactionRisk_ = input.readFloat();
                bitField0_ |= 0x00000001;
                break;
              } // case 13
            case 18:
              {
                input.readMessage(
                    getStolenInstrumentVerdictFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(
                    getCardTestingVerdictFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private float transactionRisk_;
    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction being fraudulent. Summarizes the
     * combined risk of attack vectors below.
     * </pre>
     *
     * <code>float transaction_risk = 1;</code>
     *
     * @return The transactionRisk.
     */
    @java.lang.Override
    public float getTransactionRisk() {
      return transactionRisk_;
    }
    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction being fraudulent. Summarizes the
     * combined risk of attack vectors below.
     * </pre>
     *
     * <code>float transaction_risk = 1;</code>
     *
     * @param value The transactionRisk to set.
     * @return This builder for chaining.
     */
    public Builder setTransactionRisk(float value) {

      transactionRisk_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Probability (0-1) of this transaction being fraudulent. Summarizes the
     * combined risk of attack vectors below.
     * </pre>
     *
     * <code>float transaction_risk = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTransactionRisk() {
      bitField0_ = (bitField0_ & ~0x00000001);
      transactionRisk_ = 0F;
      onChanged();
      return this;
    }

    private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
        stolenInstrumentVerdict_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
                .Builder,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdictOrBuilder>
        stolenInstrumentVerdictBuilder_;
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     *
     * @return Whether the stolenInstrumentVerdict field is set.
     */
    public boolean hasStolenInstrumentVerdict() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     *
     * @return The stolenInstrumentVerdict.
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
        getStolenInstrumentVerdict() {
      if (stolenInstrumentVerdictBuilder_ == null) {
        return stolenInstrumentVerdict_ == null
            ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict.getDefaultInstance()
            : stolenInstrumentVerdict_;
      } else {
        return stolenInstrumentVerdictBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public Builder setStolenInstrumentVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            value) {
      if (stolenInstrumentVerdictBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stolenInstrumentVerdict_ = value;
      } else {
        stolenInstrumentVerdictBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public Builder setStolenInstrumentVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
                .Builder
            builderForValue) {
      if (stolenInstrumentVerdictBuilder_ == null) {
        stolenInstrumentVerdict_ = builderForValue.build();
      } else {
        stolenInstrumentVerdictBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public Builder mergeStolenInstrumentVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            value) {
      if (stolenInstrumentVerdictBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && stolenInstrumentVerdict_ != null
            && stolenInstrumentVerdict_
                != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict.getDefaultInstance()) {
          getStolenInstrumentVerdictBuilder().mergeFrom(value);
        } else {
          stolenInstrumentVerdict_ = value;
        }
      } else {
        stolenInstrumentVerdictBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public Builder clearStolenInstrumentVerdict() {
      bitField0_ = (bitField0_ & ~0x00000002);
      stolenInstrumentVerdict_ = null;
      if (stolenInstrumentVerdictBuilder_ != null) {
        stolenInstrumentVerdictBuilder_.dispose();
        stolenInstrumentVerdictBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
            .Builder
        getStolenInstrumentVerdictBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getStolenInstrumentVerdictFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .StolenInstrumentVerdictOrBuilder
        getStolenInstrumentVerdictOrBuilder() {
      if (stolenInstrumentVerdictBuilder_ != null) {
        return stolenInstrumentVerdictBuilder_.getMessageOrBuilder();
      } else {
        return stolenInstrumentVerdict_ == null
            ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict.getDefaultInstance()
            : stolenInstrumentVerdict_;
      }
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of a stolen instrument.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict stolen_instrument_verdict = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdict,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict
                .Builder,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .StolenInstrumentVerdictOrBuilder>
        getStolenInstrumentVerdictFieldBuilder() {
      if (stolenInstrumentVerdictBuilder_ == null) {
        stolenInstrumentVerdictBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdict.Builder,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .StolenInstrumentVerdictOrBuilder>(
                getStolenInstrumentVerdict(), getParentForChildren(), isClean());
        stolenInstrumentVerdict_ = null;
      }
      return stolenInstrumentVerdictBuilder_;
    }

    private com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
        cardTestingVerdict_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                .Builder,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .CardTestingVerdictOrBuilder>
        cardTestingVerdictBuilder_;
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     *
     * @return Whether the cardTestingVerdict field is set.
     */
    public boolean hasCardTestingVerdict() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     *
     * @return The cardTestingVerdict.
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
        getCardTestingVerdict() {
      if (cardTestingVerdictBuilder_ == null) {
        return cardTestingVerdict_ == null
            ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                .getDefaultInstance()
            : cardTestingVerdict_;
      } else {
        return cardTestingVerdictBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public Builder setCardTestingVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) {
      if (cardTestingVerdictBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cardTestingVerdict_ = value;
      } else {
        cardTestingVerdictBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public Builder setCardTestingVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict.Builder
            builderForValue) {
      if (cardTestingVerdictBuilder_ == null) {
        cardTestingVerdict_ = builderForValue.build();
      } else {
        cardTestingVerdictBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public Builder mergeCardTestingVerdict(
        com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict value) {
      if (cardTestingVerdictBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && cardTestingVerdict_ != null
            && cardTestingVerdict_
                != com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .CardTestingVerdict.getDefaultInstance()) {
          getCardTestingVerdictBuilder().mergeFrom(value);
        } else {
          cardTestingVerdict_ = value;
        }
      } else {
        cardTestingVerdictBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public Builder clearCardTestingVerdict() {
      bitField0_ = (bitField0_ & ~0x00000004);
      cardTestingVerdict_ = null;
      if (cardTestingVerdictBuilder_ != null) {
        cardTestingVerdictBuilder_.dispose();
        cardTestingVerdictBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
            .Builder
        getCardTestingVerdictBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getCardTestingVerdictFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
            .CardTestingVerdictOrBuilder
        getCardTestingVerdictOrBuilder() {
      if (cardTestingVerdictBuilder_ != null) {
        return cardTestingVerdictBuilder_.getMessageOrBuilder();
      } else {
        return cardTestingVerdict_ == null
            ? com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                .getDefaultInstance()
            : cardTestingVerdict_;
      }
    }
    /**
     *
     *
     * <pre>
     * Assessment of this transaction for risk of being part of a card testing
     * attack.
     * </pre>
     *
     * <code>
     * .google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict card_testing_verdict = 3;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                .Builder,
            com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                .CardTestingVerdictOrBuilder>
        getCardTestingVerdictFieldBuilder() {
      if (cardTestingVerdictBuilder_ == null) {
        cardTestingVerdictBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict
                    .Builder,
                com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
                    .CardTestingVerdictOrBuilder>(
                getCardTestingVerdict(), getParentForChildren(), isClean());
        cardTestingVerdict_ = null;
      }
      return cardTestingVerdictBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment)
  private static final com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
      DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment();
  }

  public static com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
      getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<FraudPreventionAssessment> PARSER =
      new com.google.protobuf.AbstractParser<FraudPreventionAssessment>() {
        @java.lang.Override
        public FraudPreventionAssessment parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<FraudPreventionAssessment> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<FraudPreventionAssessment> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.recaptchaenterprise.v1beta1.FraudPreventionAssessment
      getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
